functype 0.40.0 → 0.41.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/Brand-BPeggBaO.d.ts +1 -2
  2. package/dist/Brand-Cfr5zy8F.js +1 -2
  3. package/dist/Tuple-C4maYbiO.d.ts +1 -2
  4. package/dist/Tuple-CgX4p79w.js +1 -2
  5. package/dist/cli/index.js +2 -3
  6. package/dist/do/index.d.ts +1 -3
  7. package/dist/do/index.js +1 -1
  8. package/dist/either/index.d.ts +1 -3
  9. package/dist/either/index.js +1 -1
  10. package/dist/fpromise/index.d.ts +1 -3
  11. package/dist/fpromise/index.js +1 -1
  12. package/dist/{index-Bn_yRBx8.d.ts → index-B6Civ4kr.d.ts} +19 -9
  13. package/dist/index.d.ts +1 -1
  14. package/dist/index.js +1 -1
  15. package/dist/list/index.d.ts +1 -3
  16. package/dist/list/index.js +1 -1
  17. package/dist/map/index.d.ts +1 -3
  18. package/dist/map/index.js +1 -1
  19. package/dist/option/index.d.ts +1 -3
  20. package/dist/option/index.js +1 -1
  21. package/dist/set/index.d.ts +1 -3
  22. package/dist/set/index.js +1 -1
  23. package/dist/{src-JcsaR9MX.js → src-DpfaJv6K.js} +2 -3
  24. package/dist/try/index.d.ts +1 -3
  25. package/dist/try/index.js +1 -1
  26. package/package.json +97 -119
  27. package/README.processed.md +0 -862
  28. package/dist/Brand-Cfr5zy8F.js.map +0 -1
  29. package/dist/Tuple-CgX4p79w.js.map +0 -1
  30. package/dist/cli/index.js.map +0 -1
  31. package/dist/src-JcsaR9MX.js.map +0 -1
  32. package/readme/BRAND_MIGRATION_GUIDE.md +0 -230
  33. package/readme/BUNDLE_OPTIMIZATION.md +0 -74
  34. package/readme/FPromise-Assessment.md +0 -43
  35. package/readme/HKT.md +0 -110
  36. package/readme/ROADMAP.md +0 -113
  37. package/readme/TASK-TODO.md +0 -33
  38. package/readme/TUPLE-EXAMPLES.md +0 -76
  39. package/readme/TaskMigration.md +0 -129
  40. package/readme/ai-guide.md +0 -406
  41. package/readme/examples.md +0 -2093
  42. package/readme/functype-changes-required.md +0 -189
  43. package/readme/quick-reference.md +0 -514
  44. package/readme/task-error-handling.md +0 -283
  45. package/readme/tasks.md +0 -203
  46. package/readme/type-index.md +0 -238
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functype",
3
- "version": "0.40.0",
3
+ "version": "0.41.2",
4
4
  "type": "module",
5
5
  "description": "A functional programming library for TypeScript, using immutable data structures and type classes",
6
6
  "author": "jordan.burke@gmail.com",
@@ -11,20 +11,47 @@
11
11
  },
12
12
  "homepage": "https://functype.org/",
13
13
  "url": "https://github.com/jordanburke/functype",
14
+ "scripts": {
15
+ "validate": "pnpm validate:core && pnpm validate:landing",
16
+ "validate:core": "pnpm format && pnpm lint && pnpm compile && pnpm test && pnpm docs:validate && pnpm build",
17
+ "validate:landing": "cd landing && pnpm validate",
18
+ "format": "prettier --write .",
19
+ "format:check": "prettier --check .",
20
+ "lint": "eslint ./src --fix",
21
+ "lint:check": "eslint ./src",
22
+ "test": "vitest run",
23
+ "test:watch": "vitest",
24
+ "test:coverage": "vitest run --coverage",
25
+ "test:ui": "vitest --ui",
26
+ "build": "rimraf dist && pnpm extract:interfaces && cross-env NODE_ENV=production tsdown",
27
+ "extract:interfaces": "tsx scripts/extract-interfaces.ts",
28
+ "build:watch": "tsdown --watch",
29
+ "dev": "tsdown --watch",
30
+ "compile": "tsc --noEmit",
31
+ "clean": "rimraf dist",
32
+ "prepublishOnly": "pnpm validate",
33
+ "bench": "vitest bench",
34
+ "bench:ui": "vitest bench --ui",
35
+ "docs:preprocess": "tsx scripts/preprocess-docs.ts",
36
+ "docs": "pnpm docs:preprocess && typedoc",
37
+ "docs:watch": "typedoc --watch",
38
+ "docs:sync": "tsx scripts/sync-docs.ts",
39
+ "docs:validate": "tsx scripts/validate-docs.ts && tsx scripts/sync-docs.ts",
40
+ "analyze:size": "pnpm build && node ./scripts/analyze-bundle-size.js",
41
+ "landing:dev": "cd landing && pnpm dev",
42
+ "landing:build": "cd landing && pnpm build",
43
+ "landing:preview": "cd landing && pnpm preview",
44
+ "cli-example": "npx . Option"
45
+ },
14
46
  "devDependencies": {
15
- "@eslint/compat": "^1.4.1",
16
- "@semantic-release/commit-analyzer": "^13.0.1",
17
- "@semantic-release/github": "^11.0.6",
18
- "@semantic-release/npm": "^12.0.2",
19
- "@semantic-release/release-notes-generator": "^14.1.0",
20
- "@types/node": "^22.19.1",
47
+ "@eslint/compat": "^2.0.0",
48
+ "@types/node": "~24.10.4",
21
49
  "eslint-config-functype": "1.3.0",
22
50
  "eslint-plugin-functional": "^9.0.2",
23
- "fast-check": "^4.4.0",
51
+ "fast-check": "^4.5.2",
24
52
  "globals": "^16.5.0",
25
- "semantic-release": "^24.2.9",
26
- "ts-builds": "^1.2.1",
27
- "tsdown": "^0.16.8",
53
+ "ts-builds": "^1.2.5",
54
+ "tsdown": "^0.18.3",
28
55
  "tsx": "^4.21.0",
29
56
  "typedoc": "^0.28.15"
30
57
  },
@@ -32,118 +59,99 @@
32
59
  "module": "./dist/index.js",
33
60
  "exports": {
34
61
  ".": {
35
- "import": {
36
- "types": "./dist/index.d.ts",
37
- "default": "./dist/index.js"
38
- }
62
+ "types": "./dist/index.d.ts",
63
+ "import": "./dist/index.js",
64
+ "default": "./dist/index.js"
39
65
  },
40
66
  "./option": {
41
- "import": {
42
- "types": "./dist/option/index.d.ts",
43
- "default": "./dist/option/index.js"
44
- }
67
+ "types": "./dist/option/index.d.ts",
68
+ "import": "./dist/option/index.js",
69
+ "default": "./dist/option/index.js"
45
70
  },
46
71
  "./either": {
47
- "import": {
48
- "types": "./dist/either/index.d.ts",
49
- "default": "./dist/either/index.js"
50
- }
72
+ "types": "./dist/either/index.d.ts",
73
+ "import": "./dist/either/index.js",
74
+ "default": "./dist/either/index.js"
51
75
  },
52
76
  "./try": {
53
- "import": {
54
- "types": "./dist/try/index.d.ts",
55
- "default": "./dist/try/index.js"
56
- }
77
+ "types": "./dist/try/index.d.ts",
78
+ "import": "./dist/try/index.js",
79
+ "default": "./dist/try/index.js"
57
80
  },
58
81
  "./list": {
59
- "import": {
60
- "types": "./dist/list/index.d.ts",
61
- "default": "./dist/list/index.js"
62
- }
82
+ "types": "./dist/list/index.d.ts",
83
+ "import": "./dist/list/index.js",
84
+ "default": "./dist/list/index.js"
63
85
  },
64
86
  "./conditional": {
65
- "import": {
66
- "types": "./dist/conditional/index.d.ts",
67
- "default": "./dist/conditional/index.js"
68
- }
87
+ "types": "./dist/conditional/index.d.ts",
88
+ "import": "./dist/conditional/index.js",
89
+ "default": "./dist/conditional/index.js"
69
90
  },
70
91
  "./do": {
71
- "import": {
72
- "types": "./dist/do/index.d.ts",
73
- "default": "./dist/do/index.js"
74
- }
92
+ "types": "./dist/do/index.d.ts",
93
+ "import": "./dist/do/index.js",
94
+ "default": "./dist/do/index.js"
75
95
  },
76
96
  "./lazy": {
77
- "import": {
78
- "types": "./dist/lazy/index.d.ts",
79
- "default": "./dist/lazy/index.js"
80
- }
97
+ "types": "./dist/lazy/index.d.ts",
98
+ "import": "./dist/lazy/index.js",
99
+ "default": "./dist/lazy/index.js"
81
100
  },
82
101
  "./task": {
83
- "import": {
84
- "types": "./dist/core/task/index.d.ts",
85
- "default": "./dist/core/task/index.js"
86
- }
102
+ "types": "./dist/core/task/index.d.ts",
103
+ "import": "./dist/core/task/index.js",
104
+ "default": "./dist/core/task/index.js"
87
105
  },
88
106
  "./fpromise": {
89
- "import": {
90
- "types": "./dist/fpromise/index.d.ts",
91
- "default": "./dist/fpromise/index.js"
92
- }
107
+ "types": "./dist/fpromise/index.d.ts",
108
+ "import": "./dist/fpromise/index.js",
109
+ "default": "./dist/fpromise/index.js"
93
110
  },
94
111
  "./io": {
95
- "import": {
96
- "types": "./dist/io/index.d.ts",
97
- "default": "./dist/io/index.js"
98
- }
112
+ "types": "./dist/io/index.d.ts",
113
+ "import": "./dist/io/index.js",
114
+ "default": "./dist/io/index.js"
99
115
  },
100
116
  "./functype": {
101
- "import": {
102
- "types": "./dist/functype/index.d.ts",
103
- "default": "./dist/functype/index.js"
104
- }
117
+ "types": "./dist/functype/index.d.ts",
118
+ "import": "./dist/functype/index.js",
119
+ "default": "./dist/functype/index.js"
105
120
  },
106
121
  "./typeclass": {
107
- "import": {
108
- "types": "./dist/typeclass/index.d.ts",
109
- "default": "./dist/typeclass/index.js"
110
- }
122
+ "types": "./dist/typeclass/index.d.ts",
123
+ "import": "./dist/typeclass/index.js",
124
+ "default": "./dist/typeclass/index.js"
111
125
  },
112
126
  "./map": {
113
- "import": {
114
- "types": "./dist/map/index.d.ts",
115
- "default": "./dist/map/index.js"
116
- }
127
+ "types": "./dist/map/index.d.ts",
128
+ "import": "./dist/map/index.js",
129
+ "default": "./dist/map/index.js"
117
130
  },
118
131
  "./set": {
119
- "import": {
120
- "types": "./dist/set/index.d.ts",
121
- "default": "./dist/set/index.js"
122
- }
132
+ "types": "./dist/set/index.d.ts",
133
+ "import": "./dist/set/index.js",
134
+ "default": "./dist/set/index.js"
123
135
  },
124
136
  "./tuple": {
125
- "import": {
126
- "types": "./dist/tuple/index.d.ts",
127
- "default": "./dist/tuple/index.js"
128
- }
137
+ "types": "./dist/tuple/index.d.ts",
138
+ "import": "./dist/tuple/index.js",
139
+ "default": "./dist/tuple/index.js"
129
140
  },
130
141
  "./branded": {
131
- "import": {
132
- "types": "./dist/branded/index.d.ts",
133
- "default": "./dist/branded/index.js"
134
- }
142
+ "types": "./dist/branded/index.d.ts",
143
+ "import": "./dist/branded/index.js",
144
+ "default": "./dist/branded/index.js"
135
145
  },
136
146
  "./companion": {
137
- "import": {
138
- "types": "./dist/companion/index.d.ts",
139
- "default": "./dist/companion/index.js"
140
- }
147
+ "types": "./dist/companion/index.d.ts",
148
+ "import": "./dist/companion/index.js",
149
+ "default": "./dist/companion/index.js"
141
150
  },
142
151
  "./serialization": {
143
- "import": {
144
- "types": "./dist/serialization/index.d.ts",
145
- "default": "./dist/serialization/index.js"
146
- }
152
+ "types": "./dist/serialization/index.d.ts",
153
+ "import": "./dist/serialization/index.js",
154
+ "default": "./dist/serialization/index.js"
147
155
  }
148
156
  },
149
157
  "bin": {
@@ -156,35 +164,5 @@
156
164
  "safe-stable-stringify": "^2.5.0"
157
165
  },
158
166
  "sideEffects": false,
159
- "scripts": {
160
- "validate": "pnpm validate:core && pnpm validate:landing",
161
- "validate:core": "pnpm format && pnpm lint && pnpm compile && pnpm test && pnpm docs:validate && pnpm build",
162
- "validate:landing": "cd landing && pnpm validate",
163
- "format": "prettier --write .",
164
- "format:check": "prettier --check .",
165
- "lint": "eslint ./src --fix",
166
- "lint:check": "eslint ./src",
167
- "test": "vitest run",
168
- "test:watch": "vitest",
169
- "test:coverage": "vitest run --coverage",
170
- "test:ui": "vitest --ui",
171
- "build": "rimraf dist && pnpm extract:interfaces && cross-env NODE_ENV=production tsdown",
172
- "extract:interfaces": "tsx scripts/extract-interfaces.ts",
173
- "build:watch": "tsdown --watch",
174
- "dev": "tsdown --watch",
175
- "compile": "tsc --noEmit",
176
- "clean": "rimraf dist",
177
- "bench": "vitest bench",
178
- "bench:ui": "vitest bench --ui",
179
- "docs:preprocess": "tsx scripts/preprocess-docs.ts",
180
- "docs": "pnpm docs:preprocess && typedoc",
181
- "docs:watch": "typedoc --watch",
182
- "docs:sync": "tsx scripts/sync-docs.ts",
183
- "docs:validate": "tsx scripts/validate-docs.ts && tsx scripts/sync-docs.ts",
184
- "analyze:size": "pnpm build && node ./scripts/analyze-bundle-size.js",
185
- "landing:dev": "cd landing && pnpm dev",
186
- "landing:build": "cd landing && pnpm build",
187
- "landing:preview": "cd landing && pnpm preview",
188
- "cli-example": "npx . Option"
189
- }
190
- }
167
+ "packageManager": "pnpm@10.26.2+sha512.0e308ff2005fc7410366f154f625f6631ab2b16b1d2e70238444dd6ae9d630a8482d92a451144debc492416896ed16f7b114a86ec68b8404b2443869e68ffda6"
168
+ }