Skip to content

Commit

Permalink
Version Packages (#156)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Jul 3, 2024
1 parent 92845d0 commit b2fe3c2
Show file tree
Hide file tree
Showing 16 changed files with 118 additions and 66 deletions.
27 changes: 0 additions & 27 deletions .changeset/honest-phones-punch.md

This file was deleted.

32 changes: 0 additions & 32 deletions .changeset/twenty-deers-talk.md

This file was deleted.

9 changes: 9 additions & 0 deletions apps/next-react-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# next-react-test

## 0.1.26

### Patch Changes

- Updated dependencies [dcd7e2c]
- Updated dependencies [f706a6e]
- @preact-signals/utils@0.22.0
- [email protected]

## 0.1.25

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/next-react-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-react-test",
"version": "0.1.25",
"version": "0.1.26",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
9 changes: 9 additions & 0 deletions apps/preact-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# preact-test

## 0.0.45

### Patch Changes

- Updated dependencies [dcd7e2c]
- Updated dependencies [f706a6e]
- @preact-signals/utils@0.22.0
- [email protected]

## 0.0.44

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/preact-test/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "preact-test",
"private": true,
"version": "0.0.44",
"version": "0.0.45",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
9 changes: 9 additions & 0 deletions apps/react-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# react-test

## 0.0.51

### Patch Changes

- Updated dependencies [dcd7e2c]
- Updated dependencies [f706a6e]
- @preact-signals/utils@0.22.0
- [email protected]

## 0.0.50

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/react-test/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-test",
"private": true,
"version": "0.0.50",
"version": "0.0.51",
"type": "module",
"scripts": {
"dev:patching": "cross-env TRACKING_METHOD='patching' vite",
Expand Down
8 changes: 8 additions & 0 deletions apps/transformer-playground/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# transformer-playground

## 0.0.8

### Patch Changes

- Updated dependencies [dcd7e2c]
- Updated dependencies [f706a6e]
- @preact-signals/utils@0.22.0

## 0.0.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/transformer-playground/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "transformer-playground",
"private": true,
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
9 changes: 9 additions & 0 deletions packages/components-for-test/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# components-for-test

## 6.0.6

### Patch Changes

- Updated dependencies [dcd7e2c]
- Updated dependencies [f706a6e]
- @preact-signals/utils@0.22.0
- @preact-signals/query@2.0.6

## 6.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components-for-test/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "components-for-test",
"version": "6.0.5",
"version": "6.0.6",
"private": true,
"sideEffects": false,
"author": {
Expand Down
8 changes: 8 additions & 0 deletions packages/query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @preact-signals/query

## 2.0.6

### Patch Changes

- Updated dependencies [dcd7e2c]
- Updated dependencies [f706a6e]
- @preact-signals/utils@0.22.0

## 2.0.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@preact-signals/query",
"version": "2.0.5",
"version": "2.0.6",
"private": false,
"publishConfig": {
"access": "public"
Expand Down
59 changes: 59 additions & 0 deletions packages/utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
# @preact-signals/utils

## 0.22.0

### Minor Changes

- dcd7e2c: Implemented `experimental_stateMacrosOptimization` for automatic optimization of state macroses in JSX

Example:

```tsx
import { $state, $derived } from "@preact-signals/utils/macro";

let a = $state(10);
let b = $state(20);

const c = <>{a * b + 10}</>;
```

Will be optimized to:

```tsx
import { deepSignal as _deepSignal, $ as _$ } from "@preact-signals/utils";

let a = _deepSignal(10);
let b = _deepSignal(20);

const c = <>{_$(() => a.value * b.value + 10)}</>;
```

In result your components will have less rerender when using state bindings

- f706a6e: Removed `experimental_` prefix from `stateMacro` options of `@preact-signals/utils/babel`

Migration (Vite):

```diff
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [
react({
babel: {
plugins: [
"module:@preact-signals/safe-react/babel",
[
"module:@preact-signals/utils/babel",
{
- experimental_stateMacros: true,
+ stateMacros: true,
},
],
],
},
}),
],
});
```

## 0.21.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@preact-signals/utils",
"version": "0.21.0",
"version": "0.22.0",
"private": false,
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit b2fe3c2

Please sign in to comment.