@nifrajs/core 1.0.0 → 1.1.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/dist/index.d.ts +8 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +8 -2
package/dist/index.d.ts
CHANGED
|
@@ -4,8 +4,14 @@
|
|
|
4
4
|
* The router is the perf-critical heart; the server and inline API are built on
|
|
5
5
|
* the unified route descriptor.
|
|
6
6
|
*/
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Current package version. A hardcoded literal on purpose — core runs on the edge (no fs), so it can't
|
|
9
|
+
* read its own package.json at runtime. `scripts/version.ts` rewrites it on every release bump and
|
|
10
|
+
* `check:publish` asserts it equals `@nifrajs/core`'s package version, so the literal can't go stale
|
|
11
|
+
* (it shipped at "0.0.0" through 1.0.0 before those guards existed). Kept narrow (`as const`) so
|
|
12
|
+
* consumers can pin it at the type level — see `test/version.test-d.ts`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const VERSION: "1.1.0";
|
|
9
15
|
export type Version = typeof VERSION;
|
|
10
16
|
export { FrameworkError, RouteConfigError, type RouteConfigErrorCode } from "./errors.js";
|
|
11
17
|
export { FRAMEWORK_NAME, type FrameworkName } from "./internal/brand.js";
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,OAAO,EAAG,OAAgB,CAAA;AAEvC,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAA;AAEpC,OAAO,EAAE,cAAc,EAAE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AAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,WAAW,EAChB,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACrB,MAAM,EACN,KAAK,aAAa,EAClB,MAAM,EACN,cAAc,GACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EACL,KAAK,UAAU,EACf,KAAK,OAAO,EACZ,KAAK,UAAU,EACf,KAAK,SAAS,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,aAAa,GACnB,MAAM,qBAAqB,CAAA;AAC5B,YAAY,EACV,cAAc,EACd,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -4,8 +4,14 @@
|
|
|
4
4
|
* The router is the perf-critical heart; the server and inline API are built on
|
|
5
5
|
* the unified route descriptor.
|
|
6
6
|
*/
|
|
7
|
-
/**
|
|
8
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Current package version. A hardcoded literal on purpose — core runs on the edge (no fs), so it can't
|
|
9
|
+
* read its own package.json at runtime. `scripts/version.ts` rewrites it on every release bump and
|
|
10
|
+
* `check:publish` asserts it equals `@nifrajs/core`'s package version, so the literal can't go stale
|
|
11
|
+
* (it shipped at "0.0.0" through 1.0.0 before those guards existed). Kept narrow (`as const`) so
|
|
12
|
+
* consumers can pin it at the type level — see `test/version.test-d.ts`.
|
|
13
|
+
*/
|
|
14
|
+
export const VERSION = "1.1.0";
|
|
9
15
|
export { FrameworkError, RouteConfigError } from "./errors.js";
|
|
10
16
|
export { FRAMEWORK_NAME } from "./internal/brand.js";
|
|
11
17
|
export { METHODS, Router } from "./router/router.js";
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,OAAgB,CAAA;AAIvC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAA6B,MAAM,aAAa,CAAA;AACzF,OAAO,EAAE,cAAc,EAAsB,MAAM,qBAAqB,CAAA;AACxE,OAAO,EAAE,OAAO,EAAe,MAAM,EAAoB,MAAM,oBAAoB,CAAA;AAUnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,EAGL,MAAM,EAIN,OAAO,GACR,MAAM,UAAU,CAAA;AASjB,OAAO,EAGL,cAAc,EAEd,SAAS,GAKV,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAEL,YAAY,EACZ,eAAe,EACf,SAAS,EACT,WAAW,GACZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EACL,oBAAoB,EACpB,UAAU,EAIV,eAAe,EACf,YAAY,GACb,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAGL,oBAAoB,EACpB,YAAY,EACZ,kBAAkB,EAYlB,MAAM,EAEN,MAAM,EACN,cAAc,GACf,MAAM,oBAAoB,CAAA;AAC3B,OAAO,EAKL,GAAG,GACJ,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAGL,aAAa,GAId,MAAM,qBAAqB,CAAA;AAS5B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
* the unified route descriptor.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Current package version. A hardcoded literal on purpose — core runs on the edge (no fs), so it can't
|
|
10
|
+
* read its own package.json at runtime. `scripts/version.ts` rewrites it on every release bump and
|
|
11
|
+
* `check:publish` asserts it equals `@nifrajs/core`'s package version, so the literal can't go stale
|
|
12
|
+
* (it shipped at "0.0.0" through 1.0.0 before those guards existed). Kept narrow (`as const`) so
|
|
13
|
+
* consumers can pin it at the type level — see `test/version.test-d.ts`.
|
|
14
|
+
*/
|
|
15
|
+
export const VERSION = "1.1.0" as const
|
|
10
16
|
|
|
11
17
|
export type Version = typeof VERSION
|
|
12
18
|
|