diff --git a/.changeset/friendly-islands-lick.md b/.changeset/friendly-islands-lick.md new file mode 100644 index 00000000..1b1fffa7 --- /dev/null +++ b/.changeset/friendly-islands-lick.md @@ -0,0 +1,7 @@ +--- +"@effect/platform-browser": patch +"@effect/platform-node": patch +"@effect/platform-bun": patch +--- + +fix error type exports diff --git a/docs/platform-browser/Error.ts.md b/docs/platform-browser/Error.ts.md index ecb8e2e0..45740594 100644 --- a/docs/platform-browser/Error.ts.md +++ b/docs/platform-browser/Error.ts.md @@ -14,9 +14,9 @@ Added in v1.0.0 - [error](#error) - [BadArgument](#badargument) - - [PlatformError](#platformerror) - [SystemError](#systemerror) - [model](#model) + - [PlatformError](#platformerror) - [SystemErrorReason](#systemerrorreason) - [type id](#type-id) - [PlatformErrorTypeId](#platformerrortypeid) @@ -35,34 +35,34 @@ export declare const BadArgument: (props: Omit) => SystemError ``` Added in v1.0.0 -## SystemError +# model + +## PlatformError **Signature** ```ts -export declare const SystemError: (props: Omit) => SystemError +export declare const PlatformError: PlatformError ``` Added in v1.0.0 -# model - ## SystemErrorReason **Signature** ```ts -export declare const SystemErrorReason: any +export declare const SystemErrorReason: SystemErrorReason ``` Added in v1.0.0 diff --git a/docs/platform-bun/Error.ts.md b/docs/platform-bun/Error.ts.md index 1fb67ba9..c9119f81 100644 --- a/docs/platform-bun/Error.ts.md +++ b/docs/platform-bun/Error.ts.md @@ -14,9 +14,9 @@ Added in v1.0.0 - [error](#error) - [BadArgument](#badargument) - - [PlatformError](#platformerror) - [SystemError](#systemerror) - [model](#model) + - [PlatformError](#platformerror) - [SystemErrorReason](#systemerrorreason) - [type id](#type-id) - [PlatformErrorTypeId](#platformerrortypeid) @@ -35,34 +35,34 @@ export declare const BadArgument: (props: Omit) => SystemError ``` Added in v1.0.0 -## SystemError +# model + +## PlatformError **Signature** ```ts -export declare const SystemError: (props: Omit) => SystemError +export declare const PlatformError: PlatformError ``` Added in v1.0.0 -# model - ## SystemErrorReason **Signature** ```ts -export declare const SystemErrorReason: any +export declare const SystemErrorReason: SystemErrorReason ``` Added in v1.0.0 diff --git a/docs/platform-node/Error.ts.md b/docs/platform-node/Error.ts.md index 018a788a..54d7d901 100644 --- a/docs/platform-node/Error.ts.md +++ b/docs/platform-node/Error.ts.md @@ -14,9 +14,9 @@ Added in v1.0.0 - [error](#error) - [BadArgument](#badargument) - - [PlatformError](#platformerror) - [SystemError](#systemerror) - [model](#model) + - [PlatformError](#platformerror) - [SystemErrorReason](#systemerrorreason) - [type id](#type-id) - [PlatformErrorTypeId](#platformerrortypeid) @@ -35,34 +35,34 @@ export declare const BadArgument: (props: Omit) => SystemError ``` Added in v1.0.0 -## SystemError +# model + +## PlatformError **Signature** ```ts -export declare const SystemError: (props: Omit) => SystemError +export declare const PlatformError: PlatformError ``` Added in v1.0.0 -# model - ## SystemErrorReason **Signature** ```ts -export declare const SystemErrorReason: any +export declare const SystemErrorReason: SystemErrorReason ``` Added in v1.0.0 diff --git a/package.json b/package.json index 5f7d5ef3..f0fcf9c3 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "ts-node": "^10.9.1", "typescript": "^5.2.2", "ultra-runner": "^3.10.5", - "vite": "^4.4.9", + "vite": "^4.4.10", "vitest": "0.34.6" }, "pnpm": { diff --git a/packages/platform-browser/package.json b/packages/platform-browser/package.json index dc4ce1c1..40a4639d 100644 --- a/packages/platform-browser/package.json +++ b/packages/platform-browser/package.json @@ -36,11 +36,11 @@ "@effect/platform": "workspace:^" }, "devDependencies": { - "effect": "2.0.0-next.42", + "effect": "2.0.0-next.44", "vitest-localstorage-mock": "^0.0.1" }, "peerDependencies": { - "effect": "^2.0.0-next.42" + "effect": "^2.0.0-next.44" }, "files": [ "src", diff --git a/packages/platform-browser/src/Error.ts b/packages/platform-browser/src/Error.ts index d52763c0..05a38c78 100644 --- a/packages/platform-browser/src/Error.ts +++ b/packages/platform-browser/src/Error.ts @@ -8,11 +8,6 @@ export { * @category error */ BadArgument, - /** - * @since 1.0.0 - * @category error - */ - PlatformError, /** * @since 1.0.0 * @category type id @@ -22,7 +17,15 @@ export { * @since 1.0.0 * @category error */ - SystemError, + SystemError +} from "@effect/platform/Error" + +export type { + /** + * @since 1.0.0 + * @category model + */ + PlatformError, /** * @since 1.0.0 * @category model diff --git a/packages/platform-bun/package.json b/packages/platform-bun/package.json index 53ca24e7..33241b3a 100644 --- a/packages/platform-bun/package.json +++ b/packages/platform-bun/package.json @@ -40,10 +40,10 @@ "devDependencies": { "@effect/schema": "^0.39.2", "bun-types": "^1.0.3", - "effect": "2.0.0-next.42" + "effect": "2.0.0-next.44" }, "peerDependencies": { - "effect": "^2.0.0-next.42" + "effect": "^2.0.0-next.44" }, "files": [ "src", diff --git a/packages/platform-bun/src/Error.ts b/packages/platform-bun/src/Error.ts index d52763c0..05a38c78 100644 --- a/packages/platform-bun/src/Error.ts +++ b/packages/platform-bun/src/Error.ts @@ -8,11 +8,6 @@ export { * @category error */ BadArgument, - /** - * @since 1.0.0 - * @category error - */ - PlatformError, /** * @since 1.0.0 * @category type id @@ -22,7 +17,15 @@ export { * @since 1.0.0 * @category error */ - SystemError, + SystemError +} from "@effect/platform/Error" + +export type { + /** + * @since 1.0.0 + * @category model + */ + PlatformError, /** * @since 1.0.0 * @category model diff --git a/packages/platform-node/package.json b/packages/platform-node/package.json index 834aa7ed..ce545ac1 100644 --- a/packages/platform-node/package.json +++ b/packages/platform-node/package.json @@ -40,10 +40,10 @@ "@effect/schema": "^0.39.2", "@types/busboy": "^1.5.1", "@types/mime": "^3.0.2", - "effect": "2.0.0-next.42" + "effect": "2.0.0-next.44" }, "peerDependencies": { - "effect": "^2.0.0-next.42" + "effect": "^2.0.0-next.44" }, "dependencies": { "@effect/platform": "workspace:^", diff --git a/packages/platform-node/src/Error.ts b/packages/platform-node/src/Error.ts index d52763c0..05a38c78 100644 --- a/packages/platform-node/src/Error.ts +++ b/packages/platform-node/src/Error.ts @@ -8,11 +8,6 @@ export { * @category error */ BadArgument, - /** - * @since 1.0.0 - * @category error - */ - PlatformError, /** * @since 1.0.0 * @category type id @@ -22,7 +17,15 @@ export { * @since 1.0.0 * @category error */ - SystemError, + SystemError +} from "@effect/platform/Error" + +export type { + /** + * @since 1.0.0 + * @category model + */ + PlatformError, /** * @since 1.0.0 * @category model diff --git a/packages/platform/package.json b/packages/platform/package.json index 7d31d046..2b5693ec 100644 --- a/packages/platform/package.json +++ b/packages/platform/package.json @@ -40,11 +40,11 @@ "devDependencies": { "@effect/schema": "^0.39.2", "@types/path-browserify": "^1.0.0", - "effect": "2.0.0-next.42" + "effect": "2.0.0-next.44" }, "peerDependencies": { "@effect/schema": "^0.39.1", - "effect": "^2.0.0-next.42" + "effect": "^2.0.0-next.44" }, "files": [ "src", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b5196c15..b3c05a6e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -54,7 +54,7 @@ importers: version: 6.7.4(eslint@8.50.0)(typescript@5.2.2) '@vitejs/plugin-react': specifier: ^4.1.0 - version: 4.1.0(vite@4.4.9) + version: 4.1.0(vite@4.4.10) '@vitest/coverage-v8': specifier: ^0.34.6 version: 0.34.6(vitest@0.34.6) @@ -107,8 +107,8 @@ importers: specifier: ^3.10.5 version: 3.10.5 vite: - specifier: ^4.4.9 - version: 4.4.9(@types/node@20.8.2) + specifier: ^4.4.10 + version: 4.4.10(@types/node@20.8.2) vitest: specifier: 0.34.6 version: 0.34.6 @@ -124,13 +124,13 @@ importers: devDependencies: '@effect/schema': specifier: ^0.39.2 - version: 0.39.2(effect@2.0.0-next.42) + version: 0.39.2(effect@2.0.0-next.44) '@types/path-browserify': specifier: ^1.0.0 version: 1.0.0 effect: - specifier: 2.0.0-next.42 - version: 2.0.0-next.42 + specifier: 2.0.0-next.44 + version: 2.0.0-next.44 packages/platform-browser: dependencies: @@ -139,8 +139,8 @@ importers: version: link:../platform devDependencies: effect: - specifier: 2.0.0-next.42 - version: 2.0.0-next.42 + specifier: 2.0.0-next.44 + version: 2.0.0-next.44 vitest-localstorage-mock: specifier: ^0.0.1 version: 0.0.1(vitest@0.34.6) @@ -156,13 +156,13 @@ importers: devDependencies: '@effect/schema': specifier: ^0.39.2 - version: 0.39.2(effect@2.0.0-next.42) + version: 0.39.2(effect@2.0.0-next.44) bun-types: specifier: ^1.0.3 version: 1.0.3 effect: - specifier: 2.0.0-next.42 - version: 2.0.0-next.42 + specifier: 2.0.0-next.44 + version: 2.0.0-next.44 packages/platform-node: dependencies: @@ -178,7 +178,7 @@ importers: devDependencies: '@effect/schema': specifier: ^0.39.2 - version: 0.39.2(effect@2.0.0-next.42) + version: 0.39.2(effect@2.0.0-next.44) '@types/busboy': specifier: ^1.5.1 version: 1.5.1 @@ -186,8 +186,8 @@ importers: specifier: ^3.0.2 version: 3.0.2 effect: - specifier: 2.0.0-next.42 - version: 2.0.0-next.42 + specifier: 2.0.0-next.44 + version: 2.0.0-next.44 packages: @@ -824,12 +824,12 @@ packages: resolution: {integrity: sha512-e8vfKbjnbYiyneBincEFS0tzXluopGK77OkVFbPRtUbNDS5tJfb+jiwOQEiqASDsadcZmd+9J9+Q6v/z7GuN2g==} dev: true - /@effect/schema@0.39.2(effect@2.0.0-next.42): + /@effect/schema@0.39.2(effect@2.0.0-next.44): resolution: {integrity: sha512-UolykyRtrg+JHflZBfHK2p+w8IgP8u6kSkTq9VIggure12/2CFvlib9vphw4fJCN8cRd3gZo4LevU4FfS+ZLxw==} peerDependencies: effect: ^2.0.0-next.39 dependencies: - effect: 2.0.0-next.42 + effect: 2.0.0-next.44 fast-check: 3.13.1 dev: true @@ -1769,7 +1769,7 @@ packages: eslint-visitor-keys: 3.4.3 dev: true - /@vitejs/plugin-react@4.1.0(vite@4.4.9): + /@vitejs/plugin-react@4.1.0(vite@4.4.10): resolution: {integrity: sha512-rM0SqazU9iqPUraQ2JlIvReeaxOoRj6n+PzB1C0cBzIbd8qP336nC39/R9yPi3wVcah7E7j/kdU1uCUqMEU4OQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -1780,7 +1780,7 @@ packages: '@babel/plugin-transform-react-jsx-source': 7.22.5(@babel/core@7.23.0) '@types/babel__core': 7.20.2 react-refresh: 0.14.0 - vite: 4.4.9(@types/node@20.8.2) + vite: 4.4.10(@types/node@20.8.2) transitivePeerDependencies: - supports-color dev: true @@ -2729,8 +2729,8 @@ packages: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true - /effect@2.0.0-next.42: - resolution: {integrity: sha512-ydeSVYDmX70CPyUmZ12SNEQZrzynBmzmxm8An4kl3Bpw8GPbZhkpjb0z41+6vBKiuIAhko3icspLy71qIAytEA==} + /effect@2.0.0-next.44: + resolution: {integrity: sha512-0oBnoqWW5u1b0AhmDiGZ/TX8La697YcCrTacEBU7v+gKZeH+bbVJwPEqesGagot0sErBrvyE0H9h7Si4lHhkuA==} dev: true /electron-to-chromium@1.4.537: @@ -6222,7 +6222,7 @@ packages: mlly: 1.4.2 pathe: 1.1.1 picocolors: 1.0.0 - vite: 4.4.9(@types/node@20.8.2) + vite: 4.4.10(@types/node@20.8.2) transitivePeerDependencies: - '@types/node' - less @@ -6234,8 +6234,8 @@ packages: - terser dev: true - /vite@4.4.9(@types/node@20.8.2): - resolution: {integrity: sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==} + /vite@4.4.10(@types/node@20.8.2): + resolution: {integrity: sha512-TzIjiqx9BEXF8yzYdF2NTf1kFFbjMjUSV0LFZ3HyHoI3SGSPLnnFUKiIQtL3gl2AjHvMrprOvQ3amzaHgQlAxw==} engines: {node: ^14.18.0 || >=16.0.0} hasBin: true peerDependencies: @@ -6330,7 +6330,7 @@ packages: strip-literal: 1.3.0 tinybench: 2.5.1 tinypool: 0.7.0 - vite: 4.4.9(@types/node@20.8.2) + vite: 4.4.10(@types/node@20.8.2) vite-node: 0.34.6(@types/node@20.8.2) why-is-node-running: 2.2.2 transitivePeerDependencies: