Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pmndrs/valtio
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0
Choose a base ref
...
head repository: pmndrs/valtio
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.0
Choose a head ref
  • 17 commits
  • 99 files changed
  • 5 contributors

Commits on Aug 31, 2024

  1. Configuration menu
    Copy the full SHA
    d0a6a5f View commit details
    Browse the repository at this point in the history
  2. Added valtio-zod to library list in docs (#940)

    * added valtio-zod to libraries section
    
    * added link to Zod library
    
    ---------
    
    Co-authored-by: Daishi Kato <[email protected]>
    overthemike and dai-shi authored Aug 31, 2024
    Configuration menu
    Copy the full SHA
    b41bd56 View commit details
    Browse the repository at this point in the history

Commits on Sep 1, 2024

  1. Docs (#942)

    * Added typescript example for easily access state in your application
    
    * Ran prettier on docs
    
    * Lots of documenation fixes
    
    * added diff styles
    
    * fixed prettier lintin warnings
    
    * added diff below code examples in migration-to-v2
    
    * Update docs/api/utils/devtools.mdx
    
    Co-authored-by: Daishi Kato <[email protected]>
    
    * testing github links
    
    * update link to correct path
    
    * updated migration to v2 docs
    
    * fixed typo in some-gotchas
    
    * prettier write
    
    * Apply suggestions from code review
    
    ---------
    
    Co-authored-by: Daishi Kato <[email protected]>
    overthemike and dai-shi authored Sep 1, 2024
    Configuration menu
    Copy the full SHA
    7734e7b View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2024

  1. Configuration menu
    Copy the full SHA
    d5c06fc View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. docs - Added a note in how-tos/reset on how to use structuredClone (#947

    )
    
    * Updated reset how-to with structuredClone() example
    
    * ran prettier
    
    * updated explanation in reset
    
    * fixed links
    
    * fixed links for real this time
    
    * Got rid of auto generated text 'title: '
    
    * rewrote reset file
    overthemike authored Sep 14, 2024
    Configuration menu
    Copy the full SHA
    d30dddd View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. Configuration menu
    Copy the full SHA
    e5209d7 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. fix(docs): changed cloneDeep to deepClone (#951)

    * changed cloneDeep to deepClone
    
    * fixed typo
    overthemike authored Sep 16, 2024
    Configuration menu
    Copy the full SHA
    2587214 View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. chore: cra to vite (#957)

    * init
    
    * update
    
    * update
    
    * update
    
    * fix actions setup
    
    * Revert "fix actions setup"
    
    This reverts commit 42f4d11.
    
    * update
    
    * update
    
    * fix ci error
    
    * remove few files
    
    * editor-proxyWithHistory
    
    * todo
    
    * todo-with-proxyMap
    Aslemammad authored Sep 27, 2024
    Configuration menu
    Copy the full SHA
    0700ed4 View commit details
    Browse the repository at this point in the history

Commits on Oct 14, 2024

  1. Configuration menu
    Copy the full SHA
    98ea29b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    dd91043 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b19dec9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    487ded5 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. Configuration menu
    Copy the full SHA
    b52290a View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2024

  1. New implementation of proxyMap and proxySet with performance improvem…

    …ents (#965)
    
    * pushing up to get more eyes on it
    
    * added test for snapshot
    
    * taking a break
    
    * taking a break
    
    * removing extra set methods for now
    
    * sealed proxied obects
    
    * got all tests to pass
    
    * got rid of comma
    
    * got rid of set tests in utils folder
    
    * update version after update
    
    * updated to allow values to be keys
    
    * updated to allow values to be keys
    
    * updated package.json scripts
    
    * 2.0.1
    
    * changing brances so storing attempts
    
    * updates
    
    * fixed get
    
    * added return type to fix types on snapshot
    
    * added this.data.length in has method
    
    * updated has to only show this.data.map if key doesn't exist
    
    * updated has to only show this.data.map if key doesn't exist
    
    * changed has to check if it's in a snapshot
    
    * remove getVersion - doesn't work
    
    * added back in canProxy
    
    * imported canProxy from valtio
    
    * removed unneeded functions and checks that are done in valtio core
    
    * changed canProxy
    
    * pushing up for proxyMap testing
    
    * removed unused file
    
    * updated proxyMap to use sparse array
    
    * removed use of internal map
    
    * added proxySet
    
    * moved proxySet to be the main one
    
    * added old proxySet in for reference
    
    * fixed proxySet
    
    * made proxyMap get set and delete consistent
    
    * better syntax for maybeProxify
    
    * added benchmarks for proxyMap
    
    * added benchmarks for proxySet
    
    * removed deno from lock file
    
    * removed all test files
    
    * updated maybeproxify in proxySet
    
    * pnpm frozen lockfile
    
    * change autoinstall peers to true in pnpm-lock
    
    * changed vitest.config.mts to ts
    
    * changed version number back and updated import paths to be relative
    
    * fixed toJSON to remain in order and proxified keys in .has() for proxyMap
    
    * tested set vs filter on empty slots
    
    * fixed pnpm lock file
    
    * ran pnpm install
    
    * auto-install-peers fix
    
    * added isSnapshot function for better readability
    
    * removed unused package
    
    * removed linked package in package.json
    
    * fixed lock file
    
    * changed to isProxy with this context
    
    * Update src/vanilla/utils/proxyMap.ts
    
    Co-authored-by: Daishi Kato <[email protected]>
    
    * pushing up for testing
    
    * pushing up for testing
    
    * fixed delete, has and get
    
    * fixed delete, has and get
    
    * uploading newest changes
    
    * uploading newest changes
    
    * reverting
    
    * fixed import in test file
    
    * updated to use nextIndex
    
    * put nextIndex on the object itself
    
    * added undefined values to initialization
    
    * updated entries check
    
    * changed nextIndex to use local var
    
    * cached indexMap.has to index
    
    * removed unneeded index.has call
    
    * added this.nextIndex
    
    * replaced this.data.length with this.nextIndex
    
    * refactor
    
    * updated initial data and initial next data
    
    * added filled proxyMap and new benchmark
    
    * benchmark minSize
    
    * Revert "benchmark minSize"
    
    This reverts commit 91206eb.
    
    * compare 3
    
    * compare 3
    
    * keyVal
    
    * new keyval
    
    * minor optimization
    
    * added MIN_DATA_SIZE constant
    
    * move keyval
    
    * revert some changes
    
    * rename
    
    * removed old benchmarks and added vitest benchmarks for proxyMap
    
    * fixed lock file
    
    * added ts extension for older versions of ts in test file
    
    * changed MapIterator to IterableIterator
    
    * no longer importing with .ts extension
    
    * no longer importing with .ts extension
    
    * proxySet changes and added keyvals solution
    
    * removed ts extension from imports in proxySet and proxyMap-indexMap-keyvals
    
    * fixed toJSON in proxySet
    
    * change MapIterator to IterableIterator
    
    * add tree1 impl
    
    * got lock file from main
    
    * fixing lock file
    
    * added ts extensions backf
    
    * removed test example
    
    * extensions added back
    
    * recreating lockfile
    
    * reverting changes for website lockfile and todo-with-proxyMap lockfile
    
    * removed ts extension from proxyMap.bench.ts
    
    * reverted changes for lockfile and package.json
    
    * removed old btree implementation
    
    * changed MapIterator to IterableIterator
    
    * incomplete rawMap impl
    
    * a minor fix
    
    * fix?
    
    * export them properly
    
    * rename a little bit
    
    * revert default
    
    * fixed size issue
    
    * removed unneeded copy of key-vals
    
    * snap map
    
    * just to avoid warnings
    
    * an improvement to rawMap1, not sure if it works
    
    * enumerable size
    
    * Revert "enumerable size"
    
    This reverts commit 5acaed0.
    
    * hack with _registerSnap
    
    * added benchmarks
    
    * do not enumerate index
    
    * added snap registry to keyval
    
    * fixed index check
    
    * added snap awareness to proxySet
    
    * added snap test to proxySet
    
    * fix
    
    * removed variations
    
    * removed subscribes in proxyMap
    
    * recover tree1 -> tree2
    
    * fix a bug
    
    * added old file for reference
    
    * tree2 impl
    
    * refactor
    
    * bench tree2
    
    * tests
    
    * updated proxySet
    
    * refactor proxyMap&Set
    
    * removed test file
    
    * merged branch and got to merge status
    
    * removed todo comment
    
    * added review suggestions
    
    * added review suggestions for proxySet as well
    
    * avoid maybeProxify
    
    * no need to add key in this data
    
    * removed isProxy check on has calls
    
    * removed maybeProxify from proxySet
    
    * added back in maybeProxify to proxySet
    
    * refactor
    
    ---------
    
    Co-authored-by: Daishi Kato <[email protected]>
    Co-authored-by: daishi <[email protected]>
    3 people authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    131df82 View commit details
    Browse the repository at this point in the history
  2. added jsdoc comments for proxyMap and proxySet (#974)

    * added jsdoc comments for proxyMap and proxySet
    
    * fixed spacing in jsdoc comment
    overthemike authored Oct 16, 2024
    Configuration menu
    Copy the full SHA
    2a96acf View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    90bf703 View commit details
    Browse the repository at this point in the history
  4. 2.1.0

    dai-shi committed Oct 16, 2024
    Configuration menu
    Copy the full SHA
    552992c View commit details
    Browse the repository at this point in the history
Loading