Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #668

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Version Packages #668

merged 1 commit into from
Oct 25, 2023

Conversation

belgattitude
Copy link
Owner

@belgattitude belgattitude commented Oct 25, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@httpx/[email protected]

Minor Changes

@httpx/[email protected]

Minor Changes

  • #667 6872abb Thanks @belgattitude! - Minimum node version is 18.12. Move to es2022.

  • #667 6872abb Thanks @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
    
    

@httpx/[email protected]

Patch Changes

@examples/[email protected]

Patch Changes

@ghost
Copy link

ghost commented Oct 25, 2023

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@codecov
Copy link

codecov bot commented Oct 25, 2023

Codecov Report

Merging #668 (2fe1f69) into main (6872abb) will not change coverage.
Report is 1 commits behind head on main.
The diff coverage is n/a.

❗ Current head 2fe1f69 differs from pull request most recent head 724ef23. Consider uploading reports for the commit 724ef23 to get more accurate results

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #668   +/-   ##
=======================================
  Coverage   92.10%   92.10%           
=======================================
  Files          72       72           
  Lines         557      557           
  Branches      117      117           
=======================================
  Hits          513      513           
  Misses         38       38           
  Partials        6        6           
Flag Coverage Δ
httpx-dsn-parser-unit 100.00% <ø> (ø)
httpx-exception-unit 93.41% <ø> (ø)
httpx-json-api-unit 66.00% <ø> (ø)

@github-actions github-actions bot force-pushed the changeset-release/main branch from 2fe1f69 to 724ef23 Compare October 25, 2023 23:23
@belgattitude belgattitude merged commit bb92dbf into main Oct 25, 2023
@belgattitude belgattitude deleted the changeset-release/main branch October 25, 2023 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant