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 synckit to v0.8.8 #132

Merged
merged 1 commit into from
Dec 27, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 27, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
synckit 0.8.6 -> 0.8.8 age adoption passing confidence

Release Notes

un-ts/synckit (synckit)

v0.8.8

Compare Source

Patch Changes
  • #​148 7b6a0eb Thanks @​JounQin! - feat: migrate @pkgr/utils to lite @pkgr/core - This will make the whole package much more smaller

v0.8.7

Compare Source

Patch Changes
  • #​145 b2affa0 Thanks @​JounQin! - feat: add new globalShims option, what means you can env SYNCKIT_GLOBAL_SHIMS=1 to enable auto polyfilling for some modules, for example: fetch from node-fetch, performance from node:perf_hooks.

    You can also pass a custom globalShims option as GlobalShim Array to custom your own shims:

    export interface GlobalShim {
      moduleName: string
      /**
       * `undefined` means side effect only
       */
      globalName?: string
      /**
       * 1. `undefined` or empty string means `default`, for example:
       * ```js
       * import globalName from 'module-name'
       * ```
       *
       * 2. `null` means namespaced, for example:
       * ```js
       * import * as globalName from 'module-name'
       * ```
       *
       */
      named?: string | null
      /**
       * If not `false`, the shim will only be applied when the original `globalName` unavailable,
       * for example you may only want polyfill `globalThis.fetch` when it's unavailable natively:
       * ```js
       * import fetch from 'node-fetch'
       *
       * if (!globalThis.fetch) {
       *   globalThis.fetch = fetch
       * }
       * ```
       */
      conditional?: boolean
    }

    You can aslo reuse the exported DEFAULT_GLOBAL_SHIMS_PRESET for extanding:

    import { DEFAULT_GLOBAL_SHIMS_PRESET, createSyncFn } from 'synckit'
    
    const syncFn = createSyncFn(require.resolve('./worker'), {
      globalShims: [
        ...DEFAULT_GLOBAL_SHIMS_PRESET,
        // your own shim here
      ],
    })

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.


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

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

Copy link

codecov bot commented Dec 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8dbc697) 100.00% compared to head (bfbbf2d) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #132   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines           28        28           
  Branches         4         4           
=========================================
  Hits            28        28           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@matzkoh matzkoh merged commit 2c94577 into master Dec 27, 2023
3 checks passed
@matzkoh matzkoh deleted the renovate/synckit-0.8.x branch December 27, 2023 17:29
Copy link

🎉 This PR is included in version 2.4.8 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant