@thallylabs/migrate 0.2.11 → 0.2.12

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/README.md CHANGED
@@ -167,6 +167,23 @@ the callback cannot be moved safely, it keeps the page and the control's child
167
167
  content as a passive fallback, with a warning identifying the control. A
168
168
  stateful local snippet component is kept as a client component instead of
169
169
  flattening away its hooks and state.
170
+ A component a page declares itself (`export const Counter = () => ...`) that
171
+ calls a React hook is moved into its own `'use client'` module, together with
172
+ every page-local component, helper and constant it uses (a sibling it renders,
173
+ a dependency that is itself stateful, a value only reached through a prop),
174
+ in source order and under their original names. The imports that moved code
175
+ needs move with it. What the page still renders stays reachable: a server-safe
176
+ dependency the page also uses is kept in the page and copied, while a
177
+ client-only one is imported from the module. A page-local name always wins
178
+ over a same-named built-in. If any dependency cannot run in a client module
179
+ (server-only APIs such as `process` or `await`, an undeclared name, a package
180
+ the migration removed, a dynamic `import()`), the component is left where it
181
+ is and a warning names it and the blocker.
182
+ `<Snippet file="...">` accepts the documented `snippets/`-relative path as well
183
+ as a `/snippets/...` or page-relative one. An outer code fence that contains a
184
+ same-length nested fence is widened so the inner fence no longer closes it, and
185
+ a bare placeholder tag in prose (`<Feature> requires a plan`) that would stop
186
+ the page compiling is escaped as text rather than losing the page.
170
187
  The Mintlify `search-bar-entry` click trigger is mapped to Thally's search
171
188
  shortcut. Markdown mixed inside interactive JSX, computed imports, and
172
189
  namespace imports are reported for manual review; unsupported source is