Update from Vibe Studio

This commit is contained in:
Vibe Studio
2026-01-16 02:20:32 +00:00
parent a4605e311a
commit 71de1506ca
28603 changed files with 2179459 additions and 0 deletions

21
node_modules/swr/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023 Vercel, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

102
node_modules/swr/README.md generated vendored Normal file
View File

@@ -0,0 +1,102 @@
[![SWR](https://assets.vercel.com/image/upload/v1572289618/swr/banner.png)](https://swr.vercel.app)
<p align="center">
<a aria-label="Vercel logo" href="https://vercel.com">
<img src="https://badgen.net/badge/icon/Made%20by%20Vercel?icon=zeit&label&color=black&labelColor=black">
</a>
<br/>
<a aria-label="NPM version" href="https://www.npmjs.com/package/swr">
<img alt="" src="https://badgen.net/npm/v/swr">
</a>
<a aria-label="Package size" href="https://bundlephobia.com/result?p=swr">
<img alt="" src="https://badgen.net/bundlephobia/minzip/swr">
</a>
<a aria-label="License" href="https://github.com/vercel/swr/blob/main/LICENSE">
<img alt="" src="https://badgen.net/npm/license/swr">
</a>
</p>
## Introduction
SWR is a React Hooks library for data fetching.
The name “**SWR**” is derived from `stale-while-revalidate`, a cache invalidation strategy popularized by [HTTP RFC 5861](https://tools.ietf.org/html/rfc5861).
**SWR** first returns the data from cache (stale), then sends the request (revalidate), and finally comes with the up-to-date data again.
With just one hook, you can significantly simplify the data fetching logic in your project. And it also covered in all aspects of speed, correctness, and stability to help you build better experiences:
- **Fast**, **lightweight** and **reusable** data fetching
- Transport and protocol agnostic
- Built-in **cache** and request deduplication
- **Real-time** experience
- Revalidation on focus
- Revalidation on network recovery
- Polling
- Pagination and scroll position recovery
- SSR and SSG
- Local mutation (Optimistic UI)
- Built-in smart error retry
- TypeScript
- React Suspense
- React Native
...and a lot more.
With SWR, components will get **a stream of data updates constantly and automatically**. Thus, the UI will be always **fast** and **reactive**.
---
**View full documentation and examples on [swr.vercel.app](https://swr.vercel.app).**
<br/>
## Quick Start
```js
import useSWR from 'swr'
function Profile() {
const { data, error, isLoading } = useSWR('/api/user', fetcher)
if (error) return <div>failed to load</div>
if (isLoading) return <div>loading...</div>
return <div>hello {data.name}!</div>
}
```
In this example, the React Hook `useSWR` accepts a `key` and a `fetcher` function.
The `key` is a unique identifier of the request, normally the URL of the API. And the `fetcher` accepts
`key` as its parameter and returns the data asynchronously.
`useSWR` also returns 3 values: `data`, `isLoading` and `error`. When the request (fetcher) is not yet finished,
`data` will be `undefined` and `isLoading` will be `true`. When we get a response, it sets `data` and `error` based on the result
of `fetcher`, `isLoading` to false and rerenders the component.
Note that `fetcher` can be any asynchronous function, you can use your favourite data-fetching
library to handle that part.
---
**View full documentation and examples on [swr.vercel.app](https://swr.vercel.app).**
<br/>
## Authors
This library is created by the team behind [Next.js](https://nextjs.org), with contributions from our community:
- Shu Ding ([@shuding\_](https://x.com/shuding_)) - [Vercel](https://vercel.com)
- Jiachi Liu ([@huozhi](https://x.com/huozhi)) - [Vercel](https://vercel.com)
- Guillermo Rauch ([@rauchg](https://x.com/rauchg)) - [Vercel](https://vercel.com)
- Joe Haddad ([@timer150](https://x.com/timer150)) - [Vercel](https://vercel.com)
- Paco Coursey ([@pacocoursey](https://x.com/pacocoursey)) - [Vercel](https://vercel.com)
[Contributors](https://github.com/vercel/swr/graphs/contributors)
Thanks to Ryan Chen for providing the awesome `swr` npm package name!
<br/>
## License
The MIT License.

6
node_modules/swr/_internal/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"main": "../dist/_internal/index.js",
"module": "../dist/_internal/index.mjs",
"types": "../dist/_internal/index.d.ts",
"private": true
}

6
node_modules/swr/immutable/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"main": "../dist/immutable/index.js",
"module": "../dist/immutable/index.mjs",
"types": "../dist/immutable/index.d.ts",
"private": true
}

6
node_modules/swr/infinite/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"main": "../dist/infinite/index.js",
"module": "../dist/infinite/index.mjs",
"types": "../dist/infinite/index.d.ts",
"private": true
}

6
node_modules/swr/mutation/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"main": "../dist/mutation/index.js",
"module": "../dist/mutation/index.mjs",
"types": "../dist/mutation/index.d.ts",
"private": true
}

179
node_modules/swr/package.json generated vendored Normal file
View File

@@ -0,0 +1,179 @@
{
"name": "swr",
"version": "2.3.8",
"description": "React Hooks library for remote data fetching",
"keywords": [
"swr",
"react",
"hooks",
"request",
"cache",
"fetch"
],
"packageManager": "pnpm@10.24.0",
"main": "./dist/index/index.js",
"module": "./dist/index/index.mjs",
"types": "./dist/index/index.d.ts",
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
".": {
"react-server": "./dist/index/react-server.mjs",
"import": {
"types": "./dist/index/index.d.mts",
"default": "./dist/index/index.mjs"
},
"require": {
"types": "./dist/index/index.d.ts",
"default": "./dist/index/index.js"
}
},
"./infinite": {
"react-server": "./dist/infinite/react-server.mjs",
"import": {
"types": "./dist/infinite/index.d.mts",
"default": "./dist/infinite/index.mjs"
},
"require": {
"types": "./dist/infinite/index.d.ts",
"default": "./dist/infinite/index.js"
}
},
"./immutable": {
"import": {
"types": "./dist/immutable/index.d.mts",
"default": "./dist/immutable/index.mjs"
},
"require": {
"types": "./dist/immutable/index.d.ts",
"default": "./dist/immutable/index.js"
}
},
"./subscription": {
"import": {
"types": "./dist/subscription/index.d.mts",
"default": "./dist/subscription/index.mjs"
},
"require": {
"types": "./dist/subscription/index.d.ts",
"default": "./dist/subscription/index.js"
}
},
"./mutation": {
"import": {
"types": "./dist/mutation/index.d.mts",
"default": "./dist/mutation/index.mjs"
},
"require": {
"types": "./dist/mutation/index.d.ts",
"default": "./dist/mutation/index.js"
}
},
"./_internal": {
"react-server": "./dist/_internal/react-server.mjs",
"import": {
"types": "./dist/_internal/index.d.mts",
"default": "./dist/_internal/index.mjs"
},
"require": {
"types": "./dist/_internal/index.d.ts",
"default": "./dist/_internal/index.js"
}
}
},
"files": [
"dist",
"infinite",
"immutable",
"subscription",
"mutation",
"_internal"
],
"repository": "github:vercel/swr",
"homepage": "https://swr.vercel.app",
"license": "MIT",
"scripts": {
"prepare": "husky install",
"csb:install": "corepack enable && corepack pnpm i",
"csb:build": "pnpm build",
"clean": "rimraf ./dist && rimraf playwright-report test-result",
"watch": "bunchee -w",
"build": "bunchee",
"build:e2e": "pnpm next build e2e/site",
"attw": "attw --pack .",
"types:check": "tsc --noEmit",
"prepublishOnly": "pnpm clean && pnpm build",
"publish-beta": "pnpm publish --tag beta",
"format": "prettier --write ./**/*.{ts,tsx}",
"lint": "eslint . --ext .ts,.tsx --cache",
"lint:fix": "pnpm lint --fix",
"coverage": "jest --coverage",
"test-typing": "tsc -p test/tsconfig.json && tsc -p test/type/tsconfig.json && tsc -p test/type/suspense/tsconfig.json",
"test": "jest",
"test:build": "jest --config jest.config.build.js",
"test:e2e": "playwright test",
"run-all-checks": "pnpm types:check && pnpm lint && pnpm test-typing"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix --cache",
"prettier --write"
]
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.2",
"@edge-runtime/jest-environment": "^3.0.4",
"@eslint/compat": "^2.0.0",
"@eslint/eslintrc": "^3.3.1",
"@eslint/js": "^9.39.1",
"@playwright/test": "1.57.0",
"@swc/core": "^1.15.3",
"@swc/jest": "0.2.39",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^14.2.1",
"@type-challenges/utils": "0.1.1",
"@types/jest": "^29.5.2",
"@types/node": "^22.19.1",
"@types/react": "^19.2.7",
"@types/use-sync-external-store": "^1.5.0",
"@typescript-eslint/eslint-plugin": "8.48.0",
"@typescript-eslint/parser": "8.48.0",
"bunchee": "^6.6.2",
"eslint": "9.39.1",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-jest-dom": "5.5.0",
"eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "7.0.1",
"eslint-plugin-testing-library": "7.13.5",
"globals": "^16.5.0",
"husky": "9.1.7",
"jest": "29.7.0",
"jest-environment-jsdom": "29.7.0",
"lint-staged": "16.2.7",
"next": "16.0.10",
"prettier": "2.8.8",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^5.0.0",
"rimraf": "6.1.2",
"semver": "^7.5.1",
"swr": "workspace:*",
"typescript": "5.9.3",
"typescript-eslint": "^8.48.0"
},
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"prettier": {
"tabWidth": 2,
"semi": false,
"useTabs": false,
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "none"
},
"dependencies": {
"dequal": "^2.0.3",
"use-sync-external-store": "^1.6.0"
}
}

6
node_modules/swr/subscription/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"main": "../dist/subscription/index.js",
"module": "../dist/subscription/index.mjs",
"types": "../dist/subscription/index.d.ts",
"private": true
}