Skip to content

Commit

Permalink
Upgrade to workbox 5.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowwalker committed Feb 6, 2020
1 parent b7c4212 commit 5429d22
Show file tree
Hide file tree
Showing 13 changed files with 1,344 additions and 19,477 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ yarn-error.log

**/public/precache.*.*.js
**/public/sw.js
examples/**/yarn.lock
examples/**/package-lock.json
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ package-lock.json
yarn.lock
yarn-error.log
examples/
.gitignore
.gitattributes
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Wei Wang [email protected] https://weiw.io
Copyright (c) 2019 Wei Wang [email protected] https://weiw.io

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This plugin is powered by [workbox](https://developers.google.com/web/tools/work
- No custom server needed for Next.js 9+ [example here](https://github.com/shadowwalker/next-pwa/tree/master/examples/next-9)
- Completely offline support
- Handle PWA lifecycle events opt-in [example here](https://github.com/shadowwalker/next-pwa/tree/master/examples/lifecycle)
- Use workbox and workbox-window 4.3.1+
- Use workbox and workbox-window 5.0.0+
- Optimized precache and runtime cache
- Configurable by the same [workbox configuration options](https://developers.google.com/web/tools/workbox/modules/workbox-webpack-plugin)
- Spin up a GitPod and try out the examples in rocket speed
Expand Down
2 changes: 1 addition & 1 deletion examples/lifecycle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "next start"
},
"dependencies": {
"next": "^9.2.0",
"next": "^9.2.1",
"next-pwa": "^2.0.2",
"react": "^16.12.0",
"react-dom": "^16.12.0"
Expand Down
6,195 changes: 0 additions & 6,195 deletions examples/lifecycle/yarn.lock

This file was deleted.

4 changes: 2 additions & 2 deletions examples/minimal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"start": "cross-env NODE_ENV=production node ./index.js"
},
"dependencies": {
"cross-env": "^6.0.3",
"cross-env": "^7.0.0",
"fastify": "^2.11.0",
"fastify-compress": "^2.0.0",
"lodash": "^4.17.15",
"next": "^9.2.0",
"next": "^9.2.1",
"next-pwa": "^2.0.2",
"react": "^16.12.0",
"react-dom": "^16.12.0"
Expand Down
6,633 changes: 0 additions & 6,633 deletions examples/minimal/yarn.lock

This file was deleted.

2 changes: 1 addition & 1 deletion examples/next-9/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "next start"
},
"dependencies": {
"next": "^9.2.0",
"next": "^9.2.1",
"next-pwa": "^2.0.2",
"react": "^16.12.0",
"react-dom": "^16.12.0"
Expand Down
6,195 changes: 0 additions & 6,195 deletions examples/next-9/yarn.lock

This file was deleted.

11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@
"author": "Wei Wang <[email protected]>",
"license": "MIT",
"private": false,
"keywords": [
"nextjs",
"pwa",
"workbox",
"web",
"service-worker"
],
"dependencies": {
"clean-webpack-plugin": "^3.0.0",
"replace-in-file-webpack-plugin": "^1.0.6",
"webpack": "^4.41.5",
"workbox-webpack-plugin": "^4.3.1",
"workbox-window": "^4.3.1"
"workbox-webpack-plugin": "^5.0.0",
"workbox-window": "^5.0.0"
},
"peerDependencies": {
"next": ">=7.0.0"
Expand Down
1,770 changes: 1,324 additions & 446 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit 5429d22

Please sign in to comment.