From 0e9d393a5592ff26eb17ef7245f62fffd213b419 Mon Sep 17 00:00:00 2001 From: Mayank Kumar Chaudhari Date: Sat, 30 Sep 2023 22:18:08 +0530 Subject: [PATCH] Add deprecation message --- README.md | 11 +++++++---- package.json | 6 +++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4bc9b21..89aa729 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # esbuild-react18-useclient [![Version](https://img.shields.io/npm/v/esbuild-react18-useclient.svg?colorB=green)](https://www.npmjs.com/package/esbuild-react18-useclient) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/esbuild-react18-useclient.svg)](https://www.npmjs.com/package/esbuild-react18-useclient) [![Publish to npm and GitHub](https://github.com/mayank1513/esbuild-react18-useclient/actions/workflows/publish-to-npm-on-new-release.yml/badge.svg)](https://github.com/mayank1513/esbuild-react18-useclient/actions/workflows/publish-to-npm-on-new-release.yml) +> This package is deprecated in favor of [esbuild-plugin-react18](https://github.com/mayank1513/esbuild-plugin-react18) +> Please switch to [esbuild-plugin-react18](https://github.com/mayank1513/esbuild-plugin-react18), which also offers additional options and more control over your build output. + > Build Awesome Libraries using React Server Components and make your Mark! @@ -8,10 +11,10 @@ This is an `esbuild` plugin for compiling libraries compatible with React 18 ser ## Why? -- Unleash the power of combining react client and server components in your libraries -- TypeScript out of the box -- Simple and tiny -- Easy to use — just add the plugin, and you are good to go +✅ Unleash the power of combining react client and server components in your libraries +✅ Full TypeScript support out of the box +✅ Simple and tiny +✅ Easy to use — just add the plugin, and you are good to go Introduction of React server components in React 18 has unlocked immense possibilities. However, library authors are not yet able to fully encash upon this potential. Many libraries, like `chakra-ui`, simply add “use client” for each component. However, much more can be unleashed when we can use both server and client components to build libraries. Also check-out this [blog](https://mayank1513.medium.com/unleash-the-power-of-react-server-components-eb3fe7201231). diff --git a/package.json b/package.json index 660f242..477dd44 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "esbuild-react18-useclient", - "version": "1.0.5", + "version": "1.0.6", "description": "esbuild plugin for compiling libraries compatible with React 18 server and client component, Nextjs13, Remix, etc.", "main": "index.js", "types": "index.d.ts", @@ -30,6 +30,10 @@ ], "author": "Mayank Kumar Chaudhari ", "license": "MIT", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/mayank1513" + }, "bugs": { "url": "https://github.com/mayank1513/esbuild-react18-useclient/issues" },