{"_id":"@ducanh2912/next-sw","_rev":"4-d4cf668ac87beab6435d30426bcfdf24","name":"@ducanh2912/next-sw","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0-alpha.1":{"name":"@ducanh2912/next-sw","version":"1.0.0-alpha.1","type":"module","description":"PWA for Next.js, powered by pure ServiceWorker.","repository":{"type":"git","url":"git+https://github.com/DuCanhGH/next-pwa.git"},"author":{"name":"DuCanhGH"},"license":"SEE LICENSE IN LICENSE","source":"./src/index.ts","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/next-sw.cjs","default":"./dist/next-sw.module.js"},"./workbox":{"types":"./dist/sw-entry.d.ts"}},"main":"./dist/next-sw.cjs","module":"./dist/next-sw.module.js","types":"./dist/index.d.ts","typesVersions":{"*":{"workbox":["./dist/sw-entry.d.ts"]}},"keywords":["next.js","pwa","web","serviceworker"],"dependencies":{"@swc/core":"1.3.57","clean-webpack-plugin":"4.0.0","swc-loader":"0.2.3","terser-webpack-plugin":"5.3.8"},"devDependencies":{"@rollup/plugin-json":"6.0.0","@rollup/plugin-node-resolve":"15.0.2","@rollup/plugin-terser":"0.4.1","@rollup/plugin-typescript":"11.1.0","@types/node":"20.1.1","chalk":"5.2.0","next":"13.4.1","rollup":"3.21.5","typescript":"5.1.0-dev.20230509","webpack":"5.82.0","tsconfig":"0.0.0","utils":"0.0.0"},"peerDependencies":{"next":">=9.1.0"},"scripts":{"dev":"rimraf dist && rollup -c -w","build":"rimraf dist && cross-env NODE_ENV=production rollup -c --compact","lint":"eslint src --cache --cache-location ./node_modules/.cache/eslint --ext ts,tsx,js,jsx,cjs,mjs","typecheck":"tsc"},"bugs":{"url":"https://github.com/DuCanhGH/next-pwa/issues"},"homepage":"https://github.com/DuCanhGH/next-pwa#readme","_id":"@ducanh2912/next-sw@1.0.0-alpha.1","_integrity":"sha512-P8jm3RWmM6/CEO12im+aFSucrN0OVGiCoquLVxsqlSmrYLc5ttNMS5JE6zxhd4ool5xy/QRBbzf9M4QF+hddXw==","_resolved":"/tmp/9b87911c7ee4600db3f856b50f715c9e/ducanh2912-next-sw-1.0.0-alpha.1.tgz","_from":"file:ducanh2912-next-sw-1.0.0-alpha.1.tgz","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-P8jm3RWmM6/CEO12im+aFSucrN0OVGiCoquLVxsqlSmrYLc5ttNMS5JE6zxhd4ool5xy/QRBbzf9M4QF+hddXw==","shasum":"0dd126e635c68276d9a4e6176d7fa5b0855527c1","tarball":"https://registry.npmjs.org/@ducanh2912/next-sw/-/next-sw-1.0.0-alpha.1.tgz","fileCount":21,"unpackedSize":69007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDgv8I/MkiK4fANVbdD9bV1dtiA4GY2fBIyhCaHXYtEQAiEAt0B2FYQK81NtFFKnZYlTyZl+/GyLiaieLmTKT6uUwEg="}]},"_npmUser":{"name":"ducanh2912","email":"ngoducanh2912@gmail.com"},"directories":{},"maintainers":[{"name":"ducanh2912","email":"ngoducanh2912@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-sw_1.0.0-alpha.1_1683647761032_0.13525246419782544"},"_hasShrinkwrap":false,"deprecated":"This package has been deprecated and is no longer maintained. Please use @serwist/next"},"1.0.0":{"name":"@ducanh2912/next-sw","version":"1.0.0","type":"module","description":"PWA for Next.js, powered by pure ServiceWorker.","repository":{"type":"git","url":"git+https://github.com/DuCanhGH/next-pwa.git"},"author":{"name":"DuCanhGH"},"license":"MIT","source":"./src/index.ts","exports":{".":{"types":"./dist/index.d.ts","require":"./dist/next-sw.cjs","default":"./dist/next-sw.module.js"},"./workbox":{"types":"./dist/sw-entry.d.ts"}},"main":"./dist/next-sw.cjs","module":"./dist/next-sw.module.js","types":"./dist/index.d.ts","typesVersions":{"*":{"workbox":["./dist/sw-entry.d.ts"]}},"keywords":["next.js","pwa","web","serviceworker"],"dependencies":{"@swc/core":"1.3.57","clean-webpack-plugin":"4.0.0","swc-loader":"0.2.3","terser-webpack-plugin":"5.3.8"},"devDependencies":{"@rollup/plugin-json":"6.0.0","@rollup/plugin-node-resolve":"15.0.2","@rollup/plugin-terser":"0.4.1","@rollup/plugin-typescript":"11.1.0","@types/node":"20.1.1","chalk":"5.2.0","next":"13.4.1","rollup":"3.21.5","typescript":"5.1.0-dev.20230509","webpack":"5.82.0","tsconfig":"0.0.0","utils":"0.0.0"},"peerDependencies":{"next":">=9.1.0"},"scripts":{"dev":"rimraf dist && rollup -c -w","build":"rimraf dist && cross-env NODE_ENV=production rollup -c --compact","lint":"eslint src --cache --cache-location ./node_modules/.cache/eslint --ext ts,tsx,js,jsx,cjs,mjs","typecheck":"tsc"},"bugs":{"url":"https://github.com/DuCanhGH/next-pwa/issues"},"homepage":"https://github.com/DuCanhGH/next-pwa#readme","_id":"@ducanh2912/next-sw@1.0.0","_integrity":"sha512-INnDoy3Z0Hb5h/3QJ6gAaJxfgCR2sSRQT5REG1X4XKzfgmx8tqU4jzjJJZlhhhAGu9Qc0m3zJrfWncs4ei536g==","_resolved":"/tmp/af626bb83fe1e9deb602805eb613fcb8/ducanh2912-next-sw-1.0.0.tgz","_from":"file:ducanh2912-next-sw-1.0.0.tgz","_nodeVersion":"18.16.0","_npmVersion":"9.6.6","dist":{"integrity":"sha512-INnDoy3Z0Hb5h/3QJ6gAaJxfgCR2sSRQT5REG1X4XKzfgmx8tqU4jzjJJZlhhhAGu9Qc0m3zJrfWncs4ei536g==","shasum":"7acc5666566bfb1838d362146e53820aed86f78a","tarball":"https://registry.npmjs.org/@ducanh2912/next-sw/-/next-sw-1.0.0.tgz","fileCount":21,"unpackedSize":68980,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ducanh2912%2fnext-sw@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCNlBVUeaSlqKF8H1OQRE3H4I3URH0FFRpgAmVCtz67EQIhAJYCKaNIG2muiUlXHqgneyr7Tnc48h8XnK5CABQ6FYhQ"}]},"_npmUser":{"name":"ducanh2912","email":"ngoducanh2912@gmail.com"},"directories":{},"maintainers":[{"name":"ducanh2912","email":"ngoducanh2912@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-sw_1.0.0_1683649369380_0.6952967856693308"},"_hasShrinkwrap":false,"deprecated":"This package has been deprecated and is no longer maintained. Please use @serwist/next"},"1.1.0":{"name":"@ducanh2912/next-sw","version":"1.1.0","type":"module","description":"PWA for Next.js, powered by pure ServiceWorker.","repository":{"type":"git","url":"git+https://github.com/DuCanhGH/next-pwa.git"},"author":{"name":"DuCanhGH"},"license":"MIT","source":"./src/index.ts","exports":{".":{"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"},"default":{"types":"./dist/index.module.d.ts","default":"./dist/index.module.js"}}},"main":"./dist/index.cjs","module":"./dist/index.module.js","types":"./dist/index.module.d.ts","keywords":["next.js","pwa","web","serviceworker"],"dependencies":{"clean-webpack-plugin":"4.0.0","terser-webpack-plugin":"5.3.9"},"devDependencies":{"@rollup/plugin-json":"6.0.0","@rollup/plugin-node-resolve":"15.1.0","@rollup/plugin-terser":"0.4.3","@rollup/plugin-typescript":"11.1.1","@types/node":"20.2.6","chalk":"5.2.0","next":"latest","react":"18.2.0","react-dom":"18.2.0","rollup":"3.24.1","rollup-plugin-dts":"5.3.0","typescript":"5.2.0-dev.20230610","webpack":"5.86.0","utils":"0.0.0"},"peerDependencies":{"next":">=9.1.0"},"scripts":{"dev":"rollup --config --watch","build":"rimraf dist && cross-env NODE_ENV=production rollup --config --compact","lint":"eslint src --ext ts,tsx,js,jsx,cjs,mjs","typecheck":"tsc"},"bugs":{"url":"https://github.com/DuCanhGH/next-pwa/issues"},"homepage":"https://github.com/DuCanhGH/next-pwa#readme","_id":"@ducanh2912/next-sw@1.1.0","_integrity":"sha512-gvaazI+kPmobofNFnofzhMgJwx5wMMw21Q1IHFkXWxZOoINYpo1gltCrV9DpZ3lk1KxMaGvJdRBUMRoa/38yUQ==","_resolved":"/tmp/6ef77450aad8edceeb47e23acbb196f8/ducanh2912-next-sw-1.1.0.tgz","_from":"file:ducanh2912-next-sw-1.1.0.tgz","_nodeVersion":"18.16.0","_npmVersion":"9.7.1","dist":{"integrity":"sha512-gvaazI+kPmobofNFnofzhMgJwx5wMMw21Q1IHFkXWxZOoINYpo1gltCrV9DpZ3lk1KxMaGvJdRBUMRoa/38yUQ==","shasum":"3b60dc3aa9c9e86718e3f6afeb6aeb21c605335a","tarball":"https://registry.npmjs.org/@ducanh2912/next-sw/-/next-sw-1.1.0.tgz","fileCount":11,"unpackedSize":78425,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ducanh2912%2fnext-sw@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCm1FsOCwxTJN7PDug0X91DFTga+9drb83rGZFRhB9C/wIgFHXFdznBTq24kqSKcJ537frdm2vgwNbNxXLsBp95Rvc="}]},"_npmUser":{"name":"ducanh2912","email":"ngoducanh2912@gmail.com"},"directories":{},"maintainers":[{"name":"ducanh2912","email":"ngoducanh2912@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/next-sw_1.1.0_1687241674760_0.682925913624784"},"_hasShrinkwrap":false,"deprecated":"This package has been deprecated and is no longer maintained. Please use @serwist/next"}},"time":{"created":"2023-05-09T15:56:00.984Z","1.0.0-alpha.1":"2023-05-09T15:56:01.236Z","modified":"2024-01-11T05:59:43.430Z","1.0.0":"2023-05-09T16:22:49.597Z","1.1.0":"2023-06-20T06:14:34.976Z"},"maintainers":[{"name":"ducanh2912","email":"ngoducanh2912@gmail.com"}],"description":"PWA for Next.js, powered by pure ServiceWorker.","homepage":"https://github.com/DuCanhGH/next-pwa#readme","keywords":["next.js","pwa","web","serviceworker"],"repository":{"type":"git","url":"git+https://github.com/DuCanhGH/next-pwa.git"},"author":{"name":"DuCanhGH"},"bugs":{"url":"https://github.com/DuCanhGH/next-pwa/issues"},"license":"MIT","readme":"> **NOTE**: This package is not ready at the moment. Please use `@ducanh2912/next-pwa` instead.\n\n# Zero-config [PWA](https://web.dev/learn/pwa/) plugin for [Next.js](https://nextjs.org/)\n\nThis plugin is powered by [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API) and other good stuff.\n\n[![Build Size](https://img.shields.io/bundlephobia/minzip/@ducanh2912/next-sw?label=Bundle%20size&style=flat&color=success)](https://bundlephobia.com/result?p=@ducanh2912/next-sw)\n[![Version](https://img.shields.io/npm/v/@ducanh2912/next-sw?style=flat&color=success)](https://www.npmjs.com/package/@ducanh2912/next-sw)\n\n**Features**\n\n- 0️⃣ Zero-config for registering and generating service worker out of the box\n- ✨ Optimized precaching and runtime caching (in progress)\n- 💯 Maximal Lighthouse score (not guaranteed for now)\n- 🎈 Easy-to-understand examples\n- 📦 Uses [Service Worker](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API)\n- 🛠 Configurable (more in future!)\n- 🚀 Spin up a [GitPod](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/) and try out examples in rocket speed (or use `create-next-app` to create a brand new Next.js app with them (for example, run `pnpm create next-app --example https://github.com/DuCanhGH/next-pwa/tree/master/examples/workboxless` to create a new Next.js app using the `basic` example))\n\n> **NOTE 1** - `next-pwa` version 2.0.0+ should only work with `Next.js` 9.1+, and static files should only be served through the `public` directory.\n>\n> **NOTE 2** - `@ducanh2912/next-sw` currently doesn't support Turbopack, but I will start working on it as soon as we get our hands on Turbopack.\n\n---\n\n[![Open in Gitpod](https://img.shields.io/badge/Open%20In-Gitpod.io-%231966D2?style=for-the-badge&logo=gitpod)](https://gitpod.io/#https://github.com/DuCanhGH/next-pwa/)\n\n## How is it different from `@ducanh2912/next-pwa`?\n\nIt directly makes use of the `ServiceWorker` API instead of `workbox`. Both are supported, so just make a pick! If you are not sure, you may want to use `@ducanh2912/next-pwa` instead as it allows you to customize your service worker further.\n\n## Reference\n\n1. [ServiceWorker, MessageChannel, & postMessage](https://ponyfoo.com/articles/serviceworker-messagechannel-postmessage) by [Nicolás Bevacqua](https://ponyfoo.com/contributors/ponyfoo)\n2. [The service worker lifecycle](https://developers.google.com/web/fundamentals/primers/service-workers/lifecycle)\n3. [6 Tips to make your iOS PWA feel like a native app](https://www.netguru.com/codestories/pwa-ios)\n4. [Make your PWA available on Google Play Store](https://www.netguru.com/codestories/make-your-pwa-available-on-google-play-store)\n","readmeFilename":"README.md"}