wayofdev / next-starter-tpl

πŸ€– This is a microservices-ready template for building Next.js applications, used by Wayofdev. It comes bundled with Turbo and is managed as a monorepo using PNPM
https://next-starter-tpl-docs.wayof.dev
MIT License
63 stars 8 forks source link

fix(deps): update dependency @httpx/exception to v2.6.4 #638

Closed renovate[bot] closed 10 months ago

renovate[bot] commented 10 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@httpx/exception (source) 2.1.0 -> 2.6.4 age adoption passing confidence

Release Notes

belgattitude/httpx (@​httpx/exception) ### [`v2.6.4`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#264) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.6.3...@httpx/exception@2.6.4) ##### Patch Changes - [#​858](https://togithub.com/belgattitude/httpx/pull/858) [`76fd8dc`](https://togithub.com/belgattitude/httpx/commit/76fd8dc1500125534033845029144ddc091a74a7) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Release with no changes ### [`v2.6.3`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#263) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.6.2...@httpx/exception@2.6.3) ##### Patch Changes - [`b418b0b`](https://togithub.com/belgattitude/httpx/commit/b418b0b8dc914abe3dda3a9893bd0cba1db87560) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Release unreleased patches - [#​854](https://togithub.com/belgattitude/httpx/pull/854) [`f01defc`](https://togithub.com/belgattitude/httpx/commit/f01defc16e0f539cb8bbadd95ef2ab25ea1c1601) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Add doc for nested errors ### [`v2.6.2`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#262) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.6.1...@httpx/exception@2.6.2) ##### Patch Changes - [#​850](https://togithub.com/belgattitude/httpx/pull/850) [`e17f083`](https://togithub.com/belgattitude/httpx/commit/e17f0836c4759c0fec29b2beb0c5c46b55a045a4) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Fix potential cyclic imports ### [`v2.6.1`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#261) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.6.0...@httpx/exception@2.6.1) ##### Patch Changes - [#​834](https://togithub.com/belgattitude/httpx/pull/834) [`9d4dd98`](https://togithub.com/belgattitude/httpx/commit/9d4dd980ea57b99f4697191ac5b2d8d55adcb406) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Add missing doc for nested errors - [#​832](https://togithub.com/belgattitude/httpx/pull/832) [`321957a`](https://togithub.com/belgattitude/httpx/commit/321957a9eced15ff132c2ab18789bc4bcde9ff95) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - esbuild updated to 0.19.11 to fix a potential typeScript-specific class transform edge case ### [`v2.6.0`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#260) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.5.7...@httpx/exception@2.6.0) ##### Minor Changes - [#​815](https://togithub.com/belgattitude/httpx/pull/815) [`77cd15b`](https://togithub.com/belgattitude/httpx/commit/77cd15b89fb3d88f1f60babffdaf76e8fa516bf1) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Deprecate the type `HttpStatusCode`, use `HttpErrorStatusCode` instead HttpErrorStatusCode is less ambiguous ad HttpStatusCode could be understood as HttpStatusCode could represent all http statuses. The type is exported but there's very few chances an regular user would be impacted. - [#​815](https://togithub.com/belgattitude/httpx/pull/815) [`77cd15b`](https://togithub.com/belgattitude/httpx/commit/77cd15b89fb3d88f1f60babffdaf76e8fa516bf1) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Add new types: HttpErrorStatusCode and HttpErrorStatusCodeOrNumber Improves the typescript experience by allowing typescript to suggest assigned status codes in `createException` and `HttpException`, `HttpClientException`, `HttpServerException` constructors. Arbitray numbers can still be used. - [#​815](https://togithub.com/belgattitude/httpx/pull/815) [`77cd15b`](https://togithub.com/belgattitude/httpx/commit/77cd15b89fb3d88f1f60babffdaf76e8fa516bf1) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Add new typeguards: isErrorWithErrorStatusCode and isObjectWithErrorStatusCode Those typeguards can be used in specific circumstances when an originating error has a statusCode field which indicates by convention the preferred status to send. ```typescript import { isErrorWithErrorStatusCode, createHttpException, } from "@​httpx/exception"; try { throw new (class extends Error { statusCode = 400; })(); } catch (e) { if (isErrorWithErrorStatusCode(e)) { throw createException(e.statusCode, "Something wrong happened"); } } ``` ```typescript const noSuchUser = { statusCode: 404, } satisfies ObjectWithStatusCode; class NoSuchItem extends DomainError implements ObjectWithStatusCode { statusCode: 404; } if (isObjectWithErrorStatusCode(noSuchUser)) { throw createException(e.statusCode, "Nothing"); } ``` ### [`v2.5.7`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#257) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.5.6...@httpx/exception@2.5.7) ##### Patch Changes - [#​788](https://togithub.com/belgattitude/httpx/pull/788) [`b004243`](https://togithub.com/belgattitude/httpx/commit/b004243a97cca2df472e97114cfdf1cbd03cb1a6) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Add toc in readme ### [`v2.5.6`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#256) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.5.5...@httpx/exception@2.5.6) ##### Patch Changes - [#​787](https://togithub.com/belgattitude/httpx/pull/787) [`39ec1d5`](https://togithub.com/belgattitude/httpx/commit/39ec1d525d63db3d9e0400689e73f9c32eed91ed) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Fix README doc links ### [`v2.5.5`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#255) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.5.4...@httpx/exception@2.5.5) ##### Patch Changes - [#​781](https://togithub.com/belgattitude/httpx/pull/781) [`4e2b795`](https://togithub.com/belgattitude/httpx/commit/4e2b795a69914f22d01a5137ce38e9fb39e40ed7) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Ensure compat for Chrome 96+, Firefox 90+, Edge 91+, Safari 15+ and Opera 77+ ### [`v2.5.4`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#254) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.5.3...@httpx/exception@2.5.4) ##### Patch Changes - [#​778](https://togithub.com/belgattitude/httpx/pull/778) [`d76a2f9`](https://togithub.com/belgattitude/httpx/commit/d76a2f9692fcc1083ebdfff3342b91fa30179a6f) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Reduce bundle size of createException (-20b) ### [`v2.5.3`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#253) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.5.2...@httpx/exception@2.5.3) ##### Patch Changes - [#​724](https://togithub.com/belgattitude/httpx/pull/724) [`8d02a2a`](https://togithub.com/belgattitude/httpx/commit/8d02a2a516aaf42ff5e002889938c6282c862b47) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Optimize code thanks to eslint unicorn plugin ### [`v2.5.2`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#252) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.5.1...@httpx/exception@2.5.2) ##### Patch Changes - [#​719](https://togithub.com/belgattitude/httpx/pull/719) [`bae6ce0`](https://togithub.com/belgattitude/httpx/commit/bae6ce05a85822b0ec4658b679e82ce4efa9222f) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Upgrade tsup to 7.3 and build with esbuild 0.19.3 ### [`v2.5.1`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#251) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.5.0...@httpx/exception@2.5.1) ##### Patch Changes - [#​677](https://togithub.com/belgattitude/httpx/pull/677) [`92343d2`](https://togithub.com/belgattitude/httpx/commit/92343d2ef30678cfdb0edd29b8fc2a492b91ec58) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Add tupleson tests and improve docs ### [`v2.5.0`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#250) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.4.0...@httpx/exception@2.5.0) ##### Minor Changes - [#​675](https://togithub.com/belgattitude/httpx/pull/675) [`a6a63e1`](https://togithub.com/belgattitude/httpx/commit/a6a63e174af87f04eaf105a6e45c2ef56fc64ade) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Add support for HttpUnprocessableEntity.issues in serializer. ```typescript import { fromJson, toJson } from "@​httpx/exception/serializer"; const e422 = new HttpUnprocessableEntity({ message: "Validation failed", issues: [ { message: "Invalid address", path: ["addresses", 0, "line1"], code: "empty_string", }, ], }); const json = toJson(e422); const js = fromJson(json); expect((js as HttpUnprocessableEntity).issues).toStrictEqual(e422.issues); expect(js).toStrictEqual(e422); ``` ##### Patch Changes - [#​675](https://togithub.com/belgattitude/httpx/pull/675) [`a6a63e1`](https://togithub.com/belgattitude/httpx/commit/a6a63e174af87f04eaf105a6e45c2ef56fc64ade) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Fix createHttpException that wasn't allowing issues on HttpUnprocessableEntity ```typescript const e422 = createHttpException(422, { message: "Validation failed", issues: [ { message: "Invalid address", path: ["addresses", 0, "line1"], code: "empty_string", }, ], }); ``` ### [`v2.4.0`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#240) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.3.0...@httpx/exception@2.4.0) ##### Minor Changes - [#​672](https://togithub.com/belgattitude/httpx/pull/672) [`9d1d248`](https://togithub.com/belgattitude/httpx/commit/9d1d2484828906559f192ab337b645032c257518) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Reduce bundle size by using class names rather than strings Importing all exceptions (excluding utilities, typeguards...) now top at 1Kb Example based on ESM (min+gzip) | Scenario | Size | | --------------------------- | ------ | | one exception | ~ 450b | | all exceptions | < 1kb | | everything (typeguards,...) | 1.7kb | ### [`v2.3.0`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#230) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.2.0...@httpx/exception@2.3.0) ##### Minor Changes - [#​667](https://togithub.com/belgattitude/httpx/pull/667) [`6872abb`](https://togithub.com/belgattitude/httpx/commit/6872abbc7d51eca4eae85e66fadef334ef16763d) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Minimum node version is 18.12. Move to es2022. - [#​667](https://togithub.com/belgattitude/httpx/pull/667) [`6872abb`](https://togithub.com/belgattitude/httpx/commit/6872abbc7d51eca4eae85e66fadef334ef16763d) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Reduce drastically bundle size (use es2022) Importing a single exception starts at 377 bytes, subsequent ones will add less than 50 bytes in average. Importing all exceptions (excluding typeguards...) will top at 1400 bytes. Code should be faster too. > PS: if you use exceptions outside of nodejs and need to support legacy browsers > a lot of frameworks allows to transpile modules (ie nextjs). ``` βœ” Adding to empty webpack project ESM (import everything *) Package size is 395 B less than limit Size limit: 2.46 kB Size: 2.06 kB with all dependencies, minified and gzipped ESM (only HttpNotFound exception) Package size is 965 B less than limit Size limit: 1.42 kB Size: 450 B with all dependencies, minified and gzipped ESM (two exceptions: HttpNotFound + HttpInternalServerError) Package size is 935 B less than limit Size limit: 1.44 kB Size: 505 B with all dependencies, minified and gzipped ESM (only isHttpException) Package size is 1.03 kB less than limit Size limit: 1.41 kB Size: 377 B with all dependencies, minified and gzipped ESM (only createHttpException) Package size is 571 B less than limit Size limit: 2 kB Size: 1.43 kB with all dependencies, minified and gzipped ESM ({ toJson }) Package size is 1.11 kB less than limit Size limit: 1.89 kB Size: 779 B with all dependencies, minified and gzipped ESM ({ fromJson }) Package size is 607 B less than limit Size limit: 2.5 kB Size: 1.89 kB with all dependencies, minified and gzipped CJS (require everything *) Package size is 416 B less than limit Size limit: 3.05 kB Size: 2.63 kB with all dependencies, minified and gzipped CJS (only isHttpException) Package size is 598 B less than limit Size limit: 2.5 kB Size: 1.9 kB with all dependencies, minified and gzipped ``` ### [`v2.2.0`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#220) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.1.1...@httpx/exception@2.2.0) ##### Minor Changes - [`81311de`](https://togithub.com/belgattitude/httpx/commit/81311de622f84fadc381394f840318cbd542a68e) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Deprecate ValidationError type in favour of HttpValidationIssue ```typescript // @​deprecated errors // const errors: ValidationError[] = [ // becomes const issues: HttpValidationIssue[] = [ { message: "Invalid email", path: "email", code: "invalid_email", }, { message: "Invalid address", path: ["addresses", 0, "line1"], code: "empty_string", }, ]; const e422 = new HttpUnprocessableEntity({ // @​deprecated name // errors: errors, // becomes issues issues: [], }); ``` ### [`v2.1.1`](https://togithub.com/belgattitude/httpx/blob/HEAD/packages/exception/CHANGELOG.md#211) [Compare Source](https://togithub.com/belgattitude/httpx/compare/@httpx/exception@2.1.0...@httpx/exception@2.1.1) ##### Patch Changes - [#​589](https://togithub.com/belgattitude/httpx/pull/589) [`6eab016`](https://togithub.com/belgattitude/httpx/commit/6eab0169ccb0049da158fd9e24a645011a84e275) Thanks [@​belgattitude](https://togithub.com/belgattitude)! - Fix serializer type export for older projects

Configuration

πŸ“… Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

β™» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

πŸ”• Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
next-starter-tpl-docs βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 2, 2024 2:35pm
next-starter-tpl-storybook βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 2, 2024 2:35pm
next-starter-tpl-web βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Feb 2, 2024 2:35pm
changeset-bot[bot] commented 10 months ago

⚠️ No Changeset found

Latest commit: 919d5518e828c6fa2ee45bdfe93d48a4ef77f74e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (779ed1d) 7.75% compared to head (919d551) 7.75%. Report is 212 commits behind head on master.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #638 +/- ## ====================================== Coverage 7.75% 7.75% ====================================== Files 32 32 Lines 245 245 Branches 36 37 +1 ====================================== Hits 19 19 Misses 226 226 ``` | [Flag](https://app.codecov.io/gh/wayofdev/next-starter-tpl/pull/638/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wayofdev) | Coverage Ξ” | | |---|---|---| | [web](https://app.codecov.io/gh/wayofdev/next-starter-tpl/pull/638/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wayofdev) | `7.75% <ΓΈ> (ΓΈ)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=wayofdev#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.