diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ad73db..41427a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ Notable changes to Assay are recorded here. The format follows [Keep a Changelog ## [Unreleased] +## [0.0.2] - 2026-11-29 + +### Changed + +- Improve README documentation links and add CI, npm version, license and Node.js badges. +- Clarify the release and verification process for subsequent package versions. + ## [0.0.1] - 2026-11-28 ### Added @@ -17,5 +24,6 @@ Notable changes to Assay are recorded here. The format follows [Keep a Changelog - Bounded JSON decoding, duplicate-key rejection, redacted validation diagnostics and separate invalid-input failures. - Node.js 24+ ESM and TypeScript support with no runtime dependencies. -[Unreleased]: https://github.com/0xbuffdev/assay/compare/v0.0.1...main +[Unreleased]: https://github.com/0xbuffdev/assay/compare/v0.0.2...main +[0.0.2]: https://github.com/0xbuffdev/assay/compare/v0.0.1...v0.0.2 [0.0.1]: https://github.com/0xbuffdev/assay/releases/tag/v0.0.1 diff --git a/README.md b/README.md index 7a4c049..1aa3d0c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Assay +[![CI](https://github.com/0xbuffdev/assay/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/0xbuffdev/assay/actions/workflows/ci.yml) [![npm version](https://img.shields.io/npm/v/%400xbuff%2Fassay)](https://www.npmjs.com/package/@0xbuff/assay) [![License: Apache-2.0](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/0xbuffdev/assay/blob/main/LICENSE) [![Node.js](https://img.shields.io/badge/node-%3E%3D24-blue)](https://github.com/0xbuffdev/assay/blob/main/package.json) + Assay compares technical evidence against explicit, versioned criteria and returns reproducible findings. Use it to check results in assessment systems, engineering exercises and other tools. The host supplies the evidence and authorizes the criteria. Assay does not execute submitted programs, authenticate observations, assign grades or issue credentials. The library runs offline and has no runtime dependencies. diff --git a/package.json b/package.json index de94e4f..a6f062c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@0xbuff/assay", - "version": "0.0.1", + "version": "0.0.2", "description": "Standalone deterministic technical evaluation of versioned criteria and bounded evidence", "private": false, "license": "Apache-2.0", diff --git a/scripts/check-foundation.mjs b/scripts/check-foundation.mjs index 68e2f13..c4d1117 100644 --- a/scripts/check-foundation.mjs +++ b/scripts/check-foundation.mjs @@ -13,7 +13,7 @@ const ts = JSON.parse(await readFile(locate("tsconfig.json"), "utf8")); assert.equal(pkg.name, "@0xbuff/assay"); assert.equal(pkg.type, "module"); -assert.equal(pkg.version, "0.0.1", "Approved first release candidate"); +assert.equal(pkg.version, "0.0.2", "Expected release candidate version"); assert.equal(pkg.private, false, "Approved publishable package metadata"); assert.deepEqual(pkg.publishConfig, { access: "public", registry: "https://registry.npmjs.org/" }); assert.equal(pkg.license, "Apache-2.0", "Assay source must retain its approved license"); diff --git a/scripts/release-preflight.sh b/scripts/release-preflight.sh index 883e0bf..a91da17 100644 --- a/scripts/release-preflight.sh +++ b/scripts/release-preflight.sh @@ -50,7 +50,7 @@ case "$1" in [[ "$(find . -mindepth 1 -maxdepth 1 | wc -l)" -eq 2 ]] || fail artifact-files [[ "$(sha256sum assay.tgz | cut -d ' ' -f 1)" == "$APPROVED_DIGEST" ]] || fail archive-digest jq -e --arg digest "$APPROVED_DIGEST" --argjson size "$(wc -c < assay.tgz)" ' - .name == "@0xbuff/assay" and .version == "0.0.1" and + .name == "@0xbuff/assay" and .version == "0.0.2" and .sha256 == $digest and .bytes == $size and ([.files[].path] | sort) == [ "CHANGELOG.md", "COPYRIGHT.md", "LICENSE", "README.md", @@ -63,12 +63,12 @@ case "$1" in # Require regular files only; no symlink, hardlink or directory entries. tar -tvzf assay.tgz | awk 'substr($0,1,1) != "-" { bad=1 } END { exit bad }' || fail archive-types tar -xOzf assay.tgz package/package.json | jq -e ' - .name == "@0xbuff/assay" and .version == "0.0.1" and + .name == "@0xbuff/assay" and .version == "0.0.2" and .private == false and .publishConfig.access == "public" and .publishConfig.registry == "https://registry.npmjs.org/" ' >/dev/null || fail package-metadata notes="$(tar -xOzf assay.tgz package/CHANGELOG.md)" - heading="$(grep -E '^## \[0\.0\.1\] - [0-9]{4}-[0-9]{2}-[0-9]{2}$' <<< "$notes")" || fail dated-notes + heading="$(grep -E '^## \[0\.0\.2\] - [0-9]{4}-[0-9]{2}-[0-9]{2}$' <<< "$notes")" || fail dated-notes release_date="$(cut -d ' ' -f 4 <<< "$heading")" [[ "$release_date" =~ ^[0-9]{4}-[0-9]{2}-[0-9]{2}$ ]] || fail dated-notes [[ "$(date -u -d "$release_date" +%F)" == "$release_date" ]] || fail dated-notes diff --git a/scripts/verify-package.mjs b/scripts/verify-package.mjs index c96810d..c302c57 100644 --- a/scripts/verify-package.mjs +++ b/scripts/verify-package.mjs @@ -76,7 +76,7 @@ try { const manifest = JSON.parse(await readFile(path.join(root, "package.json"), "utf8")); assert.equal(manifest.name, "@0xbuff/assay"); assert.equal(manifest.homepage, "https://docs.0xbuff.com/docs/assay"); - assert.equal(manifest.version, "0.0.1", "Verify the approved first release candidate"); + assert.equal(manifest.version, "0.0.2", "Verify the expected release candidate version"); assert.equal(manifest.private, false, "Approved publishable package metadata"); assert.deepEqual(manifest.publishConfig, { access: "public", diff --git a/src/contracts/version.ts b/src/contracts/version.ts index e559cfa..8743ef0 100644 --- a/src/contracts/version.ts +++ b/src/contracts/version.ts @@ -1,5 +1,5 @@ // Generated by scripts/version-metadata.mjs; do not edit directly. -export const PACKAGE_VERSION = "0.0.1" as const; +export const PACKAGE_VERSION = "0.0.2" as const; export const EVALUATOR_ID = "assay" as const; export const EVALUATOR_VERSION = "v0.0.5" as const; export const SCHEMA_VERSION = 4 as const; diff --git a/tests/release-preflight.sh b/tests/release-preflight.sh index 1f634cf..a9082a7 100644 --- a/tests/release-preflight.sh +++ b/tests/release-preflight.sh @@ -19,8 +19,8 @@ cd "$workspace" for file in CHANGELOG.md COPYRIGHT.md LICENSE README.md dist/index.d.ts dist/index.js dist/index.js.map package.json; do printf 'synthetic\n' > "package/$file" done -printf '# Changelog\n\n## [0.0.1] - 2026-11-28\n' > package/CHANGELOG.md -printf '%s\n' '{"name":"@0xbuff/assay","version":"0.0.1","private":false,"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}' > package/package.json +printf '# Changelog\n\n## [0.0.2] - 2026-11-29\n' > package/CHANGELOG.md +printf '%s\n' '{"name":"@0xbuff/assay","version":"0.0.2","private":false,"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"}}' > package/package.json cp package/package.json metadata-good.json cp package/CHANGELOG.md notes-good.md @@ -38,7 +38,7 @@ pack() { export APPROVED_DIGEST APPROVED_DIGEST="$(sha256sum artifact/assay.tgz | cut -d ' ' -f 1)" jq -n --arg digest "$APPROVED_DIGEST" --argjson bytes "$(wc -c < artifact/assay.tgz)" '{ - name:"@0xbuff/assay", version:"0.0.1", sha256:$digest, bytes:$bytes, + name:"@0xbuff/assay", version:"0.0.2", sha256:$digest, bytes:$bytes, files: (["CHANGELOG.md","COPYRIGHT.md","LICENSE","README.md","dist/index.d.ts", "dist/index.js","dist/index.js.map","package.json"] | map({path:.})) }' > artifact/manifest.json @@ -84,7 +84,7 @@ reject archive-digest env APPROVED_DIGEST=11111111111111111111111111111111111111 cp artifact/manifest.json manifest-good.json for mutation in \ - '.bytes+=1' '.sha256="wrong"' '.name="other"' '.version="0.0.2"' \ + '.bytes+=1' '.sha256="wrong"' '.name="other"' '.version="0.0.1"' \ '.files|=.[1:]' '.files += [{path:"extra"}]'; do jq "$mutation" manifest-good.json > artifact/manifest.json reject archive-manifest bash "$preflight" archive artifact 2 "$artifact_name" @@ -115,7 +115,7 @@ rm package/README.md printf 'synthetic\n' > package/README.md for mutation in \ - '.name="other"' '.version="0.0.2"' '.private=true' \ + '.name="other"' '.version="0.0.1"' '.private=true' \ '.publishConfig.access="restricted"' '.publishConfig.registry="https://example.invalid/"'; do jq "$mutation" metadata-good.json > package/package.json pack @@ -123,7 +123,7 @@ for mutation in \ done cp metadata-good.json package/package.json -for heading in '## [Unreleased]' '## [0.0.1] - 2026-02-30' '## [0.0.1] - 2026-11-99'; do +for heading in '## [Unreleased]' '## [0.0.2] - 2026-02-30' '## [0.0.2] - 2026-11-99'; do printf '%s\n' "$heading" > package/CHANGELOG.md pack reject dated-notes bash "$preflight" archive artifact 2 "$artifact_name"