Skip to content

Commit

Permalink
Merge pull request #29 from poly-state/changeset-release/master
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
shahriar-shojib committed Mar 18, 2024
2 parents afafd9f + 14aad0c commit aeae273
Show file tree
Hide file tree
Showing 10 changed files with 89 additions and 53 deletions.
27 changes: 0 additions & 27 deletions .changeset/healthy-balloons-perform.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/hungry-forks-fry.md

This file was deleted.

4 changes: 2 additions & 2 deletions examples/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@preact/preset-vite": "^2.1.5",
"typescript": "^5.2.2",
"vite": "^2.9.9",
"@poly-state/core": "1.4.0-next.0",
"@poly-state/preact": "4.0.0-next.0"
"@poly-state/core": "1.4.0",
"@poly-state/preact": "4.0.0"
}
}
4 changes: 2 additions & 2 deletions examples/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"react-dom": "^18.0.0"
},
"devDependencies": {
"@poly-state/core": "1.4.0-next.0",
"@poly-state/react": "4.0.0-next.0",
"@poly-state/core": "1.4.0",
"@poly-state/react": "4.0.0",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@vitejs/plugin-react": "^1.3.0",
Expand Down
41 changes: 37 additions & 4 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,38 @@
# @poly-state/core

## 1.4.0

### Minor Changes

- [#26](https://github.com/poly-state/poly-state/pull/26) [`52d8540`](https://github.com/poly-state/poly-state/commit/52d8540d405b77d4ddb94d1daba396038c2de4c0) Thanks [@shahriar-shojib](https://github.com/shahriar-shojib)! - ## @poly-state/core:

- Global transactions support

```js
import { transact } from "@poly-state/core";

transact(() => {
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: "London" });
});
```

> store 1 and store 2 will be updated only once!
## @poly-state/react:

- fixed a peer dependency issue for react
- use `useSyncExternalStore`
- use `shallowCompare`
- upgrade packages and bundling

### Patch Changes

- [#28](https://github.com/poly-state/poly-state/pull/28) [`218ed5d`](https://github.com/poly-state/poly-state/commit/218ed5d0c2942b287bf4e2cf6b63b9bccfeb328c) Thanks [@shahriar-shojib](https://github.com/shahriar-shojib)! - - Added Batching
- Added callbacks for various store methods
- Added devtoolsConnectionInstance on withDevtools

## 1.4.0-next.0

### Minor Changes
Expand All @@ -9,12 +42,12 @@
- Global transactions support

```js
import { transact } from '@poly-state/core';
import { transact } from "@poly-state/core";

transact(() => {
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: 'London' });
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: "London" });
});
```

Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poly-state/core",
"version": "1.4.0-next.0",
"version": "1.4.0",
"description": "A boilerplate free simple state management library",
"main": "dist/index.js",
"license": "MIT",
Expand Down
7 changes: 7 additions & 0 deletions packages/preact/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @poly-state/preact

## 4.0.0

### Patch Changes

- Updated dependencies [[`52d8540`](https://github.com/poly-state/poly-state/commit/52d8540d405b77d4ddb94d1daba396038c2de4c0), [`218ed5d`](https://github.com/poly-state/poly-state/commit/218ed5d0c2942b287bf4e2cf6b63b9bccfeb328c)]:
- @poly-state/core@1.4.0

## 4.0.0-next.0

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/preact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poly-state/preact",
"version": "4.0.0-next.0",
"version": "4.0.0",
"description": "Poly State Preact",
"main": "dist/index.js",
"exports": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"poly-state"
],
"devDependencies": {
"@poly-state/core": "1.4.0-next.0",
"@poly-state/core": "1.4.0",
"eslint": "^8.52.0",
"preact": "^10.10.6",
"tsup": "^7.2.0",
Expand All @@ -52,7 +52,7 @@
"@typescript-eslint/parser": "^5.36.1"
},
"peerDependencies": {
"@poly-state/core": "^1.4.0-next.0",
"@poly-state/core": "^1.4.0",
"preact": "^10.9.0"
}
}
38 changes: 34 additions & 4 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# @poly-state/react

## 4.0.0

### Patch Changes

- [#26](https://github.com/poly-state/poly-state/pull/26) [`52d8540`](https://github.com/poly-state/poly-state/commit/52d8540d405b77d4ddb94d1daba396038c2de4c0) Thanks [@shahriar-shojib](https://github.com/shahriar-shojib)! - ## @poly-state/core:

- Global transactions support

```js
import { transact } from "@poly-state/core";

transact(() => {
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: "London" });
});
```

> store 1 and store 2 will be updated only once!
## @poly-state/react:

- fixed a peer dependency issue for react
- use `useSyncExternalStore`
- use `shallowCompare`
- upgrade packages and bundling

- Updated dependencies [[`52d8540`](https://github.com/poly-state/poly-state/commit/52d8540d405b77d4ddb94d1daba396038c2de4c0), [`218ed5d`](https://github.com/poly-state/poly-state/commit/218ed5d0c2942b287bf4e2cf6b63b9bccfeb328c)]:
- @poly-state/core@1.4.0

## 4.0.0-next.0

### Patch Changes
Expand All @@ -9,12 +39,12 @@
- Global transactions support

```js
import { transact } from '@poly-state/core';
import { transact } from "@poly-state/core";

transact(() => {
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: 'London' });
store1.setState({ count: 1 });
store2.setState({ name: test });
store2.setState({ address: "London" });
});
```

Expand Down
6 changes: 3 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poly-state/react",
"version": "4.0.0-next.0",
"version": "4.0.0",
"description": "React bindings for React",
"main": "dist/index.js",
"license": "MIT",
Expand All @@ -16,7 +16,7 @@
}
},
"devDependencies": {
"@poly-state/core": "1.4.0-next.0",
"@poly-state/core": "1.4.0",
"@swc/core": "^1.3.94",
"@swc/jest": "^0.2.29",
"@testing-library/jest-dom": "^5.16.5",
Expand All @@ -41,7 +41,7 @@
"typescript": "^5.2.2"
},
"peerDependencies": {
"@poly-state/core": "^1.4.0-next.0",
"@poly-state/core": "^1.4.0",
"react": "16.x || 17.x || 18.x"
},
"scripts": {
Expand Down

0 comments on commit aeae273

Please sign in to comment.