Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ndt080 authored Aug 19, 2024
2 parents f8449d1 + f107630 commit 88894bd
Show file tree
Hide file tree
Showing 6 changed files with 2,572 additions and 2,190 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --ignore-scripts
Expand All @@ -39,9 +39,9 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 8
version: 9
- name: Install Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).

## 0.5.2
* Added Nano Stores 0.11 support.

## 0.5.1
* Added Nano Stores 0.10 support.

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
Preact integration for **[Nano Stores]**, a tiny state manager
with many atomic tree-shakable stores.

* **Small.** Less than 1 KB. Zero dependencies.
* **Fast.** With small atomic and derived stores, you do not need to call
- **Small.** Less than 1 KB. Zero dependencies.
- **Fast.** With small atomic and derived stores, you do not need to call
the selector function for all components on every store change.
* **Tree Shakable.** The chunk contains only stores used by components
- **Tree Shakable.** The chunk contains only stores used by components
in the chunk.
* Was designed to move logic from components to stores.
* It has good **TypeScript** support.
- Was designed to move logic from components to stores.
- It has good **TypeScript** support.

```tsx
import { useStore } from '@nanostores/preact'
Expand All @@ -29,6 +29,6 @@ export const Header = () => {

---

<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made in <b><a href="https://evilmartians.com/devtools?utm_source=nanostores-preact&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.
<img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" /> Made at <b><a href="https://evilmartians.com/devtools?utm_source=nanostores-preact&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, product consulting for <b>developer tools</b>.

---
12 changes: 12 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import loguxTsConfig from '@logux/eslint-config/ts'

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
{ ignores: ['**/errors.ts'] },
...loguxTsConfig,
{
rules: {
'@typescript-eslint/no-explicit-any': 'off'
}
}
]
61 changes: 23 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nanostores/preact",
"version": "0.5.1",
"version": "0.5.2",
"description": "Preact integration for Nano Stores, a tiny state manager with many atomic tree-shakable stores",
"keywords": [
"store",
Expand Down Expand Up @@ -39,39 +39,34 @@
}
],
"peerDependencies": {
"nanostores": "^0.9.0 || ^0.10.0",
"nanostores": "^0.9.0 || ^0.10.0 || ^0.11.0",
"preact": ">=10.0.0",
"@preact/signals": ">=1.0.0"
"nanostores": "^0.9.0 || ^0.10.0 || ^0.11.0",
"preact": ">=10.0.0"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@logux/eslint-config": "^52.0.2",
"@size-limit/preset-small-lib": "^11.0.2",
"@testing-library/preact": "^3.2.3",
"@types/node": "^20.11.19",
"@types/ws": "^8.5.10",
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"better-node-test": "^0.5.0",
"c8": "^9.1.0",
"check-dts": "^0.7.2",
"clean-publish": "^4.2.0",
"eslint": "^8.56.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^16.6.2",
"eslint-plugin-node-import": "^1.0.4",
"eslint-plugin-perfectionist": "^2.5.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.1.1",
"happy-dom": "^13.3.8",
"@babel/core": "^7.25.2",
"@logux/eslint-config": "^53.3.0",
"@size-limit/preset-small-lib": "^11.1.4",
"@testing-library/preact": "^3.2.4",
"@types/node": "^22.1.0",
"@types/ws": "^8.5.12",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"better-node-test": "^0.5.1",
"c8": "^10.1.2",
"check-dts": "^0.8.0",
"clean-publish": "^5.0.0",
"eslint": "^9.8.0",
"happy-dom": "^14.12.3",
"nanodelay": "^2.0.2",
"nanostores": "^0.10.0",
"preact": "^10.19.5",
"nanostores": "^0.11.0",
"preact": "^10.23.1",
"@preact/signals": "^1.2.3",
"size-limit": "^11.0.2",
"tsx": "^4.7.1",
"typescript": "^5.3.3"
"size-limit": "^11.1.4",
"tsx": "^4.16.5",
"typescript": "^5.5.4"
},
"prettier": {
"arrowParens": "avoid",
Expand All @@ -95,16 +90,6 @@
"skip-full": true,
"clean": true
},
"eslintConfig": {
"extends": "@logux/eslint-config/ts",
"rules": {
"@typescript-eslint/unified-signatures": "off",
"@typescript-eslint/no-explicit-any": "off",
"symbol-description": "off",
"consistent-return": "off",
"camelcase": "off"
}
},
"size-limit": [
{
"import": {
Expand Down
Loading

0 comments on commit 88894bd

Please sign in to comment.