Skip to content

Commit

Permalink
Version Packages (#310)
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 Apr 29, 2023
1 parent 67321bc commit 13a252b
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 20 deletions.
5 changes: 0 additions & 5 deletions .changeset/rude-parrots-occur.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.27

### Patch Changes

- Updated dependencies [[`67321bc`](https://github.com/belgattitude/httpx/commit/67321bc51e1937f5159daee99567ee9c530eabb2)]:
- @httpx/exception@1.7.2

## 0.1.26

### 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.26",
"version": "0.1.27",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
32 changes: 19 additions & 13 deletions packages/exception/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @httpx/exception

## 1.7.2

### Patch Changes

- [#309](https://github.com/belgattitude/httpx/pull/309) [`67321bc`](https://github.com/belgattitude/httpx/commit/67321bc51e1937f5159daee99567ee9c530eabb2) Thanks [@belgattitude](https://github.com/belgattitude)! - Fix missing serializer export for commonjs (esm worked)

## 1.7.1

### Patch Changes
Expand All @@ -19,14 +25,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 @@ -107,9 +113,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/backend
});
console.log(err.url, err.method, err.code, err.errorId);
Expand All @@ -129,7 +135,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 @@ -166,11 +172,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,6 +1,6 @@
{
"name": "@httpx/exception",
"version": "1.7.1",
"version": "1.7.2",
"license": "MIT",
"description": "Delightful http exceptions. Works everywhere. Serialization, logging and more.",
"homepage": "https://github.com/belgattitude/httpx",
Expand Down

0 comments on commit 13a252b

Please sign in to comment.