{
  "name": "swr",
  "version": "2.5.1",
  "description": "React Hooks library for remote data fetching",
  "keywords": [
    "swr",
    "react",
    "hooks",
    "request",
    "cache",
    "fetch"
  ],
  "packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319",
  "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": {
        "types": "./dist/index/react-server.d.mts",
        "default": "./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/index.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 test/e2e/playwright-report test/e2e/test-results test/e2e/site/.next",
    "watch": "bunchee -w",
    "build": "bunchee",
    "build:e2e": "pnpm --filter swr-e2e-site build",
    "dev:e2e": "pnpm --filter swr-e2e-site dev",
    "attw": "attw --pack .",
    "types:check": "tsc --noEmit",
    "prepublishOnly": "pnpm clean && pnpm build",
    "publish-beta": "pnpm publish --tag beta",
    "format": "oxfmt '**/*.ts' '**/*.tsx'",
    "format:check": "oxfmt --check '**/*.ts' '**/*.tsx'",
    "lint": "oxlint .",
    "lint:fix": "oxlint . --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 -c test/e2e/playwright.config.ts",
    "test:e2e:dev": "E2E_MODE=dev playwright test -c test/e2e/playwright.config.ts",
    "run-all-checks": "pnpm types:check && pnpm lint && pnpm test-typing"
  },
  "lint-staged": {
    "*.{ts,tsx}": [
      "oxlint --fix",
      "oxfmt"
    ]
  },
  "devDependencies": {
    "@arethetypeswrong/cli": "^0.18.2",
    "@edge-runtime/jest-environment": "^4.0.0",
    "@playwright/test": "1.57.0",
    "@swc/core": "^1.15.3",
    "@swc/jest": "0.2.39",
    "@testing-library/dom": "^10.4.1",
    "@testing-library/jest-dom": "^6.9.1",
    "@testing-library/react": "^16.3.0",
    "@type-challenges/utils": "0.1.1",
    "@types/jest": "^30.0.0",
    "@types/node": "^24.12.4",
    "@types/react": "^19.2.7",
    "@types/use-sync-external-store": "^1.5.0",
    "@typescript/typescript6": "6.0.2",
    "bunchee": "^7.0.0",
    "husky": "9.1.7",
    "jest": "30.2.0",
    "jest-environment-jsdom": "29.7.0",
    "lint-staged": "16.2.7",
    "oxfmt": "^0.57.0",
    "oxlint": "^1.72.0",
    "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": "7.0.2"
  },
  "peerDependencies": {
    "react": "^16.11.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
  },
  "dependencies": {
    "dequal": "^2.0.3",
    "use-sync-external-store": "^1.6.0"
  }
}
