From c7b22c17a397d6fa35dba83f5964113bf82fdf77 Mon Sep 17 00:00:00 2001 From: Dwlad90 Date: Mon, 9 Dec 2024 23:24:44 +0200 Subject: [PATCH] chore(@stylexswc/nextjs-swc-plugin): marked as deprecated --- packages/nextjs-swc-plugin/README.md | 22 ++++++++++++++++++++-- packages/nextjs-swc-plugin/package.json | 1 + 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/packages/nextjs-swc-plugin/README.md b/packages/nextjs-swc-plugin/README.md index 49a4e803b..342cf6716 100644 --- a/packages/nextjs-swc-plugin/README.md +++ b/packages/nextjs-swc-plugin/README.md @@ -1,7 +1,25 @@ # SWC Stylex plugin for Next.js -> [!WARNING] -> **Deprecated**: This package is deprecated as of version `0.3.0` and may be removed in the future. Please use the [`nextjs-plugin`](https://github.com/dwlad90/stylex-swc-plugin/tree/develop/packages/nextjs-plugin) instead. +> [!CAUTION] +> **DEPRECATED**: This package is deprecated as of version 0.5.0. Please migrate to [`@stylexswc/nextjs-plugin`](https://github.com/dwlad90/stylex-swc-plugin/tree/develop/packages/nextjs-plugin) which is the official replacement. + +## Migration Guide + +To migrate from this package to the new one: + +1. Uninstall this package: + +```sh +npm uninstall @stylexswc/nextjs-swc-plugin +``` + +2. Install the new package: + +```sh +npm install --save-dev @stylexswc/nextjs-plugin +``` + +3. Update `next.config.js` according to the [Advanced Options](https://github.com/Dwlad90/stylex-swc-plugin/tree/develop/packages/nextjs-swc-plugin#plugin-options) section. ## Breaking Changes in v0.5.0 diff --git a/packages/nextjs-swc-plugin/package.json b/packages/nextjs-swc-plugin/package.json index 68926f803..98b5b4b97 100644 --- a/packages/nextjs-swc-plugin/package.json +++ b/packages/nextjs-swc-plugin/package.json @@ -10,6 +10,7 @@ "dependencies": { "@stylexjs/babel-plugin": "^0.9.3" }, + "deprecated": "Package deprecated since v0.5.0. Please use @stylexswc/nextjs-plugin instead. This package will be removed in the next minor release.", "devDependencies": { "@babel/types": "^7.23.9", "@stylexswc/eslint-config": "0.4.4",