@dereekb/dbx-cli 13.18.0 → 13.20.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/eslint/index.cjs.js +70 -10
- package/eslint/index.esm.js +70 -10
- package/eslint/package.json +3 -3
- package/firebase-api-manifest/package.json +3 -3
- package/generate-firestore-indexes/main.js +2 -2
- package/generate-firestore-indexes/package.json +2 -2
- package/generate-mcp-manifest/package.json +3 -3
- package/generate-route-manifest/main.js +94 -48
- package/generate-route-manifest/package.json +2 -2
- package/index.cjs.js +646 -582
- package/index.esm.js +646 -583
- package/lint-cache/package.json +2 -2
- package/manifest-extract/package.json +2 -2
- package/package.json +12 -6
- package/route/LICENSE +21 -0
- package/route/index.cjs.default.js +1 -0
- package/route/index.cjs.js +18 -0
- package/route/index.cjs.mjs +2 -0
- package/route/index.d.ts +1 -0
- package/route/index.esm.js +1 -0
- package/route/package.json +25 -0
- package/route/src/index.d.ts +11 -0
- package/src/lib/route/route-manifest.d.ts +1 -1
- package/src/lib/route/route-model-tag.d.ts +10 -3
- package/src/lib/route/url-match.d.ts +12 -0
- package/test/package.json +9 -9
- package/eslint/rollup.alias-internal.config.d.ts +0 -11
package/lint-cache/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli-lint-cache",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.20.0",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"devDependencies": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"eslint": "10.4.0"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@dereekb/util": "13.
|
|
11
|
+
"@dereekb/util": "13.20.0",
|
|
12
12
|
"yargs": "^18.0.0"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli/manifest-extract",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.20.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@dereekb/date": "13.15.0",
|
|
7
|
-
"@dereekb/dbx-cli": "13.
|
|
7
|
+
"@dereekb/dbx-cli": "13.20.0",
|
|
8
8
|
"@dereekb/firebase": "13.15.0",
|
|
9
9
|
"@dereekb/model": "13.15.0",
|
|
10
10
|
"@dereekb/nestjs": "13.15.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"bin": {
|
|
@@ -44,6 +44,12 @@
|
|
|
44
44
|
"import": "./model-test/index.cjs.mjs",
|
|
45
45
|
"default": "./model-test/index.cjs.js"
|
|
46
46
|
},
|
|
47
|
+
"./route": {
|
|
48
|
+
"module": "./route/index.esm.js",
|
|
49
|
+
"types": "./route/index.d.ts",
|
|
50
|
+
"import": "./route/index.esm.js",
|
|
51
|
+
"default": "./route/index.cjs.js"
|
|
52
|
+
},
|
|
47
53
|
"./test": {
|
|
48
54
|
"module": "./test/index.esm.js",
|
|
49
55
|
"types": "./test/index.d.ts",
|
|
@@ -60,11 +66,11 @@
|
|
|
60
66
|
}
|
|
61
67
|
},
|
|
62
68
|
"peerDependencies": {
|
|
63
|
-
"@dereekb/date": "13.
|
|
64
|
-
"@dereekb/firebase": "13.
|
|
65
|
-
"@dereekb/model": "13.
|
|
66
|
-
"@dereekb/nestjs": "13.
|
|
67
|
-
"@dereekb/util": "13.
|
|
69
|
+
"@dereekb/date": "13.20.0",
|
|
70
|
+
"@dereekb/firebase": "13.20.0",
|
|
71
|
+
"@dereekb/model": "13.20.0",
|
|
72
|
+
"@dereekb/nestjs": "13.20.0",
|
|
73
|
+
"@dereekb/util": "13.20.0",
|
|
68
74
|
"@nestjs/common": "^11.1.19",
|
|
69
75
|
"arktype": "^2.2.0",
|
|
70
76
|
"jiti": "2.6.1",
|
package/route/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Hapier Creative LLC.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
exports._default = require('./index.cjs.js').default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var dbxCli = require('@dereekb/dbx-cli');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "ROUTE_MANIFEST_VERSION", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return dbxCli.ROUTE_MANIFEST_VERSION; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "buildRouteManifest", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return dbxCli.buildRouteManifest; }
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(exports, "parseRouteModelTag", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return dbxCli.parseRouteModelTag; }
|
|
18
|
+
});
|
package/route/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./src/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ROUTE_MANIFEST_VERSION, buildRouteManifest, parseRouteModelTag } from '@dereekb/dbx-cli';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dereekb/dbx-cli/route",
|
|
3
|
+
"version": "13.20.0",
|
|
4
|
+
"sideEffects": false,
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@dereekb/date": "13.20.0",
|
|
7
|
+
"@dereekb/dbx-cli": "13.20.0",
|
|
8
|
+
"@dereekb/firebase": "13.20.0",
|
|
9
|
+
"@dereekb/model": "13.20.0",
|
|
10
|
+
"@dereekb/nestjs": "13.20.0",
|
|
11
|
+
"@dereekb/util": "13.20.0"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
"./package.json": "./package.json",
|
|
15
|
+
".": {
|
|
16
|
+
"module": "./index.esm.js",
|
|
17
|
+
"types": "./index.d.ts",
|
|
18
|
+
"import": "./index.cjs.mjs",
|
|
19
|
+
"default": "./index.cjs.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"module": "./index.esm.js",
|
|
23
|
+
"main": "./index.cjs.js",
|
|
24
|
+
"types": "./index.d.ts"
|
|
25
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Focused `@dereekb/dbx-cli/route` namespace: re-exports just the route-manifest
|
|
3
|
+
* public API (builder, tag parser, version, and the diagnostic / model types) so
|
|
4
|
+
* a downstream can unit-test its `@dbxRouteModel*` tags without pulling the full
|
|
5
|
+
* `@dereekb/dbx-cli` CLI surface (ts-morph scanners, mcp-scan, validators, …).
|
|
6
|
+
*
|
|
7
|
+
* `external: 'all'` keeps this a thin re-export shim — the root module graph is
|
|
8
|
+
* still loaded at runtime; the win is import-surface ergonomics, not weight.
|
|
9
|
+
*/
|
|
10
|
+
export { buildRouteManifest, parseRouteModelTag, ROUTE_MANIFEST_VERSION } from '@dereekb/dbx-cli';
|
|
11
|
+
export type { ParsedRouteModel, RouteModelKind, RouteManifest, RouteManifestStateEntry, RouteManifestModelEntry, RouteManifestWarning, RouteManifestWarningKind, RouteManifestSeverity, RouteSource } from '@dereekb/dbx-cli';
|
|
@@ -20,7 +20,7 @@ import type { RouteSource } from './route-types.js';
|
|
|
20
20
|
* manifests whose `version` does not match. Mirror in firebase-server/mcp's
|
|
21
21
|
* `ROUTE_MANIFEST_VERSION` — bump both together.
|
|
22
22
|
*/
|
|
23
|
-
export declare const ROUTE_MANIFEST_VERSION:
|
|
23
|
+
export declare const ROUTE_MANIFEST_VERSION: 2;
|
|
24
24
|
/**
|
|
25
25
|
* One model an app page renders, after tag parsing + inheritance flattening.
|
|
26
26
|
*/
|
|
@@ -14,6 +14,13 @@
|
|
|
14
14
|
* promoted to `<collectionName>/<id>` at runtime via the model identity).
|
|
15
15
|
* - `gb/:id/gbe/{authUid}` — alternating literal / placeholder segments (even
|
|
16
16
|
* count) → `kind: 'key'` (a full FirestoreModelKey for a subcollection model).
|
|
17
|
+
* An odd (id) segment may also be a `{const:<id>}` token for a fixed/singleton
|
|
18
|
+
* id (e.g. `wk/:uid/wkn/{const:0}`); it is normalized to the bare literal in
|
|
19
|
+
* the parsed `keyTemplate` so the runtime emits it verbatim, while a forgotten
|
|
20
|
+
* `:` (a bare `note`) still fails as malformed.
|
|
21
|
+
* - `{flatKey:<param>}` — single token → `kind: 'flatKey'`: the `<param>` URL
|
|
22
|
+
* value IS a whole two-way-flat FirestoreModelKey (`r_<id>_cs_<id>_d_<id>`),
|
|
23
|
+
* un-flattened at runtime. For pages that pack a full key into one URL segment.
|
|
17
24
|
* - (absent, list tag) → `kind: 'list'`.
|
|
18
25
|
*
|
|
19
26
|
* This module is deliberately runtime-dependency-free (no ts-morph): the same
|
|
@@ -23,10 +30,10 @@
|
|
|
23
30
|
* `./route-models-extract.ts` and re-exports these symbols for existing importers.
|
|
24
31
|
*/
|
|
25
32
|
/**
|
|
26
|
-
* Whether a route-model entry resolves to a promoted id, a full key,
|
|
27
|
-
* keyless list.
|
|
33
|
+
* Whether a route-model entry resolves to a promoted id, a full key, a
|
|
34
|
+
* single-param flattened key, or a keyless list.
|
|
28
35
|
*/
|
|
29
|
-
export type RouteModelKind = 'id' | 'key' | 'list';
|
|
36
|
+
export type RouteModelKind = 'id' | 'key' | 'flatKey' | 'list';
|
|
30
37
|
/**
|
|
31
38
|
* A successfully parsed `@dbxRouteModel*` tag.
|
|
32
39
|
*/
|
|
@@ -60,6 +60,18 @@ export interface MatchUrlAgainstEntriesInput<T> {
|
|
|
60
60
|
* @returns The normalized pathname.
|
|
61
61
|
*/
|
|
62
62
|
export declare function normalizePathname(pathname: string): string;
|
|
63
|
+
/**
|
|
64
|
+
* Strips a UIRouter query string (`?…`) and/or hash (`#…`) suffix off a URL or
|
|
65
|
+
* URL pattern, keeping only the path portion. Mirrors the runtime
|
|
66
|
+
* `parseUrlModelsPathname` normalization (`firebase-server/mcp`) so build-time
|
|
67
|
+
* param extraction and runtime matching agree: a state url like
|
|
68
|
+
* `/:schoolJob?slotIndex` reduces to `/:schoolJob` rather than leaking the
|
|
69
|
+
* `?slotIndex` query param into the last path segment.
|
|
70
|
+
*
|
|
71
|
+
* @param url - The URL or composed URL pattern to normalize.
|
|
72
|
+
* @returns The url with any `?…` / `#…` suffix removed.
|
|
73
|
+
*/
|
|
74
|
+
export declare function stripUrlQueryAndHash(url: string): string;
|
|
63
75
|
/**
|
|
64
76
|
* Splits a path into its non-empty segments (the leading slash is dropped).
|
|
65
77
|
*
|
package/test/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/dbx-cli/test",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.20.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@dereekb/date": "13.
|
|
6
|
-
"@dereekb/dbx-cli": "13.
|
|
7
|
-
"@dereekb/firebase": "13.
|
|
8
|
-
"@dereekb/firebase-server/test": "13.
|
|
9
|
-
"@dereekb/model": "13.
|
|
10
|
-
"@dereekb/nestjs": "13.
|
|
11
|
-
"@dereekb/rxjs": "13.
|
|
12
|
-
"@dereekb/util": "13.
|
|
5
|
+
"@dereekb/date": "13.20.0",
|
|
6
|
+
"@dereekb/dbx-cli": "13.20.0",
|
|
7
|
+
"@dereekb/firebase": "13.20.0",
|
|
8
|
+
"@dereekb/firebase-server/test": "13.20.0",
|
|
9
|
+
"@dereekb/model": "13.20.0",
|
|
10
|
+
"@dereekb/nestjs": "13.20.0",
|
|
11
|
+
"@dereekb/rxjs": "13.20.0",
|
|
12
|
+
"@dereekb/util": "13.20.0",
|
|
13
13
|
"@nestjs/common": "^11.1.19",
|
|
14
14
|
"arktype": "^2.2.0",
|
|
15
15
|
"vitest": "4.1.5",
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param config - The rollup config @nx/rollup hands to the hook.
|
|
3
|
-
* @param _options - The @nx/rollup options (unused).
|
|
4
|
-
* @returns The mutated rollup config.
|
|
5
|
-
*
|
|
6
|
-
* @nx /rollup `rollupConfig` hook that inlines the workspace's internal `@dereekb/*` imports into
|
|
7
|
-
* the published ESLint plugin bundle. Prepends an alias plugin redirecting {@link INTERNAL_ALIASES}
|
|
8
|
-
* to their TS sources and wraps the `external: "all"` callback so {@link BUNDLED_DEPENDENCIES} are
|
|
9
|
-
* treated as internal.
|
|
10
|
-
*/
|
|
11
|
-
export default function applyInternalAliases(config: any, _options: any): Promise<any>;
|