Skip to content

Commit

Permalink
Version Packages (#720)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
belgattitude and github-actions[bot] authored Nov 17, 2023
1 parent bae6ce0 commit b2307ab
Show file tree
Hide file tree
Showing 12 changed files with 77 additions and 61 deletions.
5 changes: 0 additions & 5 deletions .changeset/chilled-geese-guess.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/smooth-bats-build.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tough-pigs-deny.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wicked-kiwis-lick.md

This file was deleted.

7 changes: 7 additions & 0 deletions examples/nextjs-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @examples/nextjs-app

## 0.1.40

### Patch Changes

- Updated dependencies [[`bae6ce0`](https://github.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f)]:
- @httpx/exception@2.5.2

## 0.1.39

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/nextjs-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@examples/nextjs-app",
"version": "0.1.39",
"version": "0.1.40",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
12 changes: 12 additions & 0 deletions packages/dsn-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @httpx/dsn-parser

## 1.6.0

### Minor Changes

- [#719](https://github.com/belgattitude/httpx/pull/719) [`bae6ce0`](https://github.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f) Thanks [@belgattitude](https://github.com/belgattitude)! - Move to esm first (dual cjs/mjs is till supported in the mid-term)

- [#719](https://github.com/belgattitude/httpx/pull/719) [`bae6ce0`](https://github.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f) Thanks [@belgattitude](https://github.com/belgattitude)! - Restore node 16 official support / ES2021 (was working anyway)

### Patch Changes

- [#719](https://github.com/belgattitude/httpx/pull/719) [`bae6ce0`](https://github.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f) Thanks [@belgattitude](https://github.com/belgattitude)! - Upgrade tsup to 7.3 and build with esbuild 0.19.3

## 1.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/dsn-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@httpx/dsn-parser",
"description": "DSN & JDBC string parser with query params support in a tiny and modern package.",
"version": "1.5.0",
"version": "1.6.0",
"license": "MIT",
"author": {
"name": "Vanvelthem Sébastien",
Expand Down
76 changes: 41 additions & 35 deletions packages/exception/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @httpx/exception

## 2.5.2

### Patch Changes

- [#719](https://github.com/belgattitude/httpx/pull/719) [`bae6ce0`](https://github.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f) Thanks [@belgattitude](https://github.com/belgattitude)! - Upgrade tsup to 7.3 and build with esbuild 0.19.3

## 2.5.1

### Patch Changes
Expand All @@ -13,15 +19,15 @@
- [#675](https://github.com/belgattitude/httpx/pull/675) [`a6a63e1`](https://github.com/belgattitude/httpx/commit/a6a63e174af87f04eaf105a6e45c2ef56fc64ade) Thanks [@belgattitude](https://github.com/belgattitude)! - Add support for HttpUnprocessableEntity.issues in serializer.

```typescript
import { fromJson, toJson } from "@httpx/exception/serializer";
import { fromJson, toJson } from '@httpx/exception/serializer';

const e422 = new HttpUnprocessableEntity({
message: "Validation failed",
message: 'Validation failed',
issues: [
{
message: "Invalid address",
path: ["addresses", 0, "line1"],
code: "empty_string",
message: 'Invalid address',
path: ['addresses', 0, 'line1'],
code: 'empty_string',
},
],
});
Expand All @@ -39,12 +45,12 @@

```typescript
const e422 = createHttpException(422, {
message: "Validation failed",
message: 'Validation failed',
issues: [
{
message: "Invalid address",
path: ["addresses", 0, "line1"],
code: "empty_string",
message: 'Invalid address',
path: ['addresses', 0, 'line1'],
code: 'empty_string',
},
],
});
Expand Down Expand Up @@ -145,14 +151,14 @@
// becomes
const issues: HttpValidationIssue[] = [
{
message: "Invalid email",
path: "email",
code: "invalid_email",
message: 'Invalid email',
path: 'email',
code: 'invalid_email',
},
{
message: "Invalid address",
path: ["addresses", 0, "line1"],
code: "empty_string",
message: 'Invalid address',
path: ['addresses', 0, 'line1'],
code: 'empty_string',
},
];

Expand Down Expand Up @@ -222,19 +228,19 @@
Example:

```typescript
import { HttpUnprocessableEntity } from "@httpx/exception";
import { HttpUnprocessableEntity } from '@httpx/exception';

const e422 = new HttpUnprocessableEntity({
errors: [
{
message: "Invalid email",
path: "email",
code: "invalid_email",
message: 'Invalid email',
path: 'email',
code: 'invalid_email',
},
{
message: "Invalid address",
path: ["addresses", 0, "line1"],
code: "empty_string",
message: 'Invalid address',
path: ['addresses', 0, 'line1'],
code: 'empty_string',
},
],
});
Expand Down Expand Up @@ -271,14 +277,14 @@
const e400 = new HttpBadRequest({
errors: [
{
message: "Invalid email",
path: "email",
code: "invalid_email",
message: 'Invalid email',
path: 'email',
code: 'invalid_email',
},
{
message: "Invalid address",
path: ["addresses", 0, "line1"],
code: "empty_string",
message: 'Invalid address',
path: ['addresses', 0, 'line1'],
code: 'empty_string',
},
],
});
Expand Down Expand Up @@ -359,9 +365,9 @@

```typescript
const err = new HttpRequestTimeout({
url: "https://api.dev/user/belgattitude",
method: "GET",
code: "NETWORK_FAILURE",
url: 'https://api.dev/user/belgattitude',
method: 'GET',
code: 'NETWORK_FAILURE',
errorId: nanoid(), // can be shared by frontend/server
});
console.log(err.url, err.method, err.code, err.errorId);
Expand All @@ -381,7 +387,7 @@
import {
convertToSerializable,
createFromSerializable,
} from "@httpx/exception/serializer";
} from '@httpx/exception/serializer';

const serializableObject = convertToSerializable(new HttpForbidden());
const exception = createFromSerializable(serializableObject);
Expand Down Expand Up @@ -418,11 +424,11 @@
import {
HttpForbidden,
HttpUnavailableForLegalReasons,
} from "@httpx/exception";
import { fromJson, toJson } from "@httpx/exception/serializer";
} from '@httpx/exception';
import { fromJson, toJson } from '@httpx/exception/serializer';

const e = new HttpForbidden({
url: "https://www.cool.me",
url: 'https://www.cool.me',
/*
cause: new HttpUnavailableForLegalReasons({
cause: new Error('example with cause')
Expand Down
2 changes: 1 addition & 1 deletion packages/exception/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@httpx/exception",
"description": "HTTP response errors with default message, stacktrace, instanceof, error cause support and more.",
"version": "2.5.1",
"version": "2.5.2",
"license": "MIT",
"author": {
"name": "Vanvelthem Sébastien",
Expand Down
13 changes: 13 additions & 0 deletions packages/json-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @httpx/json-api

## 0.5.0

### Minor Changes

- [#719](https://github.com/belgattitude/httpx/pull/719) [`bae6ce0`](https://github.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f) Thanks [@belgattitude](https://github.com/belgattitude)! - Move to esm first (dual esm/cjs) is still supported

### Patch Changes

- [#719](https://github.com/belgattitude/httpx/pull/719) [`bae6ce0`](https://github.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f) Thanks [@belgattitude](https://github.com/belgattitude)! - Upgrade tsup to 7.3 and build with esbuild 0.19.3

- Updated dependencies [[`bae6ce0`](https://github.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f)]:
- @httpx/exception@2.5.2

## 0.4.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/json-api/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@httpx/json-api",
"description": "Basic typescript helpers to work with json-api",
"version": "0.4.6",
"version": "0.5.0",
"license": "MIT",
"author": {
"name": "Vanvelthem Sébastien",
Expand Down

0 comments on commit b2307ab

Please sign in to comment.