Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove aggregate-error package #131

Merged
merged 1 commit into from
Feb 16, 2024
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
1 change: 0 additions & 1 deletion .changeset/healthy-starfishes-peel.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
"@kosko/aggregate-error": major
"@kosko/cli": major
"@kosko/common-utils": major
"@kosko/config": major
Expand Down
5 changes: 5 additions & 0 deletions .changeset/weak-pumpkins-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kosko/generate": major
---

Replace the `@kosko/aggregate-error` package with the standard `AggregateError` class.
25 changes: 0 additions & 25 deletions packages/aggregate-error/CHANGELOG.md

This file was deleted.

8 changes: 0 additions & 8 deletions packages/aggregate-error/api-extractor.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/aggregate-error/index.browser.mjs

This file was deleted.

1 change: 0 additions & 1 deletion packages/aggregate-error/index.d.mts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/aggregate-error/index.d.ts

This file was deleted.

7 changes: 0 additions & 7 deletions packages/aggregate-error/index.node.cjs

This file was deleted.

1 change: 0 additions & 1 deletion packages/aggregate-error/index.node.mjs

This file was deleted.

57 changes: 0 additions & 57 deletions packages/aggregate-error/package.json

This file was deleted.

29 changes: 0 additions & 29 deletions packages/aggregate-error/src/AggregateError.ts

This file was deleted.

30 changes: 0 additions & 30 deletions packages/aggregate-error/src/__tests__/AggregateError.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/aggregate-error/src/index.ts

This file was deleted.

3 changes: 0 additions & 3 deletions packages/aggregate-error/tsconfig.json

This file was deleted.

1 change: 0 additions & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
"node": ">=18"
},
"dependencies": {
"@kosko/aggregate-error": "workspace:^",
"@kosko/cli-utils": "workspace:^",
"@kosko/common-utils": "workspace:^",
"@kosko/config": "workspace:^",
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/commands/generate/__tests__/error.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { handleGenerateError } from "../error";
import BufferList from "bl";
import AggregateError from "@kosko/aggregate-error";
import { GenerateError, ResolveError } from "@kosko/generate";
import { join, normalize } from "node:path";
import { CLIError } from "@kosko/cli-utils";
Expand Down
1 change: 0 additions & 1 deletion packages/cli/src/commands/generate/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import AggregateError from "@kosko/aggregate-error";
import { GenerateError, ResolveError } from "@kosko/generate";
import cleanStack from "clean-stack";
import extractStack from "extract-stack";
Expand Down
1 change: 0 additions & 1 deletion packages/generate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"node": ">=18"
},
"dependencies": {
"@kosko/aggregate-error": "workspace:^",
"@kosko/common-utils": "workspace:^",
"@kosko/log": "workspace:^",
"@kosko/require": "workspace:^",
Expand Down
1 change: 0 additions & 1 deletion packages/generate/src/__tests__/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { mkdir, writeFile } from "node:fs/promises";
import { dirname, join } from "node:path";
import { GenerateError, ResolveError } from "../error";
import { makeTempDir, TempDir } from "@kosko/test-utils";
import AggregateError from "@kosko/aggregate-error";
import stringify from "fast-safe-stringify";

jest.mock("@kosko/require", () => {
Expand Down
1 change: 0 additions & 1 deletion packages/generate/src/__tests__/resolve.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/// <reference types="jest-extended" />
import { getRejectedValue } from "@kosko/test-utils";
import AggregateError from "@kosko/aggregate-error";
import assert from "node:assert";
import { ResolveError } from "../error";
import { resolve } from "../resolve";
Expand Down
1 change: 0 additions & 1 deletion packages/generate/src/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import AggregateError from "@kosko/aggregate-error";
import { isRecord } from "@kosko/common-utils";
import extractStack from "extract-stack";

Expand Down
2 changes: 1 addition & 1 deletion packages/generate/src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function validateExtensions(
* @throws {@link GenerateError}
* Thrown if an error occurred.
*
* @throws {@link @kosko/aggregate-error#AggregateError}
* @throws AggregateError
* Thrown if multiple errors occurred.
*
* @public
Expand Down
2 changes: 1 addition & 1 deletion packages/generate/src/resolve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export interface ResolveOptions {
* @throws {@link ResolveError}
* Thrown if an error occurred.
*
* @throws {@link @kosko/aggregate-error#AggregateError}
* @throws AggregateError
* Thrown if multiple errors occurred.
*
* @public
Expand Down
15 changes: 0 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading