Skip to content

Commit 5ca1279

Browse files
authored
Release v0.0.1 (#189)
* Prepare changelog for release * Adjust current version * 0.0.1 * Update `@since` annotations
1 parent d6b045a commit 5ca1279

19 files changed

+26
-25
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
44

55
## Unreleased changes
66

7+
## [0.0.1](https://github.com/inrupt/solid-client-errors-js/releases/tag/v0.0.1) - 2024-07-03
8+
79
### New Features
810

911
- `InruptClientError`: Superclass for all Inrupt client libraries runtime errors.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"name": "@inrupt/solid-client-errors-js",
33
"description": "An RFC9457 Problem Details handling library.",
44
"version": "0.0.1",
5-
"private": true,
65
"scripts": {
76
"build": "rollup --config rollup.config.mjs",
87
"docs:clean": "cd docs/api; make clean-all",

src/clientError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* Superclass of all errors thrown by Inrupt's client libraries.
2424
*
25-
* @since unreleased
25+
* @since 0.0.1
2626
*/
2727
export class InruptClientError extends Error {}
2828

src/http/errorResponse.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
/**
2323
* A subset of the {@link Response} type metadata.
2424
*
25-
* @since unreleased
25+
* @since 0.0.1
2626
*/
2727
export type ResponseMetadata = Pick<
2828
Response,
@@ -32,7 +32,7 @@ export type ResponseMetadata = Pick<
3232
/**
3333
* Relevant details of an HTTP error response.
3434
*
35-
* @since unreleased
35+
* @since 0.0.1
3636
*/
3737
export type ErrorResponse = Readonly<
3838
ResponseMetadata & {
@@ -45,7 +45,7 @@ export type ErrorResponse = Readonly<
4545
* Extension to an Error thrown on an unsuccessful HTTP response
4646
* to link to a {@link ErrorResponse} instance.
4747
*
48-
* @since unreleased
48+
* @since 0.0.1
4949
*/
5050
export interface WithErrorResponse {
5151
response: ErrorResponse;
@@ -80,7 +80,7 @@ function isErrorResponse(
8080
* ```
8181
*
8282
* @alpha
83-
* @since unreleased
83+
* @since 0.0.1
8484
* @param error the error being checked.
8585
* @returns whether the error has HTTP error details attached.
8686
*/

src/http/handleErrorResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ import UnsupportedMediaTypeError, {
6565
* @param message the error message
6666
* @returns an instance of the ClientHttpError subclass matching the response metadata status.
6767
* If the response status is unkown, the generic ClientHttpError class is used.
68-
* @since unreleased
68+
* @since 0.0.1
6969
*/
7070
export function handleErrorResponse(
7171
responseMetadata: {

src/http/httpError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import { buildProblemDetails } from "./problemDetails";
3838
* }
3939
* ```
4040
*
41-
* @since unreleased
41+
* @since 0.0.1
4242
*/
4343
export class ClientHttpError
4444
extends InruptClientError

src/http/problemDetails.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,21 @@ import type { ErrorResponse } from "./errorResponse";
2424
/**
2525
* The Problem Details MIME type documented in {@link https://www.rfc-editor.org/rfc/rfc9457}.
2626
*
27-
* @since unreleased
27+
* @since 0.0.1
2828
*/
2929
export const PROBLEM_DETAILS_MIME = "application/problem+json";
3030
/**
3131
* The default type problem documented in {@link https://www.rfc-editor.org/rfc/rfc9457#name-aboutblank}.
3232
*
33-
* @since unreleased
33+
* @since 0.0.1
3434
*/
3535
export const DEFAULT_TYPE = new URL("about:blank");
3636

3737
/**
3838
* Structured representation of the issue underlying an error response
3939
* from an HTTP API.
4040
*
41-
* @since unreleased
41+
* @since 0.0.1
4242
*/
4343
export type ProblemDetails = Readonly<{
4444
/**
@@ -68,7 +68,7 @@ export type ProblemDetails = Readonly<{
6868
* Extension to an Error thrown on an unsuccessful HTTP response
6969
* to link to a {@link ProblemDetails} instance.
7070
*
71-
* @since unreleased
71+
* @since 0.0.1
7272
*/
7373
export interface WithProblemDetails {
7474
/**
@@ -115,7 +115,7 @@ function isProblemDetails(
115115
* ```
116116
*
117117
* @alpha
118-
* @since unreleased
118+
* @since 0.0.1
119119
* @param error the error being checked.
120120
* @returns whether the error has problem details attached.
121121
*/

src/http/wellKnown/badRequestError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type BadRequestErrorResponse = ErrorResponse & {
3232
* Runtime error thrown on HTTP Bad Request (400) response.
3333
*
3434
* @see {@link https://www.rfc-editor.org/rfc/rfc9110#status.400 | RFC 9110 (15.5.1.) 400 Bad Request}
35-
* @since unreleased
35+
* @since 0.0.1
3636
*/
3737
export class BadRequestError extends ClientHttpError {
3838
constructor(

src/http/wellKnown/conflictError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type ConflictErrorResponse = ErrorResponse & {
3232
* Runtime error thrown on HTTP Conflict (409) response.
3333
*
3434
* @see {@link https://www.rfc-editor.org/rfc/rfc9110#status.409 | RFC 9110 (15.5.10.) 409 Conflict}
35-
* @since unreleased
35+
* @since 0.0.1
3636
*/
3737
export class ConflictError extends ClientHttpError {
3838
constructor(

src/http/wellKnown/forbiddenError.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export type ForbiddenErrorResponse = ErrorResponse & {
3232
* Runtime error thrown on HTTP Forbidden (403) response.
3333
*
3434
* @see {@link https://www.rfc-editor.org/rfc/rfc9110#status.403 | RFC 9110 (15.5.4.) 403 Forbidden}
35-
* @since unreleased
35+
* @since 0.0.1
3636
*/
3737
export class ForbiddenError extends ClientHttpError {
3838
constructor(

0 commit comments

Comments
 (0)