Skip to content
Merged
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
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion scripts/check-foundation.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions scripts/release-preflight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify-package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/version.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
12 changes: 6 additions & 6 deletions tests/release-preflight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -115,15 +115,15 @@ 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
reject package-metadata bash "$preflight" archive artifact 2 "$artifact_name"
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"
Expand Down