Skip to content

Commit 0e9d393

Browse files
committed
Add deprecation message
1 parent 3210d95 commit 0e9d393

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# 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)
22

3+
> This package is deprecated in favor of [esbuild-plugin-react18](https://github.com/mayank1513/esbuild-plugin-react18)
4+
> 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.
5+
36
<img src="https://github.com/mayank1513/esbuild-react18-useclient/blob/main/esbuild-react18.jpg?raw=true" title="Build Awesome Libraries using React Server Components and make your Mark!" style="width:100%"/>
47

58
> 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
811

912
## Why?
1013

11-
- Unleash the power of combining react client and server components in your libraries
12-
- TypeScript out of the box
13-
- Simple and tiny
14-
- Easy to use — just add the plugin, and you are good to go
14+
Unleash the power of combining react client and server components in your libraries
15+
✅ Full TypeScript support out of the box
16+
Simple and tiny
17+
Easy to use — just add the plugin, and you are good to go
1518

1619
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).
1720

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "esbuild-react18-useclient",
3-
"version": "1.0.5",
3+
"version": "1.0.6",
44
"description": "esbuild plugin for compiling libraries compatible with React 18 server and client component, Nextjs13, Remix, etc.",
55
"main": "index.js",
66
"types": "index.d.ts",
@@ -30,6 +30,10 @@
3030
],
3131
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
3232
"license": "MIT",
33+
"funding": {
34+
"type": "github",
35+
"url": "https://github.com/sponsors/mayank1513"
36+
},
3337
"bugs": {
3438
"url": "https://github.com/mayank1513/esbuild-react18-useclient/issues"
3539
},

0 commit comments

Comments
 (0)