Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .changeset/README.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/config.json

This file was deleted.

2 changes: 0 additions & 2 deletions .commitlintrc.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc.yml

This file was deleted.

8 changes: 2 additions & 6 deletions .github/workflows/node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22.22.2
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm run lint
- run: pnpm run format:check
- run: pnpm run check
- run: pnpm run build
- run: pnpm run test
- run: git diff --exit-code --name-only
- uses: codecov/codecov-action@v4
env:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/node-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22.22.2
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
Expand Down
1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

18 changes: 18 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["react", "typescript", "oxc", "jsx-a11y", "vitest"],
"rules": {
"react/rules-of-hooks": "error",
"react/only-export-components": ["warn", { "allowConstantExport": true }],
"vitest/expect-expect": "off",
"vitest/require-mock-type-parameters": "off",
"no-unused-vars": [
"warn",
{
"args": "none",
"varsIgnorePattern": "^_",
"ignoreRestSiblings": true
}
]
}
}
43 changes: 0 additions & 43 deletions api-extractor.json

This file was deleted.

18 changes: 0 additions & 18 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
/**
* connect react components with wire
*
* @packageDocumentation
*/

import { DependencyList } from 'react';
import { Dispatch } from 'react';
import { SetStateAction } from 'react';
Expand Down Expand Up @@ -34,12 +28,6 @@ export declare interface FnsWire<Fns extends {}> extends FnsWireGuard<Fns> {
}

declare interface FnsWireGuard<Fns> {
/**
* @internal
* Covariance hack:
* never use this variable.
* don't remove space at the start
*/
' fns-wire': StrictMethodsGuard<Fns>;
}

Expand Down Expand Up @@ -294,13 +282,7 @@ export declare type WireFns<W extends FnsWire<any>> =
W extends FnsWire<infer Fns> ? Fns : never;

export declare interface WireId {
/**
* @internal
*/
_getId(): string;
/**
* @internal
*/
_getLinkIds(): LinkIds;
}

Expand Down
72 changes: 28 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
"files": [
"src",
"dist",
"index.d.ts",
"tsdoc-metadata.json"
"index.d.ts"
],
"license": "MIT",
"repository": {
Expand All @@ -15,76 +14,61 @@
},
"type": "module",
"typings": "./index.d.ts",
"main": "./dist/index.cjs",
"main": "./dist/index.js",
"module": "./dist/index.js",
"exports": {
".": {
"types": "./index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.js"
}
},
"publishConfig": {
"access": "public"
},
"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"packageManager": "pnpm@11.17.0",
"scripts": {
"prepare": "husky",
"pre-commit": "tsc && lint-staged && pnpm lint",
"toc": "markdown-toc -i README.md",
"lint": "eslint --max-warnings=0 src/**/*.{ts,tsx}",
"format": "prettier --write '**/*.{js,jsx,ts,tsx,json,yml,css,scss,md}'",
"format:check": "prettier --check '**/*.{js,jsx,ts,tsx,json,yml,css,scss,md}'",
"lint": "oxlint --deny-warnings src",
"type:check": "tsc --noEmit",
"test": "vitest --run --coverage",
"test:watch": "vitest",
"build:dts": "api-extractor run --local --verbose && prettier --write index.d.ts",
"build": "vite build && pnpm build:dts",
"validate": "pnpm run lint && pnpm run format:check && pnpm run test && tsc",
"prepublishOnly": "pnpm run validate && pnpm build"
"check": "pnpm format:check && pnpm lint && pnpm type:check && pnpm test",
"build": "pnpm type:check && vite build && prettier --write index.d.ts",
"prepublishOnly": "pnpm build"
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@microsoft/api-extractor": "^7",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6",
"@testing-library/react": "^15.0.7",
"@microsoft/api-extractor": "^7.59.2",
"@testing-library/dom": "^10",
"@testing-library/jest-dom": "^7",
"@testing-library/react": "^16",
"@testing-library/user-event": "^14",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/use-sync-external-store": "^0.0.6",
"@vitejs/plugin-react": "^4",
"@vitest/coverage-istanbul": "^1",
"eslint": "^8",
"eslint-config-react-app": "^7",
"@types/node": "^24",
"@types/react": "^19",
"@types/react-dom": "^19",
"@vitejs/plugin-react": "^6",
"@vitest/coverage-istanbul": "^5",
"husky": "^9",
"jest-leak-detector": "^29",
"jsdom": "^24",
"lint-staged": "^15",
"jsdom": "^30",
"lint-staged": "^17",
"markdown-toc": "^1",
"oxlint": "^1",
"prettier": "^3",
"react": "^18",
"react-dom": "^18",
"typescript": "^5",
"vite": "^5",
"vite-plugin-dts": "^3",
"vitest": "^1"
"react": "^19",
"react-dom": "^19",
"typescript": "^6",
"unplugin-dts": "^1",
"vite": "^8",
"vitest": "^5"
},
"dependencies": {
"mitt": "^1.2.0",
"use-sync-external-store": "^1.2.2"
"mitt": "^1.2.0"
},
"peerDependencies": {
"react": "^18"
},
"pnpm": {
"overrides": {
"@typescript-eslint/parser": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0"
}
"react": "^18 || ^19"
}
}
Loading
Loading