@fourier-labs/harbour-contracts 0.59.0 → 0.60.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/contract-release.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": "harbour.contract-release/1.0",
|
|
3
|
-
"repositoryVersion": "0.
|
|
4
|
-
"publishVersion": "0.
|
|
5
|
-
"publishTag": "v0.
|
|
3
|
+
"repositoryVersion": "0.60.0.0",
|
|
4
|
+
"publishVersion": "0.60.0",
|
|
5
|
+
"publishTag": "v0.60.0",
|
|
6
6
|
"schemasDigest": "sha256:cae27ba35b1cc0deb819df6fcfc1ebf5c2bd5de621bd505eb9bd5b540fec0409",
|
|
7
7
|
"aiFixturesDigest": "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6",
|
|
8
8
|
"generatedGoDigest": "sha256:dcbd1548dfeddcd7e499f88851c9fdc58b34e00c3b4f2b162c3c6cae073f6659",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare const ContractRepositoryVersion: "0.
|
|
2
|
-
export declare const ContractPublishVersion: "0.
|
|
3
|
-
export declare const ContractPublishTag: "v0.
|
|
1
|
+
export declare const ContractRepositoryVersion: "0.60.0.0";
|
|
2
|
+
export declare const ContractPublishVersion: "0.60.0";
|
|
3
|
+
export declare const ContractPublishTag: "v0.60.0";
|
|
4
4
|
export declare const ContractSchemasDigest: "sha256:cae27ba35b1cc0deb819df6fcfc1ebf5c2bd5de621bd505eb9bd5b540fec0409";
|
|
5
5
|
export declare const ContractAiFixturesDigest: "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
|
|
6
6
|
export declare const ContractGeneratedGoDigest: "sha256:dcbd1548dfeddcd7e499f88851c9fdc58b34e00c3b4f2b162c3c6cae073f6659";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
|
|
3
|
-
export const ContractRepositoryVersion = "0.
|
|
4
|
-
export const ContractPublishVersion = "0.
|
|
5
|
-
export const ContractPublishTag = "v0.
|
|
3
|
+
export const ContractRepositoryVersion = "0.60.0.0";
|
|
4
|
+
export const ContractPublishVersion = "0.60.0";
|
|
5
|
+
export const ContractPublishTag = "v0.60.0";
|
|
6
6
|
export const ContractSchemasDigest = "sha256:cae27ba35b1cc0deb819df6fcfc1ebf5c2bd5de621bd505eb9bd5b540fec0409";
|
|
7
7
|
export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6";
|
|
8
8
|
export const ContractGeneratedGoDigest = "sha256:dcbd1548dfeddcd7e499f88851c9fdc58b34e00c3b4f2b162c3c6cae073f6659";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
const slug = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/;
|
|
3
|
+
/** Stable V2 identity label. Do not use it to recover tenant or app identity. */
|
|
4
|
+
export function deploymentLabel(org, app) {
|
|
5
|
+
if (!slug.test(org) || !slug.test(app))
|
|
6
|
+
throw new Error('org and app must be DNS labels of 1–63 characters');
|
|
7
|
+
const plain = `${org}-${app}`;
|
|
8
|
+
// Reserve double hyphens for hashed labels and -api for custom-domain API hosts.
|
|
9
|
+
if (!org.includes('-') && !plain.includes('--') && !plain.endsWith('-api') && plain.length <= 55)
|
|
10
|
+
return plain;
|
|
11
|
+
const digest = createHash('sha256').update(JSON.stringify([org, app])).digest('hex').slice(0, 32);
|
|
12
|
+
const prefix = plain.slice(0, 19).replace(/-+$/, '');
|
|
13
|
+
return `h--${prefix}-${digest}`;
|
|
14
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
// Code generated by tools/gen/gen.mjs from schema/*.json. DO NOT EDIT.
|
|
3
3
|
|
|
4
|
-
export const ContractRepositoryVersion = "0.
|
|
5
|
-
export const ContractPublishVersion = "0.
|
|
6
|
-
export const ContractPublishTag = "v0.
|
|
4
|
+
export const ContractRepositoryVersion = "0.60.0.0" as const;
|
|
5
|
+
export const ContractPublishVersion = "0.60.0" as const;
|
|
6
|
+
export const ContractPublishTag = "v0.60.0" as const;
|
|
7
7
|
export const ContractSchemasDigest = "sha256:cae27ba35b1cc0deb819df6fcfc1ebf5c2bd5de621bd505eb9bd5b540fec0409" as const;
|
|
8
8
|
export const ContractAiFixturesDigest = "sha256:edac31c92e146ca1c40130f2fb5649db82e24b8cd1ac758153b90612052fddb6" as const;
|
|
9
9
|
export const ContractGeneratedGoDigest = "sha256:dcbd1548dfeddcd7e499f88851c9fdc58b34e00c3b4f2b162c3c6cae073f6659" as const;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fourier-labs/harbour-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.60.0",
|
|
4
4
|
"description": "Single source of truth for every data shape that crosses a boundary between Isomorph components.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|
|
@@ -23,6 +23,10 @@
|
|
|
23
23
|
"types": "./dist/gen-ts/index.d.ts",
|
|
24
24
|
"default": "./dist/gen-ts/index.js"
|
|
25
25
|
},
|
|
26
|
+
"./naming": {
|
|
27
|
+
"types": "./dist/naming/index.d.ts",
|
|
28
|
+
"default": "./dist/naming/index.js"
|
|
29
|
+
},
|
|
26
30
|
"./resolver": {
|
|
27
31
|
"types": "./dist/resolver/index.d.ts",
|
|
28
32
|
"default": "./dist/resolver/index.js"
|
|
@@ -31,7 +35,7 @@
|
|
|
31
35
|
"scripts": {
|
|
32
36
|
"gen": "node tools/gen/gen.mjs",
|
|
33
37
|
"build": "tsc -p tsconfig.json",
|
|
34
|
-
"test": "node --experimental-strip-types --test tools/gen/*.test.mjs resolver/*.test.mjs",
|
|
38
|
+
"test": "node --experimental-strip-types --test tools/gen/*.test.mjs resolver/*.test.mjs naming/*.test.mjs",
|
|
35
39
|
"verify": "node tools/release/verify-release.mjs && node tools/gen/gen.mjs && { [ -z \"$(git status --porcelain -- gen-ts gen-go contract-release.json)\" ] || { echo 'STALE: generated code or release manifest out of date or uncommitted — run make gen and commit'; exit 1; }; }"
|
|
36
40
|
},
|
|
37
41
|
"devDependencies": {
|