Skip to content
This repository was archived by the owner on Oct 1, 2025. It is now read-only.

fix(deps): update dependency valtio to v1.13.2#104

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/valtio-1.x
Open

fix(deps): update dependency valtio to v1.13.2#104
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/valtio-1.x

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Aug 1, 2021

Note

Mend has cancelled the proposed renaming of the Renovate GitHub app being renamed to mend[bot].

This notice will be removed on 2025-10-07.


This PR contains the following updates:

Package Change Age Confidence
valtio 1.1.2 -> 1.13.2 age 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

  • refactor(types): make Snapshot<T> use read-only collections by @​cAttte in #​850

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
@&#8203;@&#8203; -60,7 +60,7 @&#8203;@&#8203; 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
@&#8203;@&#8203; -16,7 +16,7 @&#8203;@&#8203; 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

  • fix(react): do not omit getServerState in useSyncExternalStore by @​dai-shi in #​416

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

  • fix(core): avoid Maximum call stack size exceeded error with circular structure by @​dai-shi in #​379

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

v1.2.4: v.1.2.4

Compare Source

v1.2.3 accidentally requires newer node.js versions. v1.2.4 fixes it by reverting exports format.

  • #​247 fix(package): avoid subpath pattern in exports

v1.2.3

Compare Source

⚠️ Minimum Node.js requirements (for server-side usage like Next.js): v14.13.0, v12.20.0

This improves devtools in valtio/utils.

  • #​223 refactor: stricter tsconfig
  • #​232 fix(utils): remove useless internal info in devtools
  • #​236 chore(build): simplify exports and support nested subpath

v1.2.2

Compare Source

This fixes ESM exports for some environments. Some utils are also improved.

  • #​215 fix(utils): fixing subscribeKey typing
  • #​221 refactor(core): eliminate any with new useMutableSource emulation
  • #​216 fix(build): use .mjs for import condition in exports
  • #​227 fix(utils): Adds skipSubscribe option to proxyWithHistory

v1.2.1

Compare Source

As reported in #​210, there was an issue with ESM build. This version fixes it by updating the dependency.

  • #​211 fix: update proxy-compare

v1.2.0

Compare Source

We add a new util derive, and deprecate addComputed in favor of it.
In valtio, proxy objects are primitive subscription targets, and derive is a better-fitting abstraction for creating derived / computed values. derive is recommended for both React and Vanilla.

  • #​208 refactor(core): useMutableSource emulation without symbol and any
  • #​201 feat: derive util

v1.1.3

Compare Source

This fixes an issue to handle promises (a.k.a. Suspense) in snapshots.

  • #​200 chore(utils): split into files
  • #​202 fix: return value in snapshot promise getter after promise is resolved

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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 1, 2021

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.84%. Comparing base (1aabe4d) to head (39ab92f).

❗ Current head 39ab92f differs from pull request most recent head b56b099. Consider uploading reports for the commit b56b099 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #104   +/-   ##
=======================================
  Coverage   99.84%   99.84%           
=======================================
  Files          19       19           
  Lines         627      627           
  Branches       62       64    +2     
=======================================
  Hits          626      626           
  Misses          1        1           

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

@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from e90ba1b to 4e7c28f Compare August 10, 2021 12:11
@renovate renovate Bot changed the title fix(deps): update dependency valtio to v1.1.3 fix(deps): update dependency valtio to v1.2.0 Aug 10, 2021
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from 4e7c28f to 9128ec5 Compare August 13, 2021 10:44
@renovate renovate Bot changed the title fix(deps): update dependency valtio to v1.2.0 fix(deps): update dependency valtio to v1.2.1 Aug 13, 2021
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from 9128ec5 to 00a08a9 Compare August 29, 2021 10:13
@renovate renovate Bot changed the title fix(deps): update dependency valtio to v1.2.1 fix(deps): update dependency valtio to v1.2.2 Aug 29, 2021
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from 00a08a9 to c506dec Compare September 18, 2021 13:06
@renovate renovate Bot changed the title fix(deps): update dependency valtio to v1.2.2 fix(deps): update dependency valtio to v1.2.3 Sep 18, 2021
@renovate renovate Bot changed the title fix(deps): update dependency valtio to v1.2.3 fix(deps): update dependency valtio to v1.2.4 Oct 1, 2021
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from c506dec to 0c405f8 Compare October 1, 2021 14:30
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from 0c405f8 to 39ab92f Compare October 19, 2021 00:06
@renovate renovate Bot changed the title fix(deps): update dependency valtio to v1.2.4 fix(deps): update dependency valtio to v1.2.5 Oct 19, 2021
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from 39ab92f to 3c59461 Compare March 7, 2022 13:07
@renovate renovate Bot changed the title fix(deps): update dependency valtio to v1.2.5 fix(deps): update dependency valtio to v1.3.1 Mar 7, 2022
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from 3c59461 to 8bee386 Compare March 26, 2022 15:57
@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 force-pushed the renovate/valtio-1.x branch from 8bee386 to c034106 Compare April 24, 2022 22:19
@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 force-pushed the renovate/valtio-1.x branch from c034106 to 7ff49c6 Compare June 18, 2022 14:55
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from 7ff49c6 to 6ec775a Compare September 25, 2022 11:29
@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 force-pushed the renovate/valtio-1.x branch from 6ec775a to a54157f Compare November 20, 2022 10:40
@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 force-pushed the renovate/valtio-1.x branch from a54157f to f26a54e Compare March 17, 2023 00:00
@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 17, 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 force-pushed the renovate/valtio-1.x branch from f26a54e to 2b6af76 Compare April 17, 2023 12:54
@renovate renovate Bot force-pushed the renovate/valtio-1.x branch from 2b6af76 to fd817c6 Compare May 28, 2023 10:19
@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 force-pushed the renovate/valtio-1.x branch from fd817c6 to 72b0d4c Compare June 21, 2023 13:19
@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 force-pushed the renovate/valtio-1.x branch from 72b0d4c to aa7d1dd Compare July 10, 2023 16:36
@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 force-pushed the renovate/valtio-1.x branch 2 times, most recently from 30b7cc2 to 7ffad12 Compare July 27, 2023 03:01
@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 force-pushed the renovate/valtio-1.x branch from 7ffad12 to 7e44be4 Compare August 12, 2023 13:45
@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 force-pushed the renovate/valtio-1.x branch from 7e44be4 to 494f06a Compare October 23, 2023 04:13
@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 force-pushed the renovate/valtio-1.x branch from 494f06a to 1f0be5b Compare November 3, 2023 04:36
@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 force-pushed the renovate/valtio-1.x branch from 1f0be5b to e6ff034 Compare November 28, 2023 04:56
@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 force-pushed the renovate/valtio-1.x branch from e6ff034 to c84b2b2 Compare January 6, 2024 03:40
@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 force-pushed the renovate/valtio-1.x branch from c84b2b2 to 2b70cba Compare February 9, 2024 03:48
@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 force-pushed the renovate/valtio-1.x branch from 2b70cba to b56b099 Compare March 2, 2024 06:56
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants