@byline/cli 2.1.2 → 2.1.3
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/manifest/deps.d.ts
CHANGED
|
@@ -4,11 +4,10 @@
|
|
|
4
4
|
* `deps` phase (to install missing entries) and by `doctor` (to report
|
|
5
5
|
* what's missing without re-running the install).
|
|
6
6
|
*
|
|
7
|
-
* Versioning policy: `@byline/*` packages are released
|
|
8
|
-
* they share `BYLINE_VERSION
|
|
9
|
-
* own `1.x`
|
|
10
|
-
*
|
|
11
|
-
* separately.
|
|
7
|
+
* Versioning policy: all publishable `@byline/*` packages are released
|
|
8
|
+
* in lockstep, so they share `BYLINE_VERSION` — including
|
|
9
|
+
* `@byline/host-tanstack-start`, which previously rode its own `1.x`
|
|
10
|
+
* line but is now part of the lockstep set from 2.x onwards.
|
|
12
11
|
*
|
|
13
12
|
* Scope: this list is intentionally minimal — only packages that are
|
|
14
13
|
* directly imported by files we drop into the user's tree (`byline/`,
|
|
@@ -23,7 +22,6 @@ export interface DepSpec {
|
|
|
23
22
|
/** Short human-readable reason this is on the list. */
|
|
24
23
|
note: string;
|
|
25
24
|
}
|
|
26
|
-
export declare const BYLINE_VERSION = "^
|
|
27
|
-
export declare const HOST_TANSTACK_VERSION = "^1.0.0";
|
|
25
|
+
export declare const BYLINE_VERSION = "^2.0.0";
|
|
28
26
|
export declare const DEP_SPECS: readonly DepSpec[];
|
|
29
27
|
//# sourceMappingURL=deps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/manifest/deps.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../src/manifest/deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAA;AAEnD,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,QAAQ,CAAA;IACf,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAA;CACb;AAED,eAAO,MAAM,cAAc,WAAW,CAAA;AAEtC,eAAO,MAAM,SAAS,EAAE,SAAS,OAAO,EAkH9B,CAAA"}
|
package/dist/manifest/deps.js
CHANGED
|
@@ -4,19 +4,17 @@
|
|
|
4
4
|
* `deps` phase (to install missing entries) and by `doctor` (to report
|
|
5
5
|
* what's missing without re-running the install).
|
|
6
6
|
*
|
|
7
|
-
* Versioning policy: `@byline/*` packages are released
|
|
8
|
-
* they share `BYLINE_VERSION
|
|
9
|
-
* own `1.x`
|
|
10
|
-
*
|
|
11
|
-
* separately.
|
|
7
|
+
* Versioning policy: all publishable `@byline/*` packages are released
|
|
8
|
+
* in lockstep, so they share `BYLINE_VERSION` — including
|
|
9
|
+
* `@byline/host-tanstack-start`, which previously rode its own `1.x`
|
|
10
|
+
* line but is now part of the lockstep set from 2.x onwards.
|
|
12
11
|
*
|
|
13
12
|
* Scope: this list is intentionally minimal — only packages that are
|
|
14
13
|
* directly imported by files we drop into the user's tree (`byline/`,
|
|
15
14
|
* `src/routes/_byline/`, `src/ui/byline/`). Transitive deps reach the
|
|
16
15
|
* user via the `@byline/*` package boundary and don't need declaring.
|
|
17
16
|
*/
|
|
18
|
-
export const BYLINE_VERSION = '^
|
|
19
|
-
export const HOST_TANSTACK_VERSION = '^1.0.0';
|
|
17
|
+
export const BYLINE_VERSION = '^2.0.0';
|
|
20
18
|
export const DEP_SPECS = [
|
|
21
19
|
// ---- @byline/* — released in lockstep at BYLINE_VERSION -----------------
|
|
22
20
|
{
|
|
@@ -25,6 +23,12 @@ export const DEP_SPECS = [
|
|
|
25
23
|
group: 'byline',
|
|
26
24
|
note: 'admin user / role / permission modules + JwtSessionProvider',
|
|
27
25
|
},
|
|
26
|
+
{
|
|
27
|
+
name: '@byline/ai',
|
|
28
|
+
version: BYLINE_VERSION,
|
|
29
|
+
group: 'byline',
|
|
30
|
+
note: 'AI subsystem; pre-bundled by the host vite.config.ts via optimizeDeps.include',
|
|
31
|
+
},
|
|
28
32
|
{
|
|
29
33
|
name: '@byline/auth',
|
|
30
34
|
version: BYLINE_VERSION,
|
|
@@ -51,7 +55,7 @@ export const DEP_SPECS = [
|
|
|
51
55
|
},
|
|
52
56
|
{
|
|
53
57
|
name: '@byline/host-tanstack-start',
|
|
54
|
-
version:
|
|
58
|
+
version: BYLINE_VERSION,
|
|
55
59
|
group: 'byline',
|
|
56
60
|
note: 'TanStack Start integrations + route stubs',
|
|
57
61
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deps.js","sourceRoot":"","sources":["../../src/manifest/deps.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"deps.js","sourceRoot":"","sources":["../../src/manifest/deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAYH,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAA;AAEtC,MAAM,CAAC,MAAM,SAAS,GAAuB;IAC3C,4EAA4E;IAC5E;QACE,IAAI,EAAE,eAAe;QACrB,OAAO,EAAE,cAAc;QACvB,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,6DAA6D;KACpE;IACD;QACE,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,cAAc;QACvB,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,+EAA+E;KACtF;IACD;QACE,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,cAAc;QACvB,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,mDAAmD;KAC1D;IACD;QACE,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,cAAc;QACvB,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,6DAA6D;KACpE;IACD;QACE,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,cAAc;QAC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,KAAK,EAAE,SAAS;QAChB,IAAI,EAAE,2LAA2L;KAClM;IAED,2EAA2E;IAC3E;QACE,IAAI,EAAE,yBAAyB;QAC/B,OAAO,EAAE,QAAQ;QACjB,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,kEAAkE;KACzE;IACD;QACE,IAAI,EAAE,KAAK;QACX,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,KAAK;QACZ,IAAI,EAAE,+DAA+D;KACtE;CACO,CAAA"}
|
|
@@ -75,6 +75,39 @@ const config = defineConfig({
|
|
|
75
75
|
// Rolldown. Without this, the optimized chunk keeps a bare
|
|
76
76
|
// `import('node:async_hooks')` that Vite's runtime then resolves to
|
|
77
77
|
// its noisy browser-external stub.
|
|
78
|
+
// Force pre-bundling of @byline/ui so Vite's dep optimizer walks
|
|
79
|
+
// into it and inlines its CJS deps — notably
|
|
80
|
+
// `@base-ui/utils/store/useStore` and `use-sync-external-store/shim`.
|
|
81
|
+
//
|
|
82
|
+
// Without this, those CJS modules are reached via Vite's regular
|
|
83
|
+
// module pipeline at runtime, where the on-the-fly CJS->ESM interop
|
|
84
|
+
// can fail to synthesise the named `useSyncExternalStore` export.
|
|
85
|
+
// The browser then throws a SyntaxError, the route never hydrates,
|
|
86
|
+
// and forms fall back to native GET behaviour.
|
|
87
|
+
//
|
|
88
|
+
// @byline/ui ships React-side code through a single
|
|
89
|
+
// `@byline/ui/react` entry point — there are no per-area subpaths
|
|
90
|
+
// to pre-bundle individually. That single-entry shape is also why
|
|
91
|
+
// pre-bundling here is now safe: the React Contexts in
|
|
92
|
+
// `services/*` resolve to one module instance regardless of which
|
|
93
|
+
// file in @byline/ui imports them.
|
|
94
|
+
//
|
|
95
|
+
// @byline/ai and its plugin subpaths are pre-bundled for the same
|
|
96
|
+
// reason — the published package ships compiled JS that the dep
|
|
97
|
+
// optimizer needs to walk so its CJS interop and `node:async_hooks`
|
|
98
|
+
// rewrite (below) take effect in the client bundle.
|
|
99
|
+
//
|
|
100
|
+
// We intentionally do NOT pre-bundle @byline/host-tanstack-start
|
|
101
|
+
// subpaths — they transitively pull in @tanstack/start-server-core,
|
|
102
|
+
// which references Vite-virtual modules (e.g.
|
|
103
|
+
// `tanstack-start-injected-head-scripts:v`) that the dep optimizer
|
|
104
|
+
// cannot resolve.
|
|
105
|
+
include: [
|
|
106
|
+
'@byline/ui/react',
|
|
107
|
+
'@byline/ai',
|
|
108
|
+
'@byline/ai/plugins/text',
|
|
109
|
+
'@byline/ai/plugins/lexical',
|
|
110
|
+
],
|
|
78
111
|
rolldownOptions: {
|
|
79
112
|
plugins: [
|
|
80
113
|
{
|
|
@@ -88,31 +121,6 @@ const config = defineConfig({
|
|
|
88
121
|
},
|
|
89
122
|
],
|
|
90
123
|
},
|
|
91
|
-
include: [
|
|
92
|
-
// Force pre-bundling of @byline/ui so Vite's dep optimizer walks
|
|
93
|
-
// into it and inlines its CJS deps — notably
|
|
94
|
-
// `@base-ui/utils/store/useStore` and `use-sync-external-store/shim`.
|
|
95
|
-
//
|
|
96
|
-
// Without this, those CJS modules are reached via Vite's regular
|
|
97
|
-
// module pipeline at runtime, where the on-the-fly CJS->ESM interop
|
|
98
|
-
// can fail to synthesise the named `useSyncExternalStore` export.
|
|
99
|
-
// The browser then throws a SyntaxError, the route never hydrates,
|
|
100
|
-
// and forms fall back to native GET behaviour.
|
|
101
|
-
//
|
|
102
|
-
// @byline/ui ships React-side code through a single
|
|
103
|
-
// `@byline/ui/react` entry point — there are no per-area subpaths
|
|
104
|
-
// to pre-bundle individually. That single-entry shape is also why
|
|
105
|
-
// pre-bundling here is now safe: the React Contexts in
|
|
106
|
-
// `services/*` resolve to one module instance regardless of which
|
|
107
|
-
// file in @byline/ui imports them.
|
|
108
|
-
//
|
|
109
|
-
// We intentionally do NOT pre-bundle @byline/host-tanstack-start
|
|
110
|
-
// subpaths — they transitively pull in @tanstack/start-server-core,
|
|
111
|
-
// which references Vite-virtual modules (e.g.
|
|
112
|
-
// `tanstack-start-injected-head-scripts:v`) that the dep optimizer
|
|
113
|
-
// cannot resolve.
|
|
114
|
-
'@byline/ui/react',
|
|
115
|
-
],
|
|
116
124
|
},
|
|
117
125
|
},
|
|
118
126
|
ssr: {
|