commercetools / merchant-center-application-kit

Tools and components for developing Merchant Center Customizations 🛠
https://docs.commercetools.com/merchant-center-customizations
MIT License
67 stars 27 forks source link

fix(deps): update all flopflip packages to v14 (major) #3492

Closed renovate[bot] closed 5 months ago

renovate[bot] commented 5 months ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@flopflip/combine-adapters (source) 13.6.0 -> 14.0.0 age adoption passing confidence
@flopflip/http-adapter (source) 13.6.0 -> 14.0.0 age adoption passing confidence
@flopflip/launchdarkly-adapter (source) 13.6.0 -> 14.0.0 age adoption passing confidence
@flopflip/memory-adapter (source) 13.6.0 -> 14.0.0 age adoption passing confidence
@flopflip/react-broadcast (source) 13.6.0 -> 14.0.0 age adoption passing confidence
@flopflip/types (source) 13.6.0 -> 14.0.0 age adoption passing confidence

Release Notes

tdeekens/flopflip (@​flopflip/combine-adapters) ### [`v14.0.0`](https://togithub.com/tdeekens/flopflip/blob/HEAD/packages/combine-adapters/CHANGELOG.md#1400) [Compare Source](https://togithub.com/tdeekens/flopflip/compare/@flopflip/combine-adapters@13.6.0...@flopflip/combine-adapters@14.0.0) ##### Patch Changes - Updated dependencies \[[`612461e`](https://togithub.com/tdeekens/flopflip/commit/612461ee77a6332f6481462a09c14375eb0e4001), [`72f308b`](https://togithub.com/tdeekens/flopflip/commit/72f308b6a2447fceeb84abc2198247354b5c2d43)]: - [@​flopflip/adapter-utilities](https://togithub.com/flopflip/adapter-utilities)[@​14](https://togithub.com/14).0.0 - [@​flopflip/types](https://togithub.com/flopflip/types)[@​14](https://togithub.com/14).0.0
tdeekens/flopflip (@​flopflip/http-adapter) ### [`v14.0.0`](https://togithub.com/tdeekens/flopflip/blob/HEAD/packages/http-adapter/CHANGELOG.md#1400) [Compare Source](https://togithub.com/tdeekens/flopflip/compare/@flopflip/http-adapter@13.6.0...@flopflip/http-adapter@14.0.0) ##### Minor Changes - [#​1888](https://togithub.com/tdeekens/flopflip/pull/1888) [`72f308b`](https://togithub.com/tdeekens/flopflip/commit/72f308b6a2447fceeb84abc2198247354b5c2d43) Thanks [@​tdeekens](https://togithub.com/tdeekens)! - The release adds a new `cacheMode` property on the `adapterArgs` of an adapter. Using the `cacheMode` you can opt into an `eager` or `lazy`. The `cacheMode` allows you to define when remote flags should take affect in an application. Before `flopflip` behaved always `eager`. This remains the case when passing `eager` or `null` as the `cacheMode`. In `lazy` mode `flopflip` will not directly flush remote values and only silently put them in the cache. They would then take effect on the next render or `reconfigure`. In short, the `cacheMode` can be `eager` to indicate that remote values should have effect immediately. The value can also be `lazy` to indicate that values should be updated in the cache but only be applied once the adapter is configured again With the `cacheMode` we removed some likely unused functionality which explored similar ideas before: 1. `unsubscribeFromCachedFlags`: This is now always the case. You can use the `lazy` `cacheMode` to indicate that you don't want flags to take immediate effect 2. `subscribeToFlagChanges`: This is now always true. You can't opt-out of the flag subscription any longer ##### Patch Changes - Updated dependencies \[[`612461e`](https://togithub.com/tdeekens/flopflip/commit/612461ee77a6332f6481462a09c14375eb0e4001), [`72f308b`](https://togithub.com/tdeekens/flopflip/commit/72f308b6a2447fceeb84abc2198247354b5c2d43)]: - [@​flopflip/adapter-utilities](https://togithub.com/flopflip/adapter-utilities)[@​14](https://togithub.com/14).0.0 - [@​flopflip/types](https://togithub.com/flopflip/types)[@​14](https://togithub.com/14).0.0 - [@​flopflip/cache](https://togithub.com/flopflip/cache)[@​14](https://togithub.com/14).0.0 - [@​flopflip/localstorage-cache](https://togithub.com/flopflip/localstorage-cache)[@​14](https://togithub.com/14).0.0 - [@​flopflip/sessionstorage-cache](https://togithub.com/flopflip/sessionstorage-cache)[@​14](https://togithub.com/14).0.0
tdeekens/flopflip (@​flopflip/launchdarkly-adapter) ### [`v14.0.0`](https://togithub.com/tdeekens/flopflip/blob/HEAD/packages/launchdarkly-adapter/CHANGELOG.md#1400) [Compare Source](https://togithub.com/tdeekens/flopflip/compare/@flopflip/launchdarkly-adapter@13.6.0...@flopflip/launchdarkly-adapter@14.0.0) ##### Major Changes - [#​1888](https://togithub.com/tdeekens/flopflip/pull/1888) [`72f308b`](https://togithub.com/tdeekens/flopflip/commit/72f308b6a2447fceeb84abc2198247354b5c2d43) Thanks [@​tdeekens](https://togithub.com/tdeekens)! - The release adds a new `cacheMode` property on the `adapterArgs` of an adapter. Using the `cacheMode` you can opt into an `eager` or `lazy`. The `cacheMode` allows you to define when remote flags should take affect in an application. Before `flopflip` behaved always `eager`. This remains the case when passing `eager` or `null` as the `cacheMode`. In `lazy` mode `flopflip` will not directly flush remote values and only silently put them in the cache. They would then take effect on the next render or `reconfigure`. In short, the `cacheMode` can be `eager` to indicate that remote values should have effect immediately. The value can also be `lazy` to indicate that values should be updated in the cache but only be applied once the adapter is configured again With the `cacheMode` we removed some likely unused functionality which explored similar ideas before: 1. `unsubscribeFromCachedFlags`: This is now always the case. You can use the `lazy` `cacheMode` to indicate that you don't want flags to take immediate effect 2. `subscribeToFlagChanges`: This is now always true. You can't opt-out of the flag subscription any longer ##### Patch Changes - Updated dependencies \[[`612461e`](https://togithub.com/tdeekens/flopflip/commit/612461ee77a6332f6481462a09c14375eb0e4001), [`72f308b`](https://togithub.com/tdeekens/flopflip/commit/72f308b6a2447fceeb84abc2198247354b5c2d43)]: - [@​flopflip/adapter-utilities](https://togithub.com/flopflip/adapter-utilities)[@​14](https://togithub.com/14).0.0 - [@​flopflip/types](https://togithub.com/flopflip/types)[@​14](https://togithub.com/14).0.0 - [@​flopflip/cache](https://togithub.com/flopflip/cache)[@​14](https://togithub.com/14).0.0 - [@​flopflip/localstorage-cache](https://togithub.com/flopflip/localstorage-cache)[@​14](https://togithub.com/14).0.0 - [@​flopflip/sessionstorage-cache](https://togithub.com/flopflip/sessionstorage-cache)[@​14](https://togithub.com/14).0.0
tdeekens/flopflip (@​flopflip/memory-adapter) ### [`v14.0.0`](https://togithub.com/tdeekens/flopflip/blob/HEAD/packages/memory-adapter/CHANGELOG.md#1400) [Compare Source](https://togithub.com/tdeekens/flopflip/compare/@flopflip/memory-adapter@13.6.0...@flopflip/memory-adapter@14.0.0) ##### Patch Changes - Updated dependencies \[[`612461e`](https://togithub.com/tdeekens/flopflip/commit/612461ee77a6332f6481462a09c14375eb0e4001), [`72f308b`](https://togithub.com/tdeekens/flopflip/commit/72f308b6a2447fceeb84abc2198247354b5c2d43)]: - [@​flopflip/adapter-utilities](https://togithub.com/flopflip/adapter-utilities)[@​14](https://togithub.com/14).0.0 - [@​flopflip/types](https://togithub.com/flopflip/types)[@​14](https://togithub.com/14).0.0
tdeekens/flopflip (@​flopflip/react-broadcast) ### [`v14.0.0`](https://togithub.com/tdeekens/flopflip/blob/HEAD/packages/react-broadcast/CHANGELOG.md#1400) [Compare Source](https://togithub.com/tdeekens/flopflip/compare/@flopflip/react-broadcast@13.6.0...@flopflip/react-broadcast@14.0.0) ##### Patch Changes - [#​1889](https://togithub.com/tdeekens/flopflip/pull/1889) [`612461e`](https://togithub.com/tdeekens/flopflip/commit/612461ee77a6332f6481462a09c14375eb0e4001) Thanks [@​renovate](https://togithub.com/apps/renovate)! - Update dependencies - Updated dependencies \[[`612461e`](https://togithub.com/tdeekens/flopflip/commit/612461ee77a6332f6481462a09c14375eb0e4001), [`72f308b`](https://togithub.com/tdeekens/flopflip/commit/72f308b6a2447fceeb84abc2198247354b5c2d43)]: - [@​flopflip/react](https://togithub.com/flopflip/react)[@​14](https://togithub.com/14).0.0 - [@​flopflip/types](https://togithub.com/flopflip/types)[@​14](https://togithub.com/14).0.0
tdeekens/flopflip (@​flopflip/types) ### [`v14.0.0`](https://togithub.com/tdeekens/flopflip/blob/HEAD/packages/types/CHANGELOG.md#1400) [Compare Source](https://togithub.com/tdeekens/flopflip/compare/@flopflip/types@13.6.0...@flopflip/types@14.0.0) ##### Minor Changes - [#​1888](https://togithub.com/tdeekens/flopflip/pull/1888) [`72f308b`](https://togithub.com/tdeekens/flopflip/commit/72f308b6a2447fceeb84abc2198247354b5c2d43) Thanks [@​tdeekens](https://togithub.com/tdeekens)! - The release adds a new `cacheMode` property on the `adapterArgs` of an adapter. Using the `cacheMode` you can opt into an `eager` or `lazy`. The `cacheMode` allows you to define when remote flags should take affect in an application. Before `flopflip` behaved always `eager`. This remains the case when passing `eager` or `null` as the `cacheMode`. In `lazy` mode `flopflip` will not directly flush remote values and only silently put them in the cache. They would then take effect on the next render or `reconfigure`. In short, the `cacheMode` can be `eager` to indicate that remote values should have effect immediately. The value can also be `lazy` to indicate that values should be updated in the cache but only be applied once the adapter is configured again With the `cacheMode` we removed some likely unused functionality which explored similar ideas before: 1. `unsubscribeFromCachedFlags`: This is now always the case. You can use the `lazy` `cacheMode` to indicate that you don't want flags to take immediate effect 2. `subscribeToFlagChanges`: This is now always true. You can't opt-out of the flag subscription any longer ##### Patch Changes - [#​1889](https://togithub.com/tdeekens/flopflip/pull/1889) [`612461e`](https://togithub.com/tdeekens/flopflip/commit/612461ee77a6332f6481462a09c14375eb0e4001) Thanks [@​renovate](https://togithub.com/apps/renovate)! - Update dependencies

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), 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 these updates again.



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

changeset-bot[bot] commented 5 months ago

🦋 Changeset detected

Latest commit: a8a875bd537cc40a8722b9a8e8c08b2e3b2027ef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 36 packages | Name | Type | | ----------------------------------------------------------------------------------- | ----- | | @commercetools-frontend/application-components | Patch | | @commercetools-frontend/application-shell | Patch | | @commercetools-local/playground | Patch | | @commercetools-local/visual-testing-app | Patch | | @commercetools-frontend/codemod | Patch | | @commercetools-frontend/mc-scripts | Patch | | @commercetools-frontend/react-notifications | Patch | | @commercetools-applications/merchant-center-template-starter-typescript | Patch | | @commercetools-applications/merchant-center-template-starter | Patch | | @commercetools-applications/merchant-center-custom-view-template-starter-typescript | Patch | | @commercetools-applications/merchant-center-custom-view-template-starter | Patch | | @commercetools-website/components-playground | Patch | | @commercetools-frontend/cypress | Patch | | @commercetools-backend/eslint-config-node | Patch | | @commercetools-backend/express | Patch | | @commercetools-backend/loggers | Patch | | @commercetools-frontend/actions-global | Patch | | @commercetools-frontend/application-config | Patch | | @commercetools-frontend/application-shell-connectors | Patch | | @commercetools-frontend/assets | Patch | | @commercetools-frontend/babel-preset-mc-app | Patch | | @commercetools-frontend/browser-history | Patch | | @commercetools-frontend/constants | Patch | | @commercetools-frontend/create-mc-app | Patch | | @commercetools-frontend/eslint-config-mc-app | Patch | | @commercetools-frontend/i18n | Patch | | @commercetools-frontend/jest-preset-mc-app | Patch | | @commercetools-frontend/jest-stylelint-runner | Patch | | @commercetools-frontend/l10n | Patch | | @commercetools-frontend/mc-dev-authentication | Patch | | @commercetools-frontend/mc-html-template | Patch | | @commercetools-frontend/notifications | Patch | | @commercetools-frontend/permissions | Patch | | @commercetools-frontend/sdk | Patch | | @commercetools-frontend/sentry | Patch | | @commercetools-frontend/url-utils | Patch |

Not sure what this means? Click here to learn what changesets are.

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

vercel[bot] commented 5 months ago

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

Name Status Preview Comments Updated (UTC)
merchant-center-application-kit-components-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2024 7:48am
tdeekens commented 5 months ago

Please don't merge it yet. I'll review this myself once I did some review over the coming days.

tdeekens commented 5 months ago

I've tested caching in LocalStorage with a lazy cacheMode quite extensively internally with pnpm overrides. It all works as expected.

renovate[bot] commented 5 months ago

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

Warning: custom changes will be lost.