Version Packages

This commit is contained in:
github-actions[bot]
2021-10-21 13:28:13 +00:00
parent b61c50a12f
commit bf5090e59d
166 changed files with 898 additions and 706 deletions
+9
View File
@@ -1,5 +1,14 @@
# @backstage/errors
## 0.1.3
### Patch Changes
- 7e97d0b8c1: Add public tags and documentation
- 6077d61e73: Two new helpers have been added that make it easier to migrate to considering thrown errors to be of the type `unknown` in TypeScript. The helpers are `assertError` and `isError`, and can be called to make sure that an unknown value conforms to the shape of an `ErrorLike` object. The `assertError` function is a type-guard that throws in the case of a mismatch, while `isError` returns false.
A new error constructor has also been added, `ForwardedError`, which can be used to add context to a forwarded error. It requires both a message and a cause, and inherits the `name` property from the `cause`.
## 0.1.2
### Patch Changes
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "@backstage/errors",
"description": "Common utilities for error handling within Backstage",
"version": "0.1.2",
"version": "0.1.3",
"main": "src/index.ts",
"types": "src/index.ts",
"license": "Apache-2.0",
@@ -35,7 +35,7 @@
"serialize-error": "^8.0.1"
},
"devDependencies": {
"@backstage/cli": "^0.7.11",
"@backstage/cli": "^0.8.0",
"@types/jest": "^26.0.7"
},
"files": [