Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
version: 2
# Cooldowns apply to version updates, not Dependabot security updates.
updates:
- package-ecosystem: npm
directory: /
Expand All @@ -15,7 +16,7 @@ updates:
- minor
- patch
- package-ecosystem: github-actions
directory: .github/workflows
directory: /
schedule:
interval: cron
cronjob: '0 8 1,15 * *'
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/integration-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@ jobs:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
name: Checkout branch

- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
cache: 'npm'

- name: Install npm packages
run: |
npm install --legacy-peer-deps
run: npm ci --legacy-peer-deps

- name: Build
run: npm run build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prettify-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 'lts/*'
node-version: '24'
cache: 'npm'

- name: Install Dependencies
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check dependency policy
run: npm run test-dependency-policy
- name: Running L0 tests.
run: |
npm install
npm test
run: npm test
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
min-release-age=7
omit-lockfile-registry-resolved=true
54 changes: 39 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,25 +130,49 @@ jobs:

# Development

This repository enforces a **7-day dependency freshness ("bake") period**: newly
published npm packages are not adopted until they have been available for at
least 7 days, giving the ecosystem time to catch broken or malicious releases.

- **Dependabot** uses a 7-day `cooldown` and opens PRs on the 1st and 15th of
each month, grouping minor/patch updates into a single PR. Major updates are
still raised individually so they get their own review.
- **`.npmrc`** sets `min-release-age=7` (days), which applies the same rule to
local `npm install`. This requires npm >= 11.10.0; the version bundled with
Node 24 (this action's runtime) satisfies that. On older npm the setting is
ignored, so Dependabot's `cooldown` remains the authoritative control.

**Security exception:** to adopt an urgent patch that is less than 7 days old,
install it once with the age check disabled:
This repository uses a **7-day dependency freshness ("bake") period**, giving
the ecosystem time to catch broken or malicious releases:

- **Dependabot** sets `cooldown.default-days: 7` for both npm and GitHub Actions
version updates, including major updates. It checks on the 1st and 15th of
each month, groups minor/patch updates, and raises major updates individually.
Dependabot security updates do not honor this cooldown and need explicit
maintainer review before adoption.
- **npm** reads `min-release-age=7` (days) from `.npmrc` when resolving new
registry versions. Use a current Node 24 release and npm >= 11.10.0.
`package.json` declares this npm requirement through `devEngines`, which
supported npm clients check before installs and npm scripts. Older clients
that do not support `devEngines` must not be used; they may ignore the policy.
CI selects Node 24 and uses `npm ci` to install the reviewed lockfile.

The npm age setting is a resolution filter, not an independent age audit of
every entry already pinned in `package-lock.json`. Review dependency changes
before merging, including transitive dependencies and security updates.

For an urgent security fix inside the seven-day window, obtain maintainer
approval and follow any registry's exception process. A local npm override
does not bypass a registry-enforced quarantine.

## Registry-independent lockfile

`.npmrc` also sets `omit-lockfile-registry-resolved=true`, so registry packages
are locked by version and integrity without recording registry-specific
`resolved` URLs. Contributors continue to use their configured registry; no
corporate feed or public registry override is committed here.

To refresh an otherwise up-to-date lockfile without installing packages:

```sh
npm install <pkg> --min-release-age=0
npm install --package-lock-only
```

Check that the diff removes only registry `resolved` URLs and retains existing
versions and integrity hashes. Some registry proxies omit SHA-512 metadata and
provide only SHA-1. Existing SHA-512 entries survive this refresh, but newly
added or updated versions can receive SHA-1-only integrity entries. Review
these changes; omitting URLs does not restore missing hashes. Do not delete
the lockfile or remove integrity fields to resolve registry differences.

# Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a
Expand Down
Loading
Loading