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: vercel/swr
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.4
Choose a base ref
...
head repository: vercel/swr
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.0
Choose a head ref
  • 14 commits
  • 23 files changed
  • 6 contributors

Commits on Feb 24, 2023

  1. Configuration menu
    Copy the full SHA
    c1c0bef View commit details
    Browse the repository at this point in the history
  2. Subscription mode (#1263)

    * update subscribe with middleware
    
    * fix lint & test
    
    * update typing, fix test and lint
    
    * refactor callback, rename, use refs for callbacks
    
    * Delay unmount
    
    * no swr destruction and add getters, revert pkg.json
    
    * callback -> next
    
    * rename fix types and update test
    
    * change exports to unstable_subscription
    
    * manage subs with useESE
    
    * use serialize
    
    * fix lint
    
    * use cache helper to update error
    
    * update exports path
    
    * fix script
    
    * pub check
    
    * add exp jsdoc
    
    * use cache-scoped storage
    
    * use prefixed key; add more tests
    
    * fix type
    
    * remove subscriber ref
    
    * rename
    
    * fix lint
    
    ---------
    
    Co-authored-by: Shu Ding <g@shud.in>
    huozhi and shuding authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    e5b5499 View commit details
    Browse the repository at this point in the history
  3. Fix: type support for suspense and fallbackData(#2396) (#2452)

    * fix SWROptions type
    
    * add undefined to config type
    
    * fix typo
    
    * add test case for suspense
    
    * add test case for fallbackdata
    
    * add test case for config is undefined
    
    ---------
    
    Co-authored-by: taro <taro.onishi@shelfy.jp>
    taro-28 and taro-28 authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    04df1bf View commit details
    Browse the repository at this point in the history
  4. ci: faster e2e test (#2428)

    promer94 authored Feb 24, 2023
    Configuration menu
    Copy the full SHA
    02c7d1a View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2023

  1. feat: add the parallel option in useSWRInfinite (#2404)

    * feat: add parallel option in useSWRInfinite
    
    * test: add more tests for the parallel option
    
    * chore: rename a local variable
    
    * test: add comments for help
    
    * test: the parallel option with an error
    koba04 authored Feb 27, 2023
    Configuration menu
    Copy the full SHA
    2464ed5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3b04acf View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2023

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

Commits on Mar 3, 2023

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

Commits on Mar 4, 2023

  1. Configuration menu
    Copy the full SHA
    2d8545f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    851eb98 View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2023

  1. Configuration menu
    Copy the full SHA
    4650520 View commit details
    Browse the repository at this point in the history
  2. refactor: initialize the cache only on first access (#2479)

    * refactor: initialize the cache only on first access
    
    * chore: format code
    promer94 authored Mar 5, 2023
    Configuration menu
    Copy the full SHA
    185fa09 View commit details
    Browse the repository at this point in the history

Commits on Mar 6, 2023

  1. chore: Add subscription example (#2480)

    * Add subscription example
    
    * update example
    
    * move out the sub source
    huozhi authored Mar 6, 2023
    Configuration menu
    Copy the full SHA
    4247b80 View commit details
    Browse the repository at this point in the history
  2. 2.1.0

    huozhi committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    043b9e4 View commit details
    Browse the repository at this point in the history
Loading