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

fix(deps): update dependency @httpx/assert to v0.15.0 #5998

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 12, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@httpx/assert (source) 0.14.0 -> 0.15.0 age adoption passing confidence

Release Notes

belgattitude/httpx (@​httpx/assert)

v0.15.0

Compare Source

Minor Changes
  • #​1537 dfb209f Thanks @​belgattitude! - isPlainObject inline behaviour with @​httpx/plain-object v2.

    • #​1530 4e1ecf4 Thanks @​belgattitude! - Not 100% compatible with sindreshorsus/is-plain-obj anymore

      The changes shouldn't affect most users, but it's worth noting that the isPlainObject
      function no longer consider static built-in objects as plain objects (Math, JSON, Atomics).

      This fix an issue with { [Symbol.toStringTag]: 'tag' } that wasn't considered as a plain object.

      If the behaviour is needed there's a new isStaticBuiltInClass function that can be used to check
      if a value is a static built-in class (Math, JSON, Atomics).

      Another change to mention is that isPlainObject now accepts [Symbol.iterator]
      as a valid property for plain objects.

      const v = {
        [Symbol.iterator]: function* () {
          yield 1;
        },
      }; // Since v2 considered as a plain object

      Which allows to add iterators to plain objects.

    • #​1530 4e1ecf4 Thanks @​belgattitude! - Fix issue with plain objects that contains a [Symbol.iterator]

      isPlainObject now accepts [Symbol.iterator] as a valid property for plain objects.

      const v = {
        [Symbol.iterator]: function* () {
          yield 1;
        },
      }; // Since v2 considered as a plain object

      Which allows to add iterators to plain objects.

    • #​1530 4e1ecf4 Thanks @​belgattitude! - Small performance increase

      @​httpx/plain-object: `isPlainObject(v)` - bench/comparative.bench.ts > Compare calling isPlainObject with 110x mixed types values
       1.11x faster than (sindresorhus/)is-plain-obj: `isPlainObj(v)`
       1.79x faster than @​sindresorhus/is: `is.plainObject(v)`
       2.29x faster than (jonschlinkert/)is-plain-object: `isPlainObject(v)`
       14.66x faster than estoolkit:  `isPlainObject(v)`
       73.82x faster than lodash-es: `_.isPlainObject(v)`
      
    • #​1530 4e1ecf4 Thanks @​belgattitude! - This fix an issue with { [Symbol.toStringTag]: 'tag' } that wasn't considered as a plain object.

    • #​1530 4e1ecf4 Thanks @​belgattitude! - Bundle size reduction from 101B to 75B when importing isPlainObject from @​httpx/plain-object

        Only { isPlainObject } (ESM)
        Package size is 1 B less than limit
        Size limit: 76 B
        Size:       75 B with all dependencies, minified and brotlied
      
        Only { assertPlainObject } (ESM)
        Package size is 1 B less than limit
        Size limit: 133 B
        Size:       132 B with all dependencies, minified and brotlied
      
        Import { assertPlainObject, isPlainObject } (ESM)
        Size:       139 B with all dependencies, minified and brotlied
      
    • #​1530 4e1ecf4 Thanks @​belgattitude! - isPlainObject allows static built-in classes: for Atomic, Math, Json.

      The changes shouldn't affect most users, but it's worth noting that the isPlainObject
      function no longer consider static build-in objects as plain objects (Math, JSON, Atomics).

      This fix an issue with { [Symbol.toStringTag]: 'tag' } that wasn't considered as a plain object.

      If the behaviour is needed there's a new isStaticBuiltInClass function that can be used to check
      if a value is a static built-in class (Math, JSON, Atomics).

      import { isPlainObject, isStaticBuiltInClass } from "@​httpx/plain-object";
      const v = Math; // or Atomics or JSON
      if (isPlainObject(v) && !isStaticBuiltInClass(v)) {
        console.log("v is a plain object but not a static built-in class");
      }
    • #​1530 4e1ecf4 Thanks @​belgattitude! - Change assertPlainObject default message to 'Not a PlainObject'

      This change the default error message of assertPlainObject to 'Not a PlainObject' instead of 'Not a plain object'.


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

Copy link

changeset-bot bot commented Oct 12, 2024

⚠️ No Changeset found

Latest commit: a706f99

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

Copy link

vercel bot commented Oct 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
monorepo-nextjs-app ⬜️ Ignored (Inspect) Oct 12, 2024 4:31pm
monorepo-vite-app ⬜️ Ignored (Inspect) Oct 12, 2024 4:31pm

Copy link

codeclimate bot commented Oct 12, 2024

Code Climate has analyzed commit a706f99 and detected 0 issues on this pull request.

View more on Code Climate.

@belgattitude belgattitude merged commit 2bbd12f into main Oct 12, 2024
16 checks passed
@belgattitude belgattitude deleted the renovate/httpx-assert-0.x branch October 12, 2024 16:38
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