Skip to content

Commit 6c01c7f

Browse files
chore(release): 5.0.0 (#1194)
* chore(release): 5.0.0 Cut the [5.0.0] CHANGELOG section from [Unreleased], adding notes for the 150 PRs merged since the CHANGELOG freeze (#848), and stamp 5.0.0 into Cargo.toml, Cargo.lock and the npm main + platform packages. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Pin the sync-main test's packaging baseline to 4.0.0 The test copied the live packaging and tagged v4.0.0, so it failed once the tree was stamped 5.0.0. copy_packaging's baseline= keeps it independent of the checkout's version, like the other stamp tests. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Skip the vlt launcher leg where vlt ignores the configured registry vlt <= 0.0.0-13 ignores vlt.json's registry (and --registry): installs resolve from public npm. The launcher leg only passed there because @socketsecurity/socket-patch@4.0.0 is published; at the unreleased 5.0.0 it cannot resolve. Verified against an unreachable registry: 0.0.0-1, -11, -12, -13 still install, 0.0.0-14 fails ECONNREFUSED. Marks the era non-hermetic in docs/testing/vlt-compatibility.md and adds the derived skip rule for the launcher leg. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Add #1152 to the 5.0.0 release notes Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Add #1008, #1183, #1190 and #1205 to the 5.0.0 release notes Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Add #1209 to the 5.0.0 release notes Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * Add #1007, #1036, #1041, #1193, #1217, #1218 and #1230 to the 5.0.0 release notes Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 2e0d17f commit 6c01c7f

24 files changed

Lines changed: 586 additions & 242 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 510 additions & 6 deletions
Large diffs are not rendered by default.

‎Cargo.lock‎

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

‎Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ default-members = [
1414
resolver = "2"
1515

1616
[workspace.package]
17-
version = "4.0.0"
17+
version = "5.0.0"
1818
edition = "2021"
1919
license = "MIT"
2020
repository = "https://github.com/SocketDev/socket-patch"
2121

2222
[workspace.dependencies]
23-
socket-patch-core = { path = "crates/socket-patch-core", version = "=4.0.0" }
23+
socket-patch-core = { path = "crates/socket-patch-core", version = "=5.0.0" }
2424
clap = { version = "=4.5.60", features = ["derive", "env"] }
2525
serde = { version = "=1.0.228", features = ["derive"] }
2626
serde_json = { version = "=1.0.149", features = ["preserve_order", "raw_value"] }

‎crates/socket-patch-cli/tests/e2e_vlt.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ async fn vlt_pinned_matrix_agent_launcher() {
241241
let Some(leg) = agent_leg("launcher") else {
242242
return;
243243
};
244-
if !hermetic_registry(leg.version()) {
244+
if !hermetic_registry(leg.version()) || registry_config_ignored(leg.version()) {
245245
return leg.skip("non-hermetic-registry");
246246
}
247247
let (pkgs, host) = launcher_packages();

‎crates/socket-patch-cli/tests/vlt-leg-manifest.json‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,20 @@
880880
"conditions": [],
881881
"reason": "non-hermetic-registry"
882882
},
883+
{
884+
"boundary": "the configured registry is ignored: every install resolves from public npm",
885+
"suite": "agent",
886+
"legs": [
887+
"launcher"
888+
],
889+
"except": [],
890+
"versions": {
891+
"op": "<=",
892+
"a": "0.0.0-13"
893+
},
894+
"conditions": [],
895+
"reason": "non-hermetic-registry"
896+
},
883897
{
884898
"boundary": "`npm:` alias specs resolve against public npm even with `registries.npm`",
885899
"suite": "agent",

‎crates/socket-patch-cli/tests/vlt_e2e_common/mod.rs‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,13 @@ pub fn scalar_registry_ignored(v: VltVersion) -> bool {
295295
(VltVersion::rc(7)..=VltVersion::rc(29)).contains(&v)
296296
}
297297

298+
/// vlt.json's `registry` (and `--registry`) is ignored: every install
299+
/// resolves from public npm, so a package only the harness registry serves
300+
/// (the launcher at an unpublished version) cannot install.
301+
pub fn registry_config_ignored(v: VltVersion) -> bool {
302+
v <= VltVersion::zero(13)
303+
}
304+
298305
/// The harness can run every install against its own registry.
299306
pub fn hermetic_registry(v: VltVersion) -> bool {
300307
!scalar_registry_ignored(v)

‎docs/testing/vlt-compatibility.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ The capstones serve npmjs bytes from a local wiremock registry `R` and write
128128

129129
| Era window | vlt.json | Hermetic | Notes |
130130
|---|---|---|---|
131-
| ≤ 0.0.0-13 | flat `{"registry": R}` | yes | `vlt-workspaces.json` for workspaces ≤ 0.0.0-12 |
131+
| ≤ 0.0.0-13 | flat `{"registry": R}` | no: vlt ignores the configured registry (and `--registry`), so every install resolves from public npm | `vlt-workspaces.json` for workspaces ≤ 0.0.0-12; legs pass because R serves npmjs bytes, except the launcher leg (its package exists only in R), which logs `skip:non-hermetic-registry` |
132132
| 0.0.0-14 … rc.6 | `{"config":{"registry": R}}` (+ `"modifiers":{}` for 0.0.0-16 … 24, except the ignored-lock leg) | yes | URL-segment DepIDs carry R's port |
133133
| rc.7 … rc.29 | `{"config":{"registry": "https://registry.npmjs.org/"}}` | no: lock-driven installs reach public npm | the dead-registry assertions log `skip:non-hermetic-registry`; the patch service stays local |
134134
| rc.30 … rc.32 | `{"config":{"registry": R}}` | yes | URL-segment DepIDs |
@@ -285,6 +285,7 @@ store-linker knob, `unset` when not given), `cache_root` and `upgrade`
285285
| a cache on another filesystem falls back to copies | `all` | `cache_root=set` | safety | `private_copies` | `store-linker-hardlinks` |
286286
| as above | `all` | `cache_root=unset` | safety | `cross_device_cache` | `no-cache-root` |
287287
| a scalar `registry` makes lock-driven installs re-resolve from public npm | `1.0.0-rc.7 … 1.0.0-rc.29` | — | agent | `scan_apply_rollback_list`, `launcher` | `non-hermetic-registry` |
288+
| the configured registry is ignored: every install resolves from public npm | `<= 0.0.0-13` | — | agent | `launcher` | `non-hermetic-registry` |
288289
| `npm:` alias specs resolve against public npm even with `registries.npm` | `1.0.0-rc.30 … 1.0.0-rc.32` | — | agent | `scan_apply_rollback_list` | `non-hermetic-registry` |
289290
| `lockfileVersion` 0 with legacy (`·`/`§`) DepIDs | `0.0.0-19 … 1.0.0-rc.14` | — | — | — | — |
290291
| `lockfileVersion` 1, tilde DepIDs | `>= 1.0.0-rc.15` | — | — | — | — |

‎npm/socket-patch-android-arm64/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socketsecurity/socket-patch-android-arm64",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"description": "socket-patch binary for Android ARM64",
55
"os": [
66
"android"

‎npm/socket-patch-darwin-arm64/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socketsecurity/socket-patch-darwin-arm64",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"description": "socket-patch binary for macOS ARM64",
55
"os": [
66
"darwin"

‎npm/socket-patch-darwin-x64/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@socketsecurity/socket-patch-darwin-x64",
3-
"version": "4.0.0",
3+
"version": "5.0.0",
44
"description": "socket-patch binary for macOS x64",
55
"os": [
66
"darwin"

0 commit comments

Comments
 (0)