@teispace/next-maker 1.16.1 → 1.17.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,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.17.0](https://github.com/teispace/npm-packages/compare/next-maker-v1.16.1...next-maker-v1.17.0) (2026-04-26)
4
+
5
+
6
+ ### Features
7
+
8
+ * **next-maker:** auto-unwrap provider chains and next.config wraps on remove ([362ccd0](https://github.com/teispace/npm-packages/commit/362ccd0ef3cb98857600bc9def0e77e01f5c1779))
9
+
3
10
  ## [1.16.1](https://github.com/teispace/npm-packages/compare/next-maker-v1.16.0...next-maker-v1.16.1) (2026-04-26)
4
11
 
5
12
 
package/README.md CHANGED
@@ -175,7 +175,7 @@ npx @teispace/next-maker remove <feature> [options]
175
175
  | `--dry-run` | Print the planned changes without writing |
176
176
  | `-y, --yes` | Skip the confirmation prompt |
177
177
 
178
- Anything the manifest can't safely undo (e.g. unwrapping an outer JSX wrap with multiple sibling providers) is reported as `manual cleanup` rather than guessed.
178
+ **Auto-removed when possible:** provider chain unwraps (`<NextIntlClientProvider>`, `<StoreProvider>`, `<CustomThemeProvider>`), the `withNextIntl(...)` and `bundleAnalyzer(...)` wraps in `next.config.ts`, and their orphan import statements. The transforms are conservative — if the file shape has drifted from the canonical pattern (e.g. a multi-line opening tag, no matching close at the same indent), the runner bails out and surfaces it as manual cleanup rather than corrupting your code.
179
179
 
180
180
  `remove` will **never recursively delete a directory that may hold user-authored content** — `src/app/[locale]/` (your pages), `src/i18n/` (your translations), `src/store/` (your slices), `src/lib/utils/http/` (your service code), and `test/` (your helpers) are flagged in the manifest with `containsUserContent: true` and surface as manual-cleanup with a hint. Move what you want to keep, then `rm -rf` the rest by hand.
181
181