Skip to content

Commit

Permalink
chore: update dependencies (#78)
Browse files Browse the repository at this point in the history
* chore: update pnpm

* chore: update dependencies
  • Loading branch information
smmoosavi committed May 13, 2024
1 parent 38436d0 commit 4ebef4c
Show file tree
Hide file tree
Showing 12 changed files with 6,520 additions and 4,520 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
version: 9
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ jobs:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 7
version: 9
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
Expand Down
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm exec commitlint --edit ${1}
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

pnpm run pre-commit
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## Unreleased

### ⚠ BREAKING CHANGES

- rename `./dist/index.mjs` to `./dist/index.js`

## [0.6.0](https://github.com/forminator/react-wire/compare/v0.5.0...v0.6.0) (2022-09-18)

### ⚠ BREAKING CHANGES
Expand Down
7 changes: 2 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,11 +290,8 @@ declare type valueAndAction<V> = [V, Dispatch<SetStateAction<Defined<V>>>];

export declare type Wire<V, Fns extends {} = {}> = StateWire<V> & FnsWire<Fns>;

export declare type WireFns<W extends FnsWire<any>> = W extends FnsWire<
infer Fns
>
? Fns
: never;
export declare type WireFns<W extends FnsWire<any>> =
W extends FnsWire<infer Fns> ? Fns : never;

export declare interface WireId {
/**
Expand Down
51 changes: 28 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
"type": "module",
"typings": "./index.d.ts",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"module": "./dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
"import": "./dist/index.js"
}
},
"publishConfig": {
Expand All @@ -30,7 +31,7 @@
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"scripts": {
"prepare": "husky install",
"prepare": "husky",
"pre-commit": "tsc && lint-staged && pnpm lint",
"toc": "markdown-toc -i README.md",
"lint": "eslint --max-warnings=0 src/**/*.{ts,tsx}",
Expand All @@ -45,42 +46,46 @@
"release": "standard-version"
},
"devDependencies": {
"@commitlint/cli": "^17",
"@commitlint/config-conventional": "^17",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@microsoft/api-extractor": "^7",
"@testing-library/dom": "^8",
"@testing-library/jest-dom": "^5",
"@testing-library/react": "^13",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14",
"@types/node": "^18",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/testing-library__jest-dom": "^5",
"@types/use-sync-external-store": "^0.0.3",
"@vitejs/plugin-react": "^2",
"@vitest/coverage-c8": "^0.23",
"c8": "^7",
"@types/use-sync-external-store": "^0.0.6",
"@vitejs/plugin-react": "^4",
"@vitest/coverage-istanbul": "^1",
"eslint": "^8",
"eslint-config-react-app": "^7",
"husky": "^8",
"husky": "^9",
"jest-leak-detector": "^29",
"jsdom": "^20",
"lint-staged": "^13",
"jsdom": "^24",
"lint-staged": "^15",
"markdown-toc": "^1",
"prettier": "^2",
"prettier": "^3",
"react": "^18",
"react-dom": "^18",
"standard-version": "^9",
"typescript": "^4",
"vite": "^3",
"vite-plugin-dts": "^1",
"vitest": "^0.23"
"typescript": "^5",
"vite": "^5",
"vite-plugin-dts": "^3",
"vitest": "^1"
},
"dependencies": {
"mitt": "^1.2.0",
"use-sync-external-store": "^1.2.0"
"use-sync-external-store": "^1.2.2"
},
"peerDependencies": {
"react": "^18"
},
"pnpm": {
"overrides": {
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0"
}
}
}
Loading

0 comments on commit 4ebef4c

Please sign in to comment.