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
6 changes: 6 additions & 0 deletions .changeset/fuzzy-spies-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@hyperse/pipeline": patch
---

1、adjust ts rules
2、fix typing error
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default defineConfig([
'@typescript-eslint/no-unnecessary-type-constraint': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/prefer-as-const': 'off',
'@typescript-eslint/no-unsafe-function-type': 'off',
},
},
]);
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,27 +54,27 @@
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.7",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@hyperse/eslint-config-hyperse": "^1.0.12",
"@changesets/cli": "2.27.9",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@hyperse/eslint-config-hyperse": "^1.2.6",
"@hyperse/exec-program": "^1.0.10",
"@types/node": "^22.1.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"commitizen": "4.3.0",
"@types/node": "^22.7.9",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"commitizen": "4.3.1",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.8.0",
"husky": "9.1.4",
"lint-staged": "15.2.8",
"next": "14.2.5",
"eslint": "^9.13.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"next": "15.0.1",
"npm-run-all": "^4.1.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"vite": "^5.3.5",
"vitest": "^2.0.5"
"tsup": "^8.3.4",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vitest": "^2.1.3"
},
"engines": {
"node": ">=18"
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/helper-curry.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PipeWithFunction } from '../types/types-reactive.js';
import type { PipeWithFunction } from '../types/types-reactive.js';

const isPlaceholder = (a: any): boolean => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/helper-reduce.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PipeWithFunction } from '../types/types-reactive.js';
import type { PipeWithFunction } from '../types/types-reactive.js';
import { curryTwo } from './helper-curry.js';
import { isArrayLike } from './helper-is-array-like.js';
import { xwrap } from './helper-x-wrap.js';
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/Pipeline.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Middleware } from '../types/types-middleware.js';
import type { Middleware } from '../types/types-middleware.js';
import { invokeMiddlewares } from './invoke.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion src/middleware/invoke.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Middleware } from '../types/types-middleware.js';
import type { Middleware } from '../types/types-middleware.js';

/**
* Helper function for invoking a chain of middlewares on a context.
Expand Down
6 changes: 4 additions & 2 deletions src/reactive/pipe.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
import { isPromise } from '../helpers/helper-is-promise.js';
import { pipeWith } from '../helpers/helper-pipe-with.js';
import { fold } from '../types/types-fp-ts.js';
import {
import type {
Exists,
ExitPipeReturnValue,
PipeCallback,
} from '../types/types-reactive.js';
import {
isFpTsEither,
isMonetCata,
isPurifyEither,
isPurifyEitherAsync,
isPurifyMaybe,
isPurifyMaybeAsync,
PipeCallback,
} from '../types/types-reactive.js';
import type {
ExtractExitPipe1,
Expand Down
3 changes: 2 additions & 1 deletion src/types/types-purify-either.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Just, Maybe, Nothing } from './types-purify-maybe.js';
import type { Maybe } from './types-purify-maybe.js';
import { Just, Nothing } from './types-purify-maybe.js';

export type EitherPatterns<L, R, T> =
| { Left: (l: L) => T; Right: (r: R) => T }
Expand Down
3 changes: 2 additions & 1 deletion src/types/types-purify-maybe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Either, Left, Right } from './types-purify-either.js';
import type { Either } from './types-purify-either.js';
import { Left, Right } from './types-purify-either.js';

export type MaybePatterns<T, U> =
| { Just: (value: T) => U; Nothing: () => U }
Expand Down
44 changes: 22 additions & 22 deletions website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,38 +46,38 @@
]
},
"dependencies": {
"@docusaurus/core": "^3.4.0",
"@docusaurus/plugin-content-docs": "^3.4.0",
"@docusaurus/plugin-google-gtag": "^3.4.0",
"@docusaurus/preset-classic": "^3.4.0",
"@docusaurus/core": "^3.5.2",
"@docusaurus/plugin-content-docs": "^3.5.2",
"@docusaurus/plugin-google-gtag": "^3.5.2",
"@docusaurus/preset-classic": "^3.5.2",
"@heroicons/react": "^2.1.5",
"@mdx-js/react": "^3.0.1",
"@mdx-js/react": "^3.1.0",
"clsx": "^2.1.1",
"postcss": "^8.4.40",
"prism-react-renderer": "^2.3.1",
"postcss": "^8.4.47",
"prism-react-renderer": "^2.4.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"tailwindcss": "^3.4.7",
"tailwindcss": "^3.4.14",
"usehooks-ts": "^3.1.0"
},
"devDependencies": {
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.7",
"@commitlint/cli": "19.3.0",
"@commitlint/config-conventional": "19.2.2",
"@docusaurus/module-type-aliases": "3.4.0",
"@hyperse/eslint-config-hyperse": "^1.0.12",
"@changesets/cli": "2.27.9",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@docusaurus/module-type-aliases": "3.5.2",
"@hyperse/eslint-config-hyperse": "^1.2.6",
"@tsconfig/docusaurus": "^2.0.3",
"@types/node": "^22.1.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"commitizen": "4.3.0",
"@types/node": "^22.7.9",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"commitizen": "4.3.1",
"cz-conventional-changelog": "3.3.0",
"eslint": "^9.8.0",
"husky": "9.1.4",
"lint-staged": "15.2.8",
"typescript": "5.5.4",
"vitest": "^2.0.5"
"eslint": "^9.13.0",
"husky": "9.1.6",
"lint-staged": "15.2.10",
"typescript": "5.6.3",
"vitest": "^2.1.3"
},
"packageManager": "[email protected]"
}
Loading
Loading