Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(clean-slate): reimagined certain packages, removed GenerateSW #1

Merged
merged 29 commits into from
Dec 3, 2023

Conversation

DuCanhGH
Copy link
Member

@DuCanhGH DuCanhGH commented Nov 27, 2023

Changes:

  • Reimagined @serwist/next.
    • Removed various options.
      • Removed publicExcludes, buildExcludes. Use exclude instead.
      • Removed aggressiveFrontEndNavCaching to reassess its usefulness.
      • Removed browserslist.
      • Custom workers have been removed. You should use swSrc.
      • Removed extendDefaultRuntimeCaching. Use the spread syntax instead (use import { defaultCache } from "@serwist/next/browser" to import the default runtimeCaching array).
      • Temporarily removed fallbacks to investigate module-friendly alternatives.
      • Removed swcMinify.
      • Removed watchWorkersInDev.
      • Removed cacheStartUrl, dynamicStartUrl, and dynamicStartUrl. These shall be re-added only when their use cases are made more clear to me.
    • Merged workboxOptions with the plugin's options.
    • Removed swc-loader, terser-minify, webpack-builders,... (we now leverage ChildCompilationPlugin to compile workers - this change will be backported to @ducanh2912/next-pwa@10)
    • Removed the ability to use GenerateSW. @serwist/sw.installSerwist is provided as a replacement.
    • swSrc is now a required property.
    • Moved minimum support Next.js version from 11.0.0 to 14.0.0.
  • Removed GenerateSW (replaced by @serwist/sw.installSerwist).
    • See examples/next-basic/app/sw.ts to see how installSerwist should be used.
  • Repurposed @serwist/sw.
    • The old package might be reintroduced if there's demand.
  • Note: This is just the initial release, and there is still a lot of ground to cover (a lot of legacy code to be removed, a lot of features to be reintroduced,...). Here's to a bright future for the project :_)

@DuCanhGH DuCanhGH changed the title refactor(clean-slate): removed GenerateSW, repurposed @serwist/sw refactor(clean-slate): reimagined serwist/next, repurposed serwist/sw, and removed GenerateSW Nov 30, 2023
@DuCanhGH DuCanhGH changed the title refactor(clean-slate): reimagined serwist/next, repurposed serwist/sw, and removed GenerateSW refactor(clean-slate): reimagined some packages, removed GenerateSW Nov 30, 2023
@DuCanhGH DuCanhGH changed the title refactor(clean-slate): reimagined some packages, removed GenerateSW refactor(clean-slate): reimagined certain packages, removed GenerateSW Nov 30, 2023
@DuCanhGH DuCanhGH merged commit 6decf96 into main Dec 3, 2023
2 checks passed
@DuCanhGH DuCanhGH deleted the refactor-rename branch December 4, 2023 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant