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 valtio to v1.13.2 #196

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Oct 19, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
valtio 1.2.4 -> 1.13.2 age adoption passing confidence

Release Notes

pmndrs/valtio (valtio)

v1.13.2

Compare Source

It should improve the compatibility with old browsers.

What's Changed

Full Changelog: pmndrs/valtio@v1.13.1...v1.13.2

v1.13.1

Compare Source

A small improvement in types.

What's Changed
New Contributors

Full Changelog: pmndrs/valtio@v1.13.0...v1.13.1

v1.13.0

Compare Source

We have a new valtio-history package!

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.12.1...v1.13.0

v1.12.1

Compare Source

Some improvements in valtio/utils.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.12.0...v1.12.1

v1.12.0

Compare Source

This version moves derive to a dependency. Please open a new discussion if you find some problems.

What's Changed
New Contributors

Full Changelog: pmndrs/valtio@v1.11.3...v1.12.0

v1.11.3

Compare Source

This fixes some edge cases.

What's Changed
New Contributors

Full Changelog: pmndrs/valtio@v1.11.2...v1.11.3

v1.11.2

Compare Source

This improves some TypeScript issues.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.11.1...v1.11.2

v1.11.1

Compare Source

This reverts the change made in v1.11.0, which turns out to be troublesome for RN users.

It's basically the same as v1.10.7.

git diff v1.10.7...v1.11.1 src
diff --git a/src/vanilla.ts b/src/vanilla.ts
index dc19c87..86faef8 100644
--- a/src/vanilla.ts
+++ b/src/vanilla.ts
@​@​ -60,7 +60,7 @​@​ type ProxyState = readonly [
   target: object,
   ensureVersion: (nextCheckVersion?: number) => number,
   createSnapshot: CreateSnapshot,
-  addListener: AddListener
+  addListener: AddListener,
 ]
 
 // shared state
diff --git a/src/vanilla/utils/derive.ts b/src/vanilla/utils/derive.ts
index 832f542..c9af01a 100644
--- a/src/vanilla/utils/derive.ts
+++ b/src/vanilla/utils/derive.ts
@​@​ -16,7 +16,7 @​@​ type SourceObjectEntry = [
   subscriptions: Set<Subscription>,
   unsubscribe: () => void,
   pendingCount: number,
-  pendingCallbacks: Set<() => void>
+  pendingCallbacks: Set<() => void>,
 ]
 
 type DerivedObjectEntry = [subscriptions: Set<Subscription>]
diff --git a/src/vanilla/utils/proxyWithComputed.ts b/src/vanilla/utils/proxyWithComputed.ts
index 076d11b..f6d47a2 100644
--- a/src/vanilla/utils/proxyWithComputed.ts
+++ b/src/vanilla/utils/proxyWithComputed.ts
@&#8203;@&#8203; -8,7 +8,7 @&#8203;@&#8203; import type { INTERNAL_Snapshot as Snapshot } from '../../vanilla.ts'
  */
 export function proxyWithComputed_DEPRECATED<
   T extends object,
-  U extends object
+  U extends object,
 >(
   initialObject: T,
   computedFns: {

What's Changed

Full Changelog: pmndrs/valtio@v1.11.0...v1.11.1

v1.11.0

Compare Source

This adds a new behavior to trap defineProperty for certain cases.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.10.7...v1.11.0

v1.10.7

Compare Source

Some improvements for edge cases.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.10.6...v1.10.7

v1.10.6

Compare Source

It comes with some improvements.

What's Changed
New Contributors

Full Changelog: pmndrs/valtio@v1.10.5...v1.10.6

v1.10.5

Compare Source

This may improve performance in some edge cases.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.10.4...v1.10.5

v1.10.4

Compare Source

The first one is a small improvement/fix. The second one is hoping to to support Deno, but unconfirmed.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.10.3...v1.10.4

v1.10.3

Compare Source

v1.10.1 had a regression in some edge cases, which is fixed in this version.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.10.2...v1.10.3

v1.10.2

Compare Source

v1.10.1 has a performance issue in some cases. This should fix it.

What's Changed

Full Changelog: pmndrs/valtio@v1.10.1...v1.10.2

v1.10.1

Compare Source

This version contains some small fixes and internal improvements.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.10.0...v1.10.1

v1.10.0

Compare Source

This version fixes an issue in edge cases. It also deprecates proxyWithComputed in favor of bare object getters.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.9.0...v1.10.0

v1.9.0

Compare Source

This deprecates useProxy macro and adds new useProxy util, which is a convenient React hook to avoid misusing proxy states and snapshots.

What's Changed

Full Changelog: pmndrs/valtio@v1.8.2...v1.9.0

v1.8.2

Compare Source

This includes a small fix and a small improvement.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.8.0...v1.8.2

v1.8.1

Compare Source

v1.8.0

Compare Source

This version adds no new features, but the internal code is changed a lot. Thus, minor bump.

What's Changed

Full Changelog: pmndrs/valtio@v1.7.6...v1.8.0

v1.7.6

Compare Source

There was a small regression in types since v1.7.3, which is fixed.

What's Changed

Full Changelog: pmndrs/valtio@v1.7.5...v1.7.6

v1.7.5

Compare Source

There are some improvements related with ESM.

What's Changed

Full Changelog: pmndrs/valtio@v1.7.4...v1.7.5

v1.7.4

Compare Source

There was an issue in v1.7.3 with ESM, like in Next.js. This version fixes it.

What's Changed

Full Changelog: pmndrs/valtio@v1.7.3...v1.7.4

v1.7.3

Compare Source

⚠️ Please use v1.7.4 instead.


This version includes some refactors. It should be safe to upgrade. Feel free to open issues/discussions if you find something.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.7.2...v1.7.3

v1.7.2

Compare Source

This fixes a type issue in v1.7.1. It also improves old ts version support.

What's Changed

Full Changelog: pmndrs/valtio@v1.7.1...v1.7.2

v1.7.1

Compare Source

This fixes some bugs in edge cases.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.7.0...v1.7.1

v1.7.0

Compare Source

There are some refactors in the core of the library. It exposes a new experimental internal function. 99% of users wouldn't need it. Feel free to report issues if found. This also improves proxyWithHistory in valtio/utils.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.6.4...v1.7.0

v1.6.4

Compare Source

For quite a while, there has been a performance issue with many useSnapshot hooks with a single state, which is now fixed!

What's Changed

Full Changelog: pmndrs/valtio@v1.6.3...v1.6.4

v1.6.3

Compare Source

TypeScript types in v1.6.2 wasn't ideal for some cases. This is to fix it. We are not 100% sure and there might still be some issues.

What's Changed

Full Changelog: pmndrs/valtio@v1.6.2...v1.6.3

v1.6.2

Compare Source

This changes TypeScript types a little bit. Please report issues if something goes wrong.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.6.1...v1.6.2

v1.6.1

Compare Source

There was a regression since v1.5.0 introduced in #​234, which is now fixed.

What's Changed

Full Changelog: pmndrs/valtio@v1.6.0...v1.6.1

v1.6.0

Compare Source

This improves proxyWithComputed. No changes in API, but its behavior is changed and simplified. To have the same behavior as before, you need to wrap computed functions with memoize from proxy-memoize. It's more explicit and thus customizable.

What's Changed

Full Changelog: pmndrs/valtio@v1.5.2...v1.6.0

v1.5.2

Compare Source

This fixes an issue with server rendering such as with Next.js.

What's Changed

Full Changelog: pmndrs/valtio@v1.5.1...v1.5.2

v1.5.1

Compare Source

There was an issue in ESM build in v1.5.0, which caused a problem to Next.js users. It's fixed.

What's Changed

Full Changelog: pmndrs/valtio@v1.5.0...v1.5.1

v1.5.0

Compare Source

This uses useSyncExternalStore from React 18. It uses a shim when it's with pre-18, so nothing is breaking.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.4.0...v1.5.0

v1.4.0

Compare Source

This release adds valtio/macro/vite to enable useProxy macro for vite users. It's pretty new and may contain bugs. Feel free to report issues.
It also includes various non-trivial bug fixes.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.3.1...v1.4.0

v1.3.1

Compare Source

This fixes Maximum call stack size exceeded error in DEV.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.3.0...v1.3.1

v1.3.0

Compare Source

This fixes some build issues. UMD/SystemJS builds are completely renewed. Exported functions are refactored for TypeScript and we have an easier option to loosen useSnapshot typing (#​357).

What's Changed

Full Changelog: pmndrs/valtio@v1.2.12...v1.3.0

v1.2.12

Compare Source

This is just a small release to fix a bug in proxyWithHistory util.

What's Changed

Full Changelog: pmndrs/valtio@v1.2.11...v1.2.12

v1.2.11

Compare Source

v1.2.10 has two serious issues: a) TS types for useSnapshot and proxyWithComputed are broken. b) derive has a bug. They should be fixed in v1.2.11, but there can still be some bugs. Please feel free to open issues.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.2.10...v1.2.11

v1.2.10

Compare Source

⚠️ ⚠️ ⚠️ v1.2.10 turns out to have some bugs. Please use v1.2.11 instead. The Migration Guide below is still valid.


This adds new proxyMap and fixes derive, both in valtio/utils. The internal DeepResolveType type is deprecated, which might require migration.

Migration Guide (from v1.2.8 and v1.2.9)

In case you need to specify snapshot types, there are two options.

Assert mutable (let's lie)
type State = { foo?: string }
const state = proxy<State>({})

  const snap = useSnapshot(state) as State
  const handleSnap = (s: State) => {
    // ...
  }

as State can be as typeof state.

Wrap types with Readonly<>
type State = { foo?: string }
const state = proxy<State>({})

  const snap = useSnapshot(state)
  const handleSnap = (s: Readonly<State>) => {
    // ...
  }

Readonly<State> can be Readonly<typeof state>

If the state is deeply nested, please define DeepReadonly type util.

type DeepReadonly<T> = {
  readonly [P in keyof T]: DeepReadonly<T[P]>;
}

  const handleSnap = (s: DeepReadonly<State>) => {
    // ...
  }

What's Changed

Full Changelog: pmndrs/valtio@v1.2.9...v1.2.10

v1.2.9

Compare Source

This has small fixes in core, but most notably, it adds a new proxySet util in valtio/utils.

[Important Note] #​324 change can be breaking in types if some types are explicitly typed without readonly. See #​327 for discussions.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.2.8...v1.2.9

v1.2.8

Compare Source

This adds unstable_getHandler api which is not documented. It includes some refactorings internally. Please report issues if something goes wrong. Also, this adds UMD and SystemJS builds for CDN.

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.2.7...v1.2.8

v1.2.7

Compare Source

This should improve performance. 🚀

What's Changed

New Contributors

Full Changelog: pmndrs/valtio@v1.2.6...v1.2.7

v1.2.6

Compare Source

Improved devtools util.

What's Changed

Full Changelog: pmndrs/valtio@v1.2.5...v1.2.6

v1.2.5

Compare Source

Based on some feedbacks, this version includes some minor fixes.

What's Changed

Full Changelog: pmndrs/valtio@v1.2.4...v1.2.5


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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.2.5 fix(deps): update dependency valtio to v1.2.6 Nov 10, 2021
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.2.6 fix(deps): update dependency valtio to v1.2.7 Dec 1, 2021
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.2.7 fix(deps): update dependency valtio to v1.3.1 Mar 7, 2022
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.3.1 fix(deps): update dependency valtio to v1.4.0 Mar 26, 2022
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.4.0 fix(deps): update dependency valtio to v1.6.0 Apr 24, 2022
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.6.0 fix(deps): update dependency valtio to v1.6.1 Jun 18, 2022
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.6.1 fix(deps): update dependency valtio to v1.7.0 Sep 25, 2022
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.7.0 fix(deps): update dependency valtio to v1.7.6 Nov 20, 2022
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.7.6 fix(deps): update dependency valtio to v1.10.3 Mar 23, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.10.3 fix(deps): update dependency valtio to v1.10.4 Apr 17, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.10.4 fix(deps): update dependency valtio to v1.10.5 May 28, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.10.5 fix(deps): update dependency valtio to v1.10.6 Jun 21, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.10.6 fix(deps): update dependency valtio to v1.10.7 Jul 10, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.10.7 fix(deps): update dependency valtio to v1.11.0 Jul 20, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.11.0 fix(deps): update dependency valtio to v1.11.1 Jul 27, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.11.1 fix(deps): update dependency valtio to v1.11.2 Aug 12, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.11.2 fix(deps): update dependency valtio to v1.11.3 Oct 23, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.11.3 fix(deps): update dependency valtio to v1.12.0 Nov 3, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.12.0 fix(deps): update dependency valtio to v1.12.1 Nov 28, 2023
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.12.1 fix(deps): update dependency valtio to v1.13.0 Jan 6, 2024
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.13.0 fix(deps): update dependency valtio to v1.13.1 Feb 9, 2024
@renovate renovate bot changed the title fix(deps): update dependency valtio to v1.13.1 fix(deps): update dependency valtio to v1.13.2 Mar 2, 2024
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.

None yet

0 participants