Skip to content

Commit 10c851f

Browse files
committed
migrate dual functions to the new @fp-ts/[email protected] api
1 parent 1f611f2 commit 10c851f

16 files changed

+622
-599
lines changed

.changeset/yellow-ladybugs-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/query": patch
3+
---
4+
5+
migrate dual functions to the new @fp-ts/core@2.0.0 api

.eslintrc.cjs

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
/* eslint-disable no-undef */
22
module.exports = {
3-
ignorePatterns: ["build", "dist", "dtslint", "*.mjs", "docs", "*.md"],
3+
ignorePatterns: ["build", "dist", "*.mjs", "docs", "*.md"],
44
parser: "@typescript-eslint/parser",
55
parserOptions: {
66
ecmaVersion: 2018,
7-
sourceType: "module",
7+
sourceType: "module"
88
},
99
settings: {
1010
"import/parsers": {
11-
"@typescript-eslint/parser": [".ts", ".tsx"],
11+
"@typescript-eslint/parser": [".ts", ".tsx"]
1212
},
1313
"import/resolver": {
1414
typescript: {
15-
alwaysTryTypes: true,
16-
},
17-
},
15+
alwaysTryTypes: true
16+
}
17+
}
1818
},
1919
extends: [
2020
"eslint:recommended",
2121
"plugin:@typescript-eslint/eslint-recommended",
2222
"plugin:@typescript-eslint/recommended",
23-
"plugin:@repo-tooling/dprint/recommended",
23+
"plugin:@repo-tooling/dprint/recommended"
2424
],
2525
plugins: [
2626
"deprecation",
2727
"import",
2828
"sort-destructure-keys",
2929
"simple-import-sort",
30-
"codegen",
30+
"codegen"
3131
],
3232
rules: {
3333
"codegen/codegen": "error",
@@ -50,7 +50,7 @@ module.exports = {
5050
"deprecation/deprecation": "off",
5151
"@typescript-eslint/array-type": [
5252
"warn",
53-
{ default: "generic", readonly: "generic" },
53+
{ default: "generic", readonly: "generic" }
5454
],
5555
"@typescript-eslint/member-delimiter-style": 0,
5656
"@typescript-eslint/no-non-null-assertion": "off",
@@ -62,8 +62,8 @@ module.exports = {
6262
"error",
6363
{
6464
argsIgnorePattern: "^_",
65-
varsIgnorePattern: "^_",
66-
},
65+
varsIgnorePattern: "^_"
66+
}
6767
],
6868
"@typescript-eslint/ban-ts-comment": "off",
6969
"@typescript-eslint/camelcase": "off",
@@ -83,9 +83,9 @@ module.exports = {
8383
quoteStyle: "alwaysDouble",
8484
trailingCommas: "never",
8585
operatorPosition: "maintain",
86-
"arrowFunction.useParentheses": "force",
87-
},
88-
},
89-
],
90-
},
91-
};
86+
"arrowFunction.useParentheses": "force"
87+
}
88+
}
89+
]
90+
}
91+
}

flake.lock

Lines changed: 27 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
inputs = {
3+
nixpkgs = {
4+
url = "github:nixos/nixpkgs/nixos-22.11";
5+
};
6+
};
7+
8+
outputs = {
9+
self,
10+
nixpkgs,
11+
}: let
12+
# Helper generating outputs for each desired system
13+
forAllSystems = nixpkgs.lib.genAttrs [
14+
"x86_64-darwin"
15+
"x86_64-linux"
16+
"aarch64-darwin"
17+
"aarch64-linux"
18+
];
19+
20+
# Import nixpkgs' package set for each system.
21+
nixpkgsFor = forAllSystems (system:
22+
import nixpkgs {
23+
inherit system;
24+
});
25+
in {
26+
formatter = forAllSystems (system: nixpkgsFor.${system}.alejandra);
27+
28+
devShells = forAllSystems (system: {
29+
default = nixpkgsFor.${system}.mkShell {
30+
buildInputs = with nixpkgsFor.${system}; [
31+
nodejs-16_x
32+
nodePackages.pnpm
33+
];
34+
};
35+
});
36+
};
37+
}

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
}
4646
},
4747
"dependencies": {
48-
"@effect/data": "~0.0.1",
49-
"@effect/io": "~0.1.10",
50-
"@fp-ts/core": "~0.1.1"
48+
"@effect/data": "~0.1.0",
49+
"@effect/io": "~0.1.11",
50+
"@fp-ts/core": "~0.2.0"
5151
},
5252
"devDependencies": {
5353
"@babel/cli": "^7.20.7",
@@ -67,7 +67,7 @@
6767
"@types/chai": "^4.3.4",
6868
"@types/glob": "^8.0.1",
6969
"@types/jest": "^29.4.0",
70-
"@types/node": "^18.11.19",
70+
"@types/node": "^18.13.0",
7171
"@types/prettier": "2.7.2",
7272
"@types/rimraf": "^3.0.2",
7373
"@typescript-eslint/eslint-plugin": "^5.51.0",
@@ -85,15 +85,14 @@
8585
"eslint-plugin-import": "^2.27.5",
8686
"eslint-plugin-simple-import-sort": "^10.0.0",
8787
"eslint-plugin-sort-destructure-keys": "^1.4.0",
88-
"fast-check": "^3.6.2",
88+
"fast-check": "^3.6.3",
8989
"glob": "^8.1.0",
9090
"madge": "^6.0.0",
9191
"picocolors": "^1.0.0",
92-
"prettier": "^2.8.3",
92+
"prettier": "^2.8.4",
9393
"rimraf": "^4.1.2",
9494
"ts-codemod": "^4.0.4",
9595
"ts-node": "^10.9.1",
96-
"tslint": "^6.1.3",
9796
"typescript": "^4.9.5",
9897
"ultra-runner": "^3.10.5",
9998
"vite": "^4.1.1",

0 commit comments

Comments
 (0)