From f021a8bf2a77ab3d54a7a33f81b68877ec5c291f Mon Sep 17 00:00:00 2001 From: Noah Gardner Date: Sun, 8 Nov 2026 21:37:01 -0500 Subject: [PATCH] fix(deps): import ezjson by its hub name, ezjson@1.2.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ezjson was a git pin (tag v1.2.0) imported as 0xa81e…/. It is now the hub package ezjson@1.2.0.0, the same hash, imported by name, so a plain bend user fetches it from the hub and ez takes the hash from the hub rather than from a checkout. Co-Authored-By: Claude Opus 5.5 --- bench/main.bend | 2 +- ez.lock.toml | 9 ++------- ez.toml | 12 ++++-------- laws/JsonStringIsTextBody.bend | 2 +- src/json.bend | 4 ++-- 5 files changed, 10 insertions(+), 19 deletions(-) diff --git a/bench/main.bend b/bench/main.bend index 4b02467..ef049a3 100644 --- a/bench/main.bend +++ b/bench/main.bend @@ -7,7 +7,7 @@ import ../src/http.bend as Msg import ../src/body.bend as Body import ../src/client.bend as Client import ../src/json.bend as Json -import 0xa81e161008ecc2f297c0a3065cb9b188/src/value.bend as V +import ezjson@1.2.0.0/src/value.bend as V import ./fix.bend as Fix import ./parse.bend as Parse diff --git a/ez.lock.toml b/ez.lock.toml index 84b5e4c..6c861e2 100644 --- a/ez.lock.toml +++ b/ez.lock.toml @@ -28,13 +28,7 @@ kind = "hub" "effs/dns.js" = "3abdd6528b6c8b885639b81a2542fdfb2668af78e2a16c70b45b94dfc50d1010" [packages.0xa81e161008ecc2f297c0a3065cb9b188] [packages.0xa81e161008ecc2f297c0a3065cb9b188.source] -kind = "git" -url = "https://github.com/Emerging-Patterns/ezjson" -rev = "fbae34db74596ddca4ec29409825926246d22cec" -entry = "main.bend" -root = "." -narHash = "sha256-bOtXnTBW1oDQOGlFpEKxNklcUY1WmPt5y8HWWQY8sK4=" -tag = "v1.2.0" +kind = "hub" [packages.0xa81e161008ecc2f297c0a3065cb9b188.files] LICENSE = "309f5aae946e4db157750e002fb179a74ed0fe27fce09a7be68a6977b14f205f" "main.bend" = "030530d356d712d66fc58daa6bf81c81379d3132547b7e7a42de436c374e9e27" @@ -48,6 +42,7 @@ LICENSE = "309f5aae946e4db157750e002fb179a74ed0fe27fce09a7be68a6977b14f205f" "bend-kit-bytes@0.3.2.0" = "0x185ae03c75e3e75be1171471f68b43cb" "bend-kit-dns@0.6.0.2" = "0x9bf2c4100bf9328348d215e7ae1657de" "bend-kit-wire@0.4.6.1" = "0x1afdf90dbe41c30b1df4594db039b02a" +"ezjson@1.2.0.0" = "0xa81e161008ecc2f297c0a3065cb9b188" [tools] [tools.bolt] git = "https://github.com/Emerging-Patterns/bolt" diff --git a/ez.toml b/ez.toml index 0254d29..a784329 100644 --- a/ez.toml +++ b/ez.toml @@ -2,14 +2,6 @@ name = "ezhttp" entry = "main.bend" [deps] -[deps.ezjson] -hash = "0xa81e161008ecc2f297c0a3065cb9b188" -git = "https://github.com/Emerging-Patterns/ezjson" -rev = "fbae34db74596ddca4ec29409825926246d22cec" -tag = "v1.2.0" -root = "." -narHash = "sha256-bOtXnTBW1oDQOGlFpEKxNklcUY1WmPt5y8HWWQY8sK4=" -entry = "main.bend" [deps.bend-kit-wire] hash = "0x1afdf90dbe41c30b1df4594db039b02a" hub = "bend-kit-wire@0.4.6.1" @@ -22,6 +14,10 @@ entry = "bytes.bend" hash = "0x9bf2c4100bf9328348d215e7ae1657de" hub = "bend-kit-dns@0.6.0.2" entry = "dns.bend" +[deps.ezjson] +hash = "0xa81e161008ecc2f297c0a3065cb9b188" +hub = "ezjson@1.2.0.0" +entry = "main.bend" [tools] [tools.bolt] git = "https://github.com/Emerging-Patterns/bolt" diff --git a/laws/JsonStringIsTextBody.bend b/laws/JsonStringIsTextBody.bend index f2594b3..c816738 100644 --- a/laws/JsonStringIsTextBody.bend +++ b/laws/JsonStringIsTextBody.bend @@ -1,7 +1,7 @@ import Base import ../src/body.bend as Body import ../src/json.bend as Json -import 0xa81e161008ecc2f297c0a3065cb9b188/main.bend as Ezjson +import ezjson@1.2.0.0/main.bend as Ezjson # LAW: a JSON string is a text body of its compact encoding. The HTTP types # stay text (the body is not a JSON value). diff --git a/src/json.bend b/src/json.bend index 2a45914..a0b5562 100644 --- a/src/json.bend +++ b/src/json.bend @@ -2,8 +2,8 @@ # This module is the only one that imports ezjson. Request, Reply, and the # client Response do not. import Base -import 0xa81e161008ecc2f297c0a3065cb9b188/main.bend as Ezjson -import 0xa81e161008ecc2f297c0a3065cb9b188/src/value.bend as Value +import ezjson@1.2.0.0/main.bend as Ezjson +import ezjson@1.2.0.0/src/value.bend as Value import ./body.bend as Body # a JSON value as a UTF-8 text body