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
2 changes: 1 addition & 1 deletion compat/security/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hasna/security",
"version": "0.1.14",
"version": "0.1.15",
"description": "Legacy command aliases for @hasna/shield",
"type": "module",
"bin": {
Expand Down
22 changes: 22 additions & 0 deletions compat/security/release-consistency.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { describe, expect, test } from "bun:test";
import { readFileSync } from "node:fs";

const shieldManifest = JSON.parse(
readFileSync(new URL("../../package.json", import.meta.url), "utf8"),
) as { version: string };
const securityManifest = JSON.parse(
readFileSync(new URL("./package.json", import.meta.url), "utf8"),
) as { version: string; dependencies: Record<string, string> };

describe("Shield 0.1.27 compatibility release", () => {
test("keeps the compatibility dependency pinned to the Shield release", () => {
expect(shieldManifest.version).toBe("0.1.27");
expect(securityManifest.dependencies["@hasna/shield"]).toBe(
shieldManifest.version,
);
});

test("advances @hasna/security beyond the published 0.1.14 release", () => {
expect(securityManifest.version).toBe("0.1.15");
});
});
Loading