@objectstack/metadata 17.0.0 → 17.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/CHANGELOG.md CHANGED
@@ -1,5 +1,182 @@
1
1
  # @objectstack/metadata
2
2
 
3
+ ## 17.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - 7337f30: chore(deps): production-dependency patch bumps from the weekly Dependabot group (#9212)
8
+
9
+ Routine dependency-range refresh, no behavior change: `@oclif/core` 4.13.2→4.13.3,
10
+ `esbuild` 0.28.1→0.28.2 and `better-sqlite3` ^13.0.2→^13.0.3 (optional) on
11
+ `@objectstack/cli`; `mingo` 7.2.2→7.2.4 on `@objectstack/driver-memory`; `nanoid`
12
+ 6.0.0→6.0.1 on `@objectstack/driver-mongodb`, `@objectstack/driver-sql`,
13
+ `@objectstack/driver-sqlite-wasm` and `@objectstack/driver-turso`, plus
14
+ `better-sqlite3` ^13.0.2→^13.0.3 (optional on `@objectstack/driver-sql`, peer on
15
+ `@objectstack/driver-turso`); `js-yaml` 5.2.2→5.2.3 on `@objectstack/metadata`;
16
+ `@noble/hashes` 2.2.0→2.3.0 and `jose` 6.2.5→6.2.8 on `@objectstack/plugin-auth`;
17
+ `nodemailer` 9.0.3→9.0.5 on `@objectstack/plugin-email`; `@hono/node-server`
18
+ 2.0.12→2.1.1 and `hono` 4.12.34→4.13.2 on `@objectstack/plugin-hono-server`;
19
+ `pinyin-pro` 3.28.2→3.29.1 on `@objectstack/plugin-pinyin-search`; and
20
+ `@noble/ciphers` 2.2.0→2.3.0 on `@objectstack/service-settings`.
21
+
22
+ Every entry above changed a `dependencies`, `optionalDependencies` or
23
+ `peerDependencies` range in the published manifest — the only kind of change
24
+ that reaches a consumer's install. The same Dependabot group also bumped
25
+ `devDependencies` on `@objectstack/hono`, `@objectstack/client`,
26
+ `@objectstack/core`, `@objectstack/plugin-sharing` and `@objectstack/spec`
27
+ (none consumer-facing), and touched the private `apps/docs`,
28
+ `examples/app-todo` and workspace-root manifests (none published) — none of
29
+ those get an entry here.
30
+ - 2a9752c: fix(metadata): `MetadataPlugin`'s `watch` option defaults to `false`, as its own doc comment documents (#9770)
31
+
32
+ `MetadataPluginOptions.watch` documents its default as ``Default: `false` (post PR-10e —
33
+ was previously `true`)``, directly above the field. The constructor implemented the
34
+ opposite, and it did so in **two** places, so both entry shapes resolved `true`:
35
+
36
+ - the options literal `{ watch: true, ...options }` — covering a caller who **omits** the key;
37
+ - the fallback `this.options.watch ?? true` — covering a caller who passes an explicit
38
+ `undefined`.
39
+
40
+ Both non-test construction sites in this repo pass `watch: false` explicitly and are
41
+ unaffected either way, which is exactly why the drift was invisible to every test and
42
+ gate: no in-repo configuration exercised the default. `MetadataPlugin` is a public export
43
+ (`@objectstack/metadata`, `@objectstack/metadata/node`), so the consumers who did reach it
44
+ were **external** ones — and they reached it by doing the documented-safe thing and not
45
+ naming the key at all. What they got was the configuration both internal call sites go out
46
+ of their way to refuse, citing an **EMFILE** hazard at both: a recursive chokidar poll
47
+ (`usePolling: true, interval: 1000`) over the entire project root, with `node_modules`
48
+ excluded only by chokidar's default `ignored`.
49
+
50
+ The default now resolves `false`. The flag is normalized once in the constructor
51
+ (`watch: options.watch ?? false`) rather than spelled `{ watch: false, ...options }`,
52
+ because a spread preserves an explicitly-passed `undefined` verbatim and not every read of
53
+ the flag routes through a nullish fallback — the `start()`-time `FileSystemRepository`
54
+ `disableWatch` keys on `=== false`. Coercing once makes an omitted key and an explicit
55
+ `undefined` resolve identically at every downstream read, instead of trading one
56
+ two-spelling divergence for another.
57
+
58
+ This is a default flip, **not** a capability removal: an explicit `watch: true` still
59
+ attaches the scanner and its watcher, and the sealed-runtime carve-out
60
+ (`bootstrap: 'artifact-only'` forces watching off even against an explicit `watch: true`)
61
+ is untouched. Pins cover all four shapes, asserting on the **observable** — whether a
62
+ watcher object exists on the manager — rather than on the resolved options value alone.
63
+ - Updated dependencies [56656aa]
64
+ - Updated dependencies [c9f5950]
65
+ - Updated dependencies [d6e80b2]
66
+ - Updated dependencies [07e630e]
67
+ - Updated dependencies [66beee0]
68
+ - Updated dependencies [2f65b1b]
69
+ - Updated dependencies [720ee95]
70
+ - Updated dependencies [f287435]
71
+ - Updated dependencies [2782805]
72
+ - Updated dependencies [e43d63a]
73
+ - Updated dependencies [9aa8890]
74
+ - Updated dependencies [7c9c1dd]
75
+ - Updated dependencies [03520eb]
76
+ - Updated dependencies [75b7c24]
77
+ - Updated dependencies [d5552ca]
78
+ - Updated dependencies [d9813a9]
79
+ - Updated dependencies [8640fb2]
80
+ - Updated dependencies [2420641]
81
+ - Updated dependencies [2ad91c3]
82
+ - Updated dependencies [f57fb38]
83
+ - Updated dependencies [00777a0]
84
+ - Updated dependencies [d491625]
85
+ - Updated dependencies [2d0af57]
86
+ - Updated dependencies [420804d]
87
+ - Updated dependencies [716ac9b]
88
+ - Updated dependencies [a38408a]
89
+ - Updated dependencies [62b1427]
90
+ - Updated dependencies [7ea1372]
91
+ - Updated dependencies [23abe27]
92
+ - Updated dependencies [985a9cd]
93
+ - Updated dependencies [5f5e234]
94
+ - Updated dependencies [a8189ae]
95
+ - Updated dependencies [26e70fb]
96
+ - Updated dependencies [27a567d]
97
+ - Updated dependencies [42b05af]
98
+ - Updated dependencies [2b292ce]
99
+ - Updated dependencies [abcf853]
100
+ - Updated dependencies [8b9eba5]
101
+ - Updated dependencies [d575779]
102
+ - Updated dependencies [94f7ef8]
103
+ - Updated dependencies [c5ac5e4]
104
+ - Updated dependencies [a777944]
105
+ - Updated dependencies [dd88e1c]
106
+ - Updated dependencies [856527c]
107
+ - Updated dependencies [870f710]
108
+ - Updated dependencies [79c46da]
109
+ - Updated dependencies [7ff3975]
110
+ - Updated dependencies [29d055b]
111
+ - Updated dependencies [65589d6]
112
+ - Updated dependencies [2c86fe3]
113
+ - Updated dependencies [e196c6a]
114
+ - Updated dependencies [24173e9]
115
+ - Updated dependencies [4ab7523]
116
+ - Updated dependencies [19539b4]
117
+ - Updated dependencies [f8eb736]
118
+ - Updated dependencies [11b779e]
119
+ - Updated dependencies [739fe5b]
120
+ - Updated dependencies [4bfe1a5]
121
+ - Updated dependencies [2065e31]
122
+ - Updated dependencies [b69d0f5]
123
+ - Updated dependencies [bd2fc8b]
124
+ - Updated dependencies [4d47afe]
125
+ - Updated dependencies [e4e5c6e]
126
+ - Updated dependencies [9a56784]
127
+ - Updated dependencies [d00d2f6]
128
+ - Updated dependencies [df0c12d]
129
+ - Updated dependencies [d31785f]
130
+ - Updated dependencies [c308a4f]
131
+ - Updated dependencies [e2899f6]
132
+ - Updated dependencies [b6c7690]
133
+ - Updated dependencies [3851f87]
134
+ - Updated dependencies [845e164]
135
+ - Updated dependencies [2a29caa]
136
+ - Updated dependencies [09a6eee]
137
+ - Updated dependencies [1a7f907]
138
+ - Updated dependencies [cd455c8]
139
+ - Updated dependencies [e1bb0ca]
140
+ - Updated dependencies [30d3752]
141
+ - Updated dependencies [c80e7ae]
142
+ - Updated dependencies [09a9a8a]
143
+ - Updated dependencies [07026cf]
144
+ - Updated dependencies [5d4f3d5]
145
+ - Updated dependencies [4d80e8b]
146
+ - Updated dependencies [30b1c63]
147
+ - Updated dependencies [7fc01db]
148
+ - Updated dependencies [079b457]
149
+ - Updated dependencies [e43b211]
150
+ - Updated dependencies [890b38f]
151
+ - Updated dependencies [8bee54b]
152
+ - Updated dependencies [04f8fdb]
153
+ - Updated dependencies [7a537ce]
154
+ - Updated dependencies [593c4bf]
155
+ - Updated dependencies [6158146]
156
+ - Updated dependencies [84cb121]
157
+ - Updated dependencies [ca19ee8]
158
+ - Updated dependencies [a675b4d]
159
+ - Updated dependencies [b887013]
160
+ - Updated dependencies [ff08691]
161
+ - Updated dependencies [60e0f90]
162
+ - Updated dependencies [90c5285]
163
+ - Updated dependencies [402c125]
164
+ - Updated dependencies [7901b2d]
165
+ - Updated dependencies [56bca91]
166
+ - Updated dependencies [b3f9831]
167
+ - Updated dependencies [79394d7]
168
+ - Updated dependencies [730fd9a]
169
+ - Updated dependencies [44bc51d]
170
+ - Updated dependencies [bbbfcfc]
171
+ - Updated dependencies [73cfddf]
172
+ - Updated dependencies [d634e66]
173
+ - @objectstack/spec@17.1.0
174
+ - @objectstack/platform-objects@17.1.0
175
+ - @objectstack/types@17.1.0
176
+ - @objectstack/core@17.1.0
177
+ - @objectstack/metadata-fs@17.1.0
178
+ - @objectstack/metadata-core@17.1.0
179
+
3
180
  ## 17.0.0
4
181
 
5
182
  ### Major Changes
package/dist/index.cjs CHANGED
@@ -4793,12 +4793,12 @@ var MetadataPlugin = class {
4793
4793
  this.repository = void 0;
4794
4794
  };
4795
4795
  this.options = {
4796
- watch: true,
4797
- ...options
4796
+ ...options,
4797
+ watch: options.watch ?? false
4798
4798
  };
4799
4799
  const rootDir = this.options.rootDir || process.cwd();
4800
4800
  const bootstrapMode = this.options.config?.bootstrap ?? "eager";
4801
- const effectiveWatch = bootstrapMode === "artifact-only" ? false : this.options.watch ?? true;
4801
+ const effectiveWatch = bootstrapMode === "artifact-only" ? false : this.options.watch ?? false;
4802
4802
  this.manager = new NodeMetadataManager({
4803
4803
  rootDir,
4804
4804
  watch: effectiveWatch,