create-node-lib 2.18.0 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/template/pnpm-workspace.yaml +39 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# [2.19.0](https://github.com/lirantal/create-node-lib/compare/v2.18.0...v2.19.0) (2026-05-15)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* enhance security policies in pnpm-workspace.yaml ([68df8f6](https://github.com/lirantal/create-node-lib/commit/68df8f644ef11dc789a157e3cc1c1ed72e5675c9))
|
|
7
|
+
|
|
1
8
|
# [2.18.0](https://github.com/lirantal/create-node-lib/compare/v2.17.4...v2.18.0) (2026-05-13)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
|
@@ -1,30 +1,56 @@
|
|
|
1
1
|
# npm security best practices
|
|
2
2
|
# Source: https://github.com/lirantal/npm-security-best-practices
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
#
|
|
4
|
+
# SECURITY: block packages newer than 30 days (43200 minutes).
|
|
5
|
+
# Gives the community time to spot and yank hijacked releases
|
|
6
|
+
# before they reach your install.
|
|
6
7
|
minimumReleaseAge: 43200
|
|
7
8
|
|
|
8
|
-
#
|
|
9
|
+
# SECURITY: reject a version whose publishing trust signals
|
|
10
|
+
# (npm provenance, trusted-publisher status, registry signatures)
|
|
11
|
+
# have regressed from prior releases. Catches account-takeover
|
|
12
|
+
# attacks where the attacker can't reproduce the legitimate CI
|
|
13
|
+
# pipeline that produced earlier provenance.
|
|
9
14
|
trustPolicy: no-downgrade
|
|
10
15
|
|
|
11
|
-
#
|
|
12
|
-
#
|
|
16
|
+
# Per-package or per-version exemptions for legitimate trust
|
|
17
|
+
# regressions (e.g. a maintainer who genuinely switched CI providers).
|
|
18
|
+
# Keep empty; add entries only with a written justification, and
|
|
19
|
+
# prefer a specific version range over allowing an entire package.
|
|
20
|
+
# Example:
|
|
13
21
|
# trustPolicyExclude:
|
|
14
22
|
# - 'chokidar@4.0.3'
|
|
15
23
|
# - 'webpack@4.47.0 || 5.102.1'
|
|
16
24
|
|
|
17
|
-
#
|
|
18
|
-
#
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
# Disabled intentionally. Skipping the trust check for older
|
|
26
|
+
# versions sounds useful for genuinely pre-provenance packages
|
|
27
|
+
# (npm provenance launched April 2023), but any value near
|
|
28
|
+
# minimumReleaseAge nullifies trustPolicy entirely — every
|
|
29
|
+
# installable version becomes exempt. Use trustPolicyExclude
|
|
30
|
+
# above for legitimate legacy cases instead.
|
|
31
|
+
# trustPolicyIgnoreAfter: 43200
|
|
32
|
+
|
|
33
|
+
# SECURITY: block install scripts by default.
|
|
34
|
+
# Explicit allow-list only. Postinstall scripts are a primary
|
|
35
|
+
# malware delivery vector for transitive dependencies.
|
|
36
|
+
# Keep this list small and only enable packages whose postinstall
|
|
37
|
+
# is genuinely required.
|
|
21
38
|
allowBuilds:
|
|
22
|
-
|
|
39
|
+
# Native bundler; postinstall fetches the platform-specific binary.
|
|
40
|
+
esbuild: true
|
|
41
|
+
# Native bundler; postinstall fetches the platform-specific binary.
|
|
23
42
|
rolldown: true
|
|
43
|
+
# Native module resolver used by some toolchains.
|
|
24
44
|
unrs-resolver: true
|
|
25
45
|
|
|
26
|
-
#
|
|
46
|
+
# SECURITY: fail the install if a dependency wants to run a build
|
|
47
|
+
# script that isn't in the allow-list above. Without this, new
|
|
48
|
+
# postinstall scripts get silently skipped — you'd never know to
|
|
49
|
+
# audit them.
|
|
27
50
|
strictDepBuilds: true
|
|
28
51
|
|
|
29
|
-
#
|
|
30
|
-
|
|
52
|
+
# SECURITY: reject dependencies sourced from git URLs, tarball
|
|
53
|
+
# URLs, or local paths. These bypass registry signing, provenance,
|
|
54
|
+
# and yanking, and have been weaponized to deliver malware through
|
|
55
|
+
# innocent-looking transitive deps.
|
|
56
|
+
blockExoticSubdeps: true
|