Skip to content

Commit 0321911

Browse files
authored
meta: harden dependency supply chain (#1178)
1 parent ec7751f commit 0321911

14 files changed

Lines changed: 347 additions & 643 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@doc-kit/core': patch
3+
'@doc-kit/generator-react': patch
4+
---
5+
6+
Install fewer packages: `@doc-kit/core` updates `cosmiconfig` to v10 (TypeScript config files now load through Node's type stripping) and no longer installs `dedent`, and `@doc-kit/generator-react` estimates reading time with `Intl.Segmenter` instead of the `reading-time` package and updates `@node-core/ui-components` to 1.8.1, which no longer installs `@vcarl/remark-headings`.

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919

2020
steps:
2121
- name: Setup environment
22-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
22+
uses: nodejs/web-team/actions/setup-environment@4c0b18db11a8357664683d70ef1f27af08ecc766
2323
with:
2424
use-version-file: true
2525
pnpm: true
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: Setup environment
39-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
39+
uses: nodejs/web-team/actions/setup-environment@4c0b18db11a8357664683d70ef1f27af08ecc766
4040
with:
4141
use-version-file: true
4242
pnpm: true
@@ -63,7 +63,7 @@ jobs:
6363

6464
steps:
6565
- name: Setup environment
66-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
66+
uses: nodejs/web-team/actions/setup-environment@4c0b18db11a8357664683d70ef1f27af08ecc766
6767
with:
6868
use-version-file: true
6969
pnpm: true

‎.github/workflows/dependency-review.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
allowed-endpoints: >
2828
github.com:443
2929
api.github.com:443
30-
api.deps.dev
30+
api.deps.dev:443
31+
api.securityscorecards.dev:443
3132
3233
- name: Git Checkout
3334
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎.github/workflows/generate.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ jobs:
115115
compare: file-size
116116
steps:
117117
- name: Setup environment
118-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
118+
uses: nodejs/web-team/actions/setup-environment@4c0b18db11a8357664683d70ef1f27af08ecc766
119119
with:
120120
use-version-file: true
121121
pnpm: true

‎.github/workflows/publish.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ jobs:
3535
id-token: write
3636
steps:
3737
- name: Setup environment
38-
uses: nodejs/web-team/actions/setup-environment@9f3c83af227d721768d9dbb63009a47ed4f4282f
38+
uses: nodejs/web-team/actions/setup-environment@4c0b18db11a8357664683d70ef1f27af08ecc766
3939
with:
4040
use-version-file: true
4141
pnpm: true
4242
registry-url: 'https://registry.npmjs.org'
4343
fetch-depth: 0
44+
cache: false
4445

4546
- name: Create Release Pull Request or Publish
4647
id: changesets

‎docs/configuration.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Use `--config-file <path>` to load a specific file instead of searching.
1212
Configuration files can be either:
1313

1414
- **JavaScript** (`.js`, `.mjs`, `.cjs`)
15-
- **TypeScript** (`.ts`, when `typescript` is installed in the project)
15+
- **TypeScript** (`.ts`, loaded through Node.js type stripping, so only erasable syntax such as type annotations works)
1616
- **JSON** (`.json`)
1717
- **YAML** (`.yaml`, `.yml`, or an extensionless rc file)
1818

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
"lint-staged": "17.6.0",
5151
"oxfmt": "0.71.0",
5252
"oxlint": "1.86.0",
53-
"wrangler": "4.148.0"
53+
"wrangler": "4.151.1"
5454
}
5555
}

‎packages/core/package.json‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
"@swc/html-wasm": "^1.16.2",
5757
"@swc/wasm": "^1.15.46",
5858
"acorn": "^8.17.0",
59-
"cosmiconfig": "^9.0.2",
60-
"dedent": "^1.7.2",
59+
"cosmiconfig": "^10.0.1",
6160
"github-slugger": "^2.0.0",
6261
"glob-parent": "^6.0.2",
6362
"mdast-util-slice-markdown": "^2.0.1",
@@ -83,6 +82,7 @@
8382
},
8483
"devDependencies": {
8584
"ajv": "^8.20.0",
85+
"dedent": "^1.7.2",
8686
"hast-util-to-html": "^9.0.5",
8787
"hast-util-to-string": "^3.0.1"
8888
},

‎packages/core/src/threading/index.mjs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export default function createWorkerPool(threads) {
2828
// of work on the main thread, such as bundling the site
2929
idleTimeout: 250,
3030
resourceLimits: { maxOldGenerationSizeMb: WORKER_HEAP_SIZE },
31+
recordTiming: false,
3132
workerData: { logLevel: logger.getLogLevel() },
3233
});
3334
}

‎packages/react/package.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@fontsource/ibm-plex-mono": "^5.3.0",
3737
"@heroicons/react": "^2.2.0",
3838
"@node-core/rehype-shiki": "^1.5.1",
39-
"@node-core/ui-components": "^1.8.0",
39+
"@node-core/ui-components": "^1.8.1",
4040
"@orama/orama": "^3.1.18",
4141
"@orama/ui": "^1.5.4",
4242
"estree-util-to-js": "^2.0.0",
@@ -47,7 +47,6 @@
4747
"mdast-util-slice-markdown": "^2.0.1",
4848
"preact": "^10.29.7",
4949
"preact-render-to-string": "^6.7.0",
50-
"reading-time": "^1.5.0",
5150
"recma-jsx": "^1.0.1",
5251
"recma-stringify": "^1.0.0",
5352
"rehype-raw": "^7.0.0",

0 commit comments

Comments
 (0)