@pithy-sh/leaderboard 0.2.4 → 0.2.5
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/dist/capability.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../src/capability.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,0CAA0C,CAAC;AAE7F,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAuB,MAAM,iBAAiB,CAAC;AAOtG;;;GAGG;AACH,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG;IACxD,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,OAAO,GAAE,kBAAmC,GAAG,qBAAqB,
|
|
1
|
+
{"version":3,"file":"capability.d.ts","sourceRoot":"","sources":["../src/capability.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,UAAU,EAAoB,MAAM,0CAA0C,CAAC;AAE7F,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAuB,MAAM,iBAAiB,CAAC;AAOtG;;;GAGG;AACH,eAAO,MAAM,2BAA2B,MAAM,CAAC;AAE/C,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG;IACxD,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,qBAAsB,SAAQ,UAAU;IACvD,iBAAiB,EAAE,iBAAiB,CAAC;CACtC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,WAAW,CAAC,OAAO,GAAE,kBAAmC,GAAG,qBAAqB,CAiC/F;AAED,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,IAAI,qBAAqB,CAEnG;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAGlE"}
|
package/dist/capability.js
CHANGED
|
@@ -5,7 +5,7 @@ import { leaderboardTables } from "./data/tables.js";
|
|
|
5
5
|
import { registerLeaderboardRoutes } from "./http/routes.js";
|
|
6
6
|
import { leaderboard_0001_entries } from "./migrations/0001_entries.js";
|
|
7
7
|
import { leaderboardExampleSeed } from "./seeds/example.js";
|
|
8
|
-
import { PACKAGE_VERSION } from "./version.generated.js";
|
|
8
|
+
import { PACKAGE_NAME, PACKAGE_VERSION } from "./version.generated.js";
|
|
9
9
|
import { defineCapability } from "@pithy-sh/core/src/capability/capability";
|
|
10
10
|
//#region src/capability.ts
|
|
11
11
|
/**
|
|
@@ -37,6 +37,7 @@ function leaderboard(options = { boards: [] }) {
|
|
|
37
37
|
const capability = defineCapability({
|
|
38
38
|
name: "leaderboard",
|
|
39
39
|
version: PACKAGE_VERSION,
|
|
40
|
+
package: PACKAGE_NAME,
|
|
40
41
|
requiredBindings: [{
|
|
41
42
|
type: "d1",
|
|
42
43
|
name: "DB"
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
/** This package's npm name — the join key against a release feed. */
|
|
4
4
|
export declare const PACKAGE_NAME = "@pithy-sh/leaderboard";
|
|
5
5
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
6
|
-
export declare const PACKAGE_VERSION = "0.2.
|
|
6
|
+
export declare const PACKAGE_VERSION = "0.2.5";
|
|
7
7
|
//# sourceMappingURL=version.generated.d.ts.map
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
/** This package's npm name — the join key against a release feed. */
|
|
5
5
|
const PACKAGE_NAME = "@pithy-sh/leaderboard";
|
|
6
6
|
/** This package's version, stamped from its own package.json at generation time. */
|
|
7
|
-
const PACKAGE_VERSION = "0.2.
|
|
7
|
+
const PACKAGE_VERSION = "0.2.5";
|
|
8
8
|
//#endregion
|
|
9
9
|
export { PACKAGE_NAME, PACKAGE_VERSION };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pithy-sh/leaderboard",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"croner": "^10.0.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@pithy-sh/core": "^0.7.
|
|
44
|
+
"@pithy-sh/core": "^0.7.3",
|
|
45
45
|
"hono": "^4.13.2",
|
|
46
46
|
"kysely": "^0.29.0",
|
|
47
47
|
"zod": "^4.4.0"
|
package/src/capability.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { leaderboardTables } from "./data/tables";
|
|
|
9
9
|
import { registerLeaderboardRoutes } from "./http/routes";
|
|
10
10
|
import { leaderboard_0001_entries } from "./migrations/0001_entries";
|
|
11
11
|
import { leaderboardExampleSeed } from "./seeds/example";
|
|
12
|
-
import { PACKAGE_VERSION } from "./version.generated";
|
|
12
|
+
import { PACKAGE_NAME, PACKAGE_VERSION } from "./version.generated";
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Where leaderboard's migrations sort in the app database. Unique per database; the registry composes
|
|
@@ -55,9 +55,12 @@ export function leaderboard(options: LeaderboardOptions = { boards: [] }): Leade
|
|
|
55
55
|
|
|
56
56
|
const capability = defineCapability({
|
|
57
57
|
name: "leaderboard",
|
|
58
|
-
// The package
|
|
59
|
-
// cannot read its own package.json. Reported per capability by
|
|
58
|
+
// The package this capability ships in and the version it ships at, both stamped by
|
|
59
|
+
// `scripts/stampVersions.ts` — a Worker cannot read its own package.json. Reported per capability by
|
|
60
|
+
// the control-plane manifest, and reported together: a release feed is keyed by package name, so the
|
|
61
|
+
// version alone leaves a client guessing the key (#626).
|
|
60
62
|
version: PACKAGE_VERSION,
|
|
63
|
+
package: PACKAGE_NAME,
|
|
61
64
|
requiredBindings,
|
|
62
65
|
config: LeaderboardConfig,
|
|
63
66
|
databases: {
|
package/src/version.generated.ts
CHANGED