@reticlehq/vite-plugin 3.8.1 → 3.9.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.cjs +9 -1
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -1
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -6204,6 +6204,12 @@ var TRANSPORT_LIMITS = {
|
|
|
6204
6204
|
MAX_STACK_LENGTH: 4e3,
|
|
6205
6205
|
MAX_SERIALIZE_DEPTH: 8,
|
|
6206
6206
|
MAX_COLLECTION_ITEMS: 200,
|
|
6207
|
+
/** What a descriptor carries of an element's text for an agent to READ: 80 characters and an ellipsis. */
|
|
6208
|
+
MAX_DESCRIBED_TEXT: 80,
|
|
6209
|
+
/** What a descriptor carries when a verdict has to JUDGE the text (`MatchArg.FULL_TEXT`); a text MORE than this long was cut. */
|
|
6210
|
+
MAX_FULL_TEXT: 4e3,
|
|
6211
|
+
/** Elements a MATCH describes in full-text mode, about half the transport's character budget; `count` still reports all. */
|
|
6212
|
+
MAX_FULL_TEXT_ELEMENTS: 32,
|
|
6207
6213
|
MAX_OBJECT_KEYS: 200,
|
|
6208
6214
|
MAX_STRING_LENGTH: 64 * 1024,
|
|
6209
6215
|
/** Human review marks: the note the human types when flagging a mistake on the page. */
|
|
@@ -7351,7 +7357,9 @@ function connectModuleSource(options, devModule = null) {
|
|
|
7351
7357
|
const args = connectArgs(options);
|
|
7352
7358
|
const sdk = installedSdk(options.root ?? process.cwd());
|
|
7353
7359
|
const named = sdk.usesInstall ? "reticle, install" : "reticle";
|
|
7354
|
-
const
|
|
7360
|
+
const installArg = false === options.discoverStores ? "{ discoverStores: false }" : "";
|
|
7361
|
+
const call = sdk.usesInstall ? `install(${installArg});
|
|
7362
|
+
` : "";
|
|
7355
7363
|
const hot = `if (import.meta.hot) reticle.observeHotUpdates(import.meta.hot);
|
|
7356
7364
|
`;
|
|
7357
7365
|
const base = `import { ${named} } from '${sdk.specifier}';
|
package/dist/index.d.cts
CHANGED
|
@@ -70,6 +70,11 @@ export interface ReticleVitePluginOptions {
|
|
|
70
70
|
sourceMapping?: boolean;
|
|
71
71
|
/** Auto-inject the dev-gated reticle.connect call. Default true. */
|
|
72
72
|
inject?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Auto-register context stores found in the React fiber tree (Redux, QueryClient, etc.).
|
|
75
|
+
* Default true. Set false to disable store discovery in React apps.
|
|
76
|
+
*/
|
|
77
|
+
discoverStores?: boolean;
|
|
73
78
|
/**
|
|
74
79
|
* This build is an Electron/Tauri renderer. Changes two things a desktop shell needs and a web app
|
|
75
80
|
* must not get:
|
package/dist/index.d.ts
CHANGED
|
@@ -70,6 +70,11 @@ export interface ReticleVitePluginOptions {
|
|
|
70
70
|
sourceMapping?: boolean;
|
|
71
71
|
/** Auto-inject the dev-gated reticle.connect call. Default true. */
|
|
72
72
|
inject?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Auto-register context stores found in the React fiber tree (Redux, QueryClient, etc.).
|
|
75
|
+
* Default true. Set false to disable store discovery in React apps.
|
|
76
|
+
*/
|
|
77
|
+
discoverStores?: boolean;
|
|
73
78
|
/**
|
|
74
79
|
* This build is an Electron/Tauri renderer. Changes two things a desktop shell needs and a web app
|
|
75
80
|
* must not get:
|
package/dist/index.js
CHANGED
|
@@ -232,7 +232,8 @@ export function connectModuleSource(options, devModule = null) {
|
|
|
232
232
|
const args = connectArgs(options);
|
|
233
233
|
const sdk = installedSdk(options.root ?? process.cwd());
|
|
234
234
|
const named = sdk.usesInstall ? 'reticle, install' : 'reticle';
|
|
235
|
-
const
|
|
235
|
+
const installArg = false === options.discoverStores ? '{ discoverStores: false }' : '';
|
|
236
|
+
const call = sdk.usesInstall ? `install(${installArg});\n` : '';
|
|
236
237
|
// The only place in a Vite app that can see hot updates. `import.meta.hot` exists per module and
|
|
237
238
|
// only for modules Vite serves through its own transform; the SDK is a dependency, pre-bundled by
|
|
238
239
|
// the optimizer, and gets no hot context however it is written — so the channel is handed to it
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/vite-plugin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.0",
|
|
4
4
|
"description": "Vite plugin for Reticle: dev-only source-map stamping plus auto-injected reticle.connect(). apply:'serve' guarantees it never ships to production.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -41,15 +41,15 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@babel/core": "^7.26.0",
|
|
44
|
-
"@reticlehq/babel-plugin": "3.
|
|
45
|
-
"@reticlehq/core": "3.
|
|
44
|
+
"@reticlehq/babel-plugin": "3.9.0",
|
|
45
|
+
"@reticlehq/core": "3.9.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/babel__core": "^7.20.5",
|
|
49
49
|
"esbuild": "^0.28.2",
|
|
50
50
|
"svelte": "^5.57.1",
|
|
51
51
|
"vite": "^8",
|
|
52
|
-
"@reticlehq/react": "3.
|
|
52
|
+
"@reticlehq/react": "3.9.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"vite": ">=4"
|