Skip to content

Commit 966e820

Browse files
authored
chore: fix dependabot and sonarcloud issues (#69)
Release-As: 0.1.3
1 parent 2a8f038 commit 966e820

File tree

9 files changed

+87
-74
lines changed

9 files changed

+87
-74
lines changed

.github/dependabot.yml

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,29 +5,43 @@ updates:
55
directory: "/"
66
schedule:
77
interval: "weekly"
8-
open-pull-requests-limit: 5
8+
day: "sunday"
9+
time: "05:00"
10+
timezone: "UTC"
11+
open-pull-requests-limit: 1
912
commit-message:
1013
prefix: "chore(deps)"
1114
include: "scope"
12-
labels:
13-
- "dependencies"
14-
reviewers:
15-
- "pierrevensy"
16-
assignees:
17-
- "pierrevensy"
15+
labels: ["dependencies"]
16+
reviewers: ["pierrevensy"]
17+
assignees: ["pierrevensy"]
18+
groups:
19+
minor-updates:
20+
patterns:
21+
- "*"
22+
update-types:
23+
- "minor"
24+
- "patch"
1825

1926
# Check for updates to GitHub Actions
2027
- package-ecosystem: "github-actions"
2128
directory: "/"
2229
schedule:
2330
interval: "weekly"
24-
open-pull-requests-limit: 5
31+
day: "sunday"
32+
time: "06:00"
33+
timezone: "UTC"
34+
open-pull-requests-limit: 1
2535
commit-message:
2636
prefix: "chore(actions)"
2737
include: "scope"
28-
labels:
29-
- "github-actions"
30-
reviewers:
31-
- "pierrevensy"
32-
assignees:
33-
- "pierrevensy"
38+
labels: ["github-actions"]
39+
reviewers: ["pierrevensy"]
40+
assignees: ["pierrevensy"]
41+
groups:
42+
minor-updates:
43+
patterns:
44+
- "*"
45+
update-types:
46+
- "minor"
47+
- "patch"

.github/workflows/pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- name: Build library
3131
run: npm run build
3232
- name: SonarQube Scan
33+
if: github.actor != 'dependabot[bot]'
3334
uses: SonarSource/sonarqube-scan-action@v5
3435
env:
3536
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ All components are designed to be used within the **Continuum Architecture** of
3939
npm install @stone-js/http-core
4040
```
4141

42-
> [!IMPORTANT]
43-
> Requires Node.js v18+ and native ESM support.
42+
> \[!IMPORTANT]
43+
> This package is **pure ESM**. Ensure your `package.json` includes `"type": "module"` or configure your bundler appropriately.
4444
4545
## Usage Example
4646

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ If you discover a security vulnerability in Stone.js or any of its official pack
2020

2121
### How to report
2222

23-
- Email: **security@stonejs.com**
23+
- Email: **security@stonejs.dev**
2424
- Subject: `Security Issue: [Your short description]`
2525
- Include:
2626
- A detailed description of the vulnerability
@@ -53,7 +53,7 @@ We follow a **coordinated disclosure** policy:
5353

5454
We deeply appreciate the responsible security researchers and users who help keep Stone.js secure.
5555

56-
If you’d like to contribute to security audits, penetration testing, or analysis of Stone.js internals, feel free to reach out via [security@stonejs.com](mailto:security@stonejs.com).
56+
If you’d like to contribute to security audits, penetration testing, or analysis of Stone.js internals, feel free to reach out via [security@stonejs.dev](mailto:security@stonejs.dev).
5757

5858
## Thank You
5959

package-lock.json

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"prepare": "husky"
4848
},
4949
"peerDependencies": {
50-
"@stone-js/core": "^0.1.0",
51-
"@stone-js/filesystem": "^0.1.0"
50+
"@stone-js/core": "^0.1.1",
51+
"@stone-js/filesystem": "^0.1.1"
5252
},
5353
"dependencies": {
5454
"accepts": "^1.3.8",
@@ -93,19 +93,19 @@
9393
"@types/statuses": "^2.0.5",
9494
"@types/type-is": "^1.6.7",
9595
"@types/vary": "^1.1.3",
96-
"@vitest/coverage-v8": "^3.2.0",
96+
"@vitest/coverage-v8": "^3.2.3",
9797
"husky": "^9.1.7",
9898
"rimraf": "^6.0.1",
99-
"rollup": "^4.41.1",
99+
"rollup": "^4.43.0",
100100
"rollup-plugin-delete": "^3.0.1",
101101
"rollup-plugin-dts": "^6.2.1",
102102
"rollup-plugin-node-externals": "^8.0.0",
103103
"ts-standard": "^12.0.2",
104104
"tslib": "^2.8.1",
105105
"typedoc": "^0.28.5",
106106
"typedoc-plugin-markdown": "^4.6.4",
107-
"typescript": "^5.8.3",
108-
"vitest": "^3.2.2"
107+
"typescript": "^5.6.3",
108+
"vitest": "^3.2.3"
109109
},
110110
"ts-standard": {
111111
"globals": [

rollup.config.mjs

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,26 @@ import typescript from '@rollup/plugin-typescript'
66
import nodeResolve from '@rollup/plugin-node-resolve'
77
import nodeExternals from 'rollup-plugin-node-externals'
88

9-
const inputs = {
10-
index: 'src/**/*.ts'
11-
}
12-
13-
export default Object.entries(inputs).map(([name, input]) => ({
14-
input,
15-
output: [
16-
{ format: 'es', file: `dist/${name}.js` }
17-
],
18-
plugins: [
19-
multi(),
20-
nodeExternals(), // Must always be before `nodeResolve()`.
21-
nodeResolve({
22-
extensions: ['.js', '.mjs', '.ts'],
23-
exportConditions: ['node', 'import', 'require', 'default']
24-
}),
25-
typescript({
26-
noEmitOnError: true,
27-
tsconfig: './tsconfig.build.json',
28-
}),
29-
commonjs()
30-
]
31-
})).concat([
9+
export default [
10+
{
11+
input: 'src/**/*.ts',
12+
output: [
13+
{ format: 'es', file: 'dist/index.js' }
14+
],
15+
plugins: [
16+
multi(),
17+
nodeExternals(), // Must always be before `nodeResolve()`.
18+
nodeResolve({
19+
extensions: ['.js', '.mjs', '.ts'],
20+
exportConditions: ['node', 'import', 'require', 'default']
21+
}),
22+
typescript({
23+
noEmitOnError: true,
24+
tsconfig: './tsconfig.build.json',
25+
}),
26+
commonjs()
27+
]
28+
},
3229
{
3330
input: 'dist/**/*.d.ts',
3431
output: [{ format: 'es' , file: 'dist/index.d.ts' }],
@@ -46,4 +43,4 @@ export default Object.entries(inputs).map(([name, input]) => ({
4643
})
4744
],
4845
},
49-
])
46+
]

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ sonar.organization=stone-foundation
22
sonar.projectKey=stone-foundation_stone-js-http-core
33
sonar.coverage.exclusions=**/*.spec.ts, **/*.test.ts
44
sonar.javascript.lcov.reportPaths=./coverage/lcov.info
5+
sonar.description=Stone.js HTTP Core offers a simple, consistent API for handling HTTP requests and responses across any JavaScript runtime.
56

67
# This is the name and version displayed in the SonarCloud UI.
78
#sonar.projectName=http-core

typedoc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"excludePrivate": true, // Exclude private members from the docs
1111
"excludeProtected": false, // Optionally include or exclude protected members
1212
"excludeExternals": true, // Exclude external modules
13-
"disableSources": true, // Show source links in the documentation
13+
"disableSources": true, // Hide source links in the documentation
1414
"readme": "none", // Don't generate README.md
1515
"hidePageHeader": true, // Hide the page header
1616
"hideGroupHeadings": true, // Hide the project name link in the header

0 commit comments

Comments
 (0)