From 957ba0f52570b1241d66697afa9bcf064ce1d355 Mon Sep 17 00:00:00 2001 From: Brijesh Bittu Date: Thu, 25 Jul 2024 19:27:58 +0530 Subject: [PATCH 1/2] v0.0.18 (#185) --- CHANGELOG.md | 20 +++++++++++++++++++ package.json | 2 +- .../pigment-css-nextjs-plugin/package.json | 2 +- packages/pigment-css-react/package.json | 2 +- packages/pigment-css-unplugin/package.json | 2 +- packages/pigment-css-vite-plugin/package.json | 2 +- 6 files changed, 25 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcf4d781..971d7f99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,26 @@ > @pigment-css/monorepo@0.0.15 release:changelog /Users/siriwatknp/Personal-Repos/pigment-css > node scripts/releaseChangelog.mjs +## 0.0.18 + + + +_Jul 25, 2024_ + +A big thanks to the 3 contributors who made this release possible. Here are some highlights ✨: + +## `@pigment-css/react@0.0.18` + +- ​Replace global JSX (#183) @DiegoAndai +- ​Normalize rest / other to match the most common used @oliviertassinari +- ​Normalize rest / other to match the most common used @oliviertassinari + +## `@pigment-css/unplugin@0.0.18` + +- ​[webpack] Fix support for webpack and add example app (#174) @brijeshb42 + +All contributors of this release in alphabetical order: @brijeshb42, @DiegoAndai, @oliviertassinari + ## v0.0.17 diff --git a/package.json b/package.json index 49a6e5df..516f12e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/monorepo", - "version": "0.0.17", + "version": "0.0.18", "private": true, "scripts": { "preinstall": "npx only-allow pnpm", diff --git a/packages/pigment-css-nextjs-plugin/package.json b/packages/pigment-css-nextjs-plugin/package.json index cc97ed5b..4e0ff8eb 100644 --- a/packages/pigment-css-nextjs-plugin/package.json +++ b/packages/pigment-css-nextjs-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/nextjs-plugin", - "version": "0.0.17", + "version": "0.0.18", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts", diff --git a/packages/pigment-css-react/package.json b/packages/pigment-css-react/package.json index d622f57c..f066bace 100644 --- a/packages/pigment-css-react/package.json +++ b/packages/pigment-css-react/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/react", - "version": "0.0.17", + "version": "0.0.18", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts", diff --git a/packages/pigment-css-unplugin/package.json b/packages/pigment-css-unplugin/package.json index f16cd640..dccb4cff 100644 --- a/packages/pigment-css-unplugin/package.json +++ b/packages/pigment-css-unplugin/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/unplugin", - "version": "0.0.17", + "version": "0.0.18", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts", diff --git a/packages/pigment-css-vite-plugin/package.json b/packages/pigment-css-vite-plugin/package.json index 84a60357..e83f563b 100644 --- a/packages/pigment-css-vite-plugin/package.json +++ b/packages/pigment-css-vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@pigment-css/vite-plugin", - "version": "0.0.17", + "version": "0.0.18", "main": "build/index.js", "module": "build/index.mjs", "types": "build/index.d.ts", From 69a550a2a01b826c9a1faf50adea6199340fc1cf Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Mon, 29 Jul 2024 14:40:17 +0200 Subject: [PATCH 2/2] [core] Fix event naming convention --- apps/pigment-css-next-app/src/app/stack/page.tsx | 12 ++++++------ apps/pigment-css-vite-app/src/pages/index.tsx | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/apps/pigment-css-next-app/src/app/stack/page.tsx b/apps/pigment-css-next-app/src/app/stack/page.tsx index e9bd5dcb..7ea0d165 100644 --- a/apps/pigment-css-next-app/src/app/stack/page.tsx +++ b/apps/pigment-css-next-app/src/app/stack/page.tsx @@ -32,17 +32,17 @@ export default function InteractiveStack() { const [direction, setDirection] = React.useState('column'); const [spacing, setSpacing] = React.useState(2); - const handleChange = React.useCallback((ev: React.ChangeEvent) => { - switch (ev.target.name) { + const handleChange = React.useCallback((event: React.ChangeEvent) => { + switch (event.target.name) { case 'direction': { - setDirection(ev.target.value as StackProps['direction']); + setDirection(event.target.value as StackProps['direction']); break; } case 'spacing': { setSpacing( - ev.target.value.match(/^[0-9]+\.?[0-9]*$/) - ? parseFloat(ev.target.value) - : ev.target.value, + event.target.value.match(/^[0-9]+\.?[0-9]*$/) + ? parseFloat(event.target.value) + : event.target.value, ); break; } diff --git a/apps/pigment-css-vite-app/src/pages/index.tsx b/apps/pigment-css-vite-app/src/pages/index.tsx index 3f2b2161..cc3d28df 100644 --- a/apps/pigment-css-vite-app/src/pages/index.tsx +++ b/apps/pigment-css-vite-app/src/pages/index.tsx @@ -31,17 +31,17 @@ export default function InteractiveStack() { const [direction, setDirection] = React.useState('column'); const [spacing, setSpacing] = React.useState(2); - const handleChange = React.useCallback((ev: React.ChangeEvent) => { - switch (ev.target.name) { + const handleChange = React.useCallback((event: React.ChangeEvent) => { + switch (event.target.name) { case 'direction': { - setDirection(ev.target.value as StackProps['direction']); + setDirection(event.target.value as StackProps['direction']); break; } case 'spacing': { setSpacing( - ev.target.value.match(/^[0-9]+\.?[0-9]*$/) - ? parseFloat(ev.target.value) - : ev.target.value, + event.target.value.match(/^[0-9]+\.?[0-9]*$/) + ? parseFloat(event.target.value) + : event.target.value, ); break; }