UNPKG

@rest-hooks/ssr

Version:

Server Side Rendering helpers for Rest Hooks

149 lines (148 loc) 3.99 kB
{ "name": "@rest-hooks/ssr", "version": "0.7.11", "description": "Server Side Rendering helpers for Rest Hooks", "sideEffects": false, "main": "dist/index.js", "react-native": "legacy/index.js", "module": "legacy/index.js", "unpkg": "dist/index.umd.min.js", "types": "lib/index.d.ts", "typesVersions": { ">=4.0": { "": [ "lib/index.d.ts" ], "nextjs": [ "lib/nextjs/index.d.ts" ], "*": [ "lib/index.d.ts" ] }, ">=3.4": { "": [ "ts3.4/index.d.ts" ], "nextjs": [ "ts3.4/nextjs/index.d.ts" ], "*": [ "ts3.4/index.d.ts" ] } }, "exports": { ".": { "module": "./lib/index.js", "import": "./node.mjs", "require": "./dist/index.js", "default": "./lib/index.js" }, "./nextjs": { "types": "./lib/nextjs/index.d.ts", "default": "./lib/nextjs/index.js" }, "./package.json": "./package.json" }, "type": "module", "engines": { "node": "^12.17 || ^13.7 || >=14" }, "files": [ "src", "dist", "lib", "node.mjs", "legacy", "ts3.4", "LICENSE", "README.md" ], "scripts": { "build:lib": "NODE_ENV=production BROWSERSLIST_ENV='2020' babel --root-mode upward src --out-dir lib --extensions '.ts,.tsx,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'", "build:legacy:lib": "NODE_ENV=production BROWSERSLIST_ENV='2018' babel --root-mode upward src --out-dir legacy --extensions '.ts,.tsx,.js' --ignore '**/__tests__/**' --ignore '**/*.d.ts'", "build:js:node": "BROWSERSLIST_ENV=node12 rollup -c", "build:js:browser": "BROWSERSLIST_ENV=legacy rollup -c", "build:bundle": "run-s build:js:\\* && echo '{\"type\":\"commonjs\"}' > dist/package.json", "build:clean": "rimraf lib ts3.4 legacy dist *.tsbuildinfo", "build:legacy-types": "yarn run downlevel-dts lib ts3.4", "build": "yarn run build:lib && yarn run build:legacy:lib && yarn run build:bundle", "dev": "yarn run build:lib -w", "prepare": "yarn run build:lib", "prepack": "yarn prepare", "prepublishOnly": "yarn run build:bundle && yarn run build:legacy:lib" }, "keywords": [ "ssr", "server side rendering", "universal", "suspense", "nextjs", "query", "mutation", "fetch", "data", "cache", "subscription", "model", "typescript", "data fetching", "data cache", "api", "normalized cache", "subject pattern", "graph", "swr", "endpoint", "networking", "react" ], "author": "Nathaniel Tucker <me@ntucker.me> (https://github.com/ntucker)", "license": "Apache-2.0", "homepage": "https://resthooks.io/docs/guides/ssr", "repository": { "type": "git", "url": "git+ssh://git@github.com:data-client/rest-hooks.git", "directory": "packages/ssr" }, "bugs": { "url": "https://github.com/data-client/rest-hooks/issues" }, "dependencies": { "@babel/runtime": "^7.17.0" }, "peerDependencies": { "@rest-hooks/react": "^6.0.0 || ^7.0.0", "@rest-hooks/redux": "^6.3.0 || ^7.0.0", "@types/react": "^16.8.4 || ^17.0.0 || ^18.0.0-0", "next": ">=12.0.0", "react": "^16.8.4 || ^17.0.0 || ^18.0.0-0", "redux": "^4.0.0" }, "peerDependenciesMeta": { "@types/react": { "optional": true }, "next": { "optional": true } }, "devDependencies": { "@babel/cli": "7.21.0", "@babel/core": "7.21.3", "@types/babel__core": "^7", "downlevel-dts": "^0.10.0", "next": "^13.0.4", "npm-run-all": "^4.1.5", "rollup": "2.79.1", "rollup-plugin-babel": "^4.4.0", "rollup-plugin-commonjs": "^10.1.0", "rollup-plugin-filesize": "^9.1.2", "rollup-plugin-json": "^4.0.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-replace": "^2.2.0", "rollup-plugin-terser": "^7.0.2" }, "gitHead": "a1c7373956f3fd885390e13840553c920da4a62f" }