Skip to content

Commit 13a252b

Browse files
Version Packages (#310)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 67321bc commit 13a252b

File tree

5 files changed

+28
-20
lines changed

5 files changed

+28
-20
lines changed

.changeset/rude-parrots-occur.md

-5
This file was deleted.

examples/nextjs-app/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @examples/nextjs-app
22

3+
## 0.1.27
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`67321bc`](https://github.com/belgattitude/httpx/commit/67321bc51e1937f5159daee99567ee9c530eabb2)]:
8+
- @httpx/exception@1.7.2
9+
310
## 0.1.26
411

512
### Patch Changes

examples/nextjs-app/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@examples/nextjs-app",
3-
"version": "0.1.26",
3+
"version": "0.1.27",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

packages/exception/CHANGELOG.md

+19-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @httpx/exception
22

3+
## 1.7.2
4+
5+
### Patch Changes
6+
7+
- [#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)
8+
39
## 1.7.1
410

511
### Patch Changes
@@ -19,14 +25,14 @@
1925
const e400 = new HttpBadRequest({
2026
errors: [
2127
{
22-
message: "Invalid email",
23-
path: "email",
24-
code: "invalid_email",
28+
message: 'Invalid email',
29+
path: 'email',
30+
code: 'invalid_email',
2531
},
2632
{
27-
message: "Invalid address",
28-
path: ["addresses", 0, "line1"],
29-
code: "empty_string",
33+
message: 'Invalid address',
34+
path: ['addresses', 0, 'line1'],
35+
code: 'empty_string',
3036
},
3137
],
3238
});
@@ -107,9 +113,9 @@
107113

108114
```typescript
109115
const err = new HttpRequestTimeout({
110-
url: "https://api.dev/user/belgattitude",
111-
method: "GET",
112-
code: "NETWORK_FAILURE",
116+
url: 'https://api.dev/user/belgattitude',
117+
method: 'GET',
118+
code: 'NETWORK_FAILURE',
113119
errorId: nanoid(), // can be shared by frontend/backend
114120
});
115121
console.log(err.url, err.method, err.code, err.errorId);
@@ -129,7 +135,7 @@
129135
import {
130136
convertToSerializable,
131137
createFromSerializable,
132-
} from "@httpx/exception/serializer";
138+
} from '@httpx/exception/serializer';
133139

134140
const serializableObject = convertToSerializable(new HttpForbidden());
135141
const exception = createFromSerializable(serializableObject);
@@ -166,11 +172,11 @@
166172
import {
167173
HttpForbidden,
168174
HttpUnavailableForLegalReasons,
169-
} from "@httpx/exception";
170-
import { fromJson, toJson } from "@httpx/exception/serializer";
175+
} from '@httpx/exception';
176+
import { fromJson, toJson } from '@httpx/exception/serializer';
171177

172178
const e = new HttpForbidden({
173-
url: "https://www.cool.me",
179+
url: 'https://www.cool.me',
174180
/*
175181
cause: new HttpUnavailableForLegalReasons({
176182
cause: new Error('example with cause')

packages/exception/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@httpx/exception",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"license": "MIT",
55
"description": "Delightful http exceptions. Works everywhere. Serialization, logging and more.",
66
"homepage": "https://github.com/belgattitude/httpx",

0 commit comments

Comments
 (0)