Socket
Socket
Sign inDemoInstall

offline-plugin

Package Overview
Dependencies
12
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
46
8Next

4.2.0

Diff

nekr
published 4.1.0 •

nekr
published 4.0.0 •

Changelog

Source

4.0.0 - 4.5.3

  • relativePaths is now automatically set to false when publicPath is used
  • publicPath now uses webpack.config.js's output.publicPath by default (when not set in OfflinePlugin itself)
  • Added AppCache.output which is replacement for AppCache.directory. The last is deprecated now
  • Added ServiceWorker.publicPath and AppCache.publicPath
  • Added :externals: keyword for caches. When used, keyword is replaced with URLs listed in externals option
  • caches: 'all' is now equivalent of caches: { main: [':rest:', ':externals:'] }. In other words, externals URLs are now included in caches by default
  • Default options of offline-plugin are now exposed as require('offline-plugin').defaultOptions
  • ignoreSearch isn't applied to assets added with externals anymore. i.e. full URLs with ?query can now be added to the caches
  • Added responseStrategy option. Thanks to @MoOx. #112
  • Added ServiceWorker.cacheName option. Useful (but very dangerous) when you need to run more than one project on the same domain
  • Make updateStrategy default to 'changed'
  • Added ServiceWorker.prefetchRequest option
  • Plugin now outputs its version to generated ServiceWorker/AppCache files
  • Implemented cacheMaps option
  • Made AppCache to not include cross origin URLs by default (because they don't work there on HTTPS). Could be returned back with AppCache.includeCrossOrigin = true
  • Dropped Node 0.10, Node 0.12 and IO.js support
  • Updated minimatch to 3.*
  • Add AppVeyor CI tests
nekr
published 3.4.2 •

nekr
published 3.4.1 •

nekr
published 3.4.0 •

Changelog

Source

3.4.0

  • Added ServiceWorker.navigateFallbackURL option (see #71)
  • Added warning about development mode in runtime.js when used without OfflinePlugin in webpack.config.js (see #74)
nekr
published 3.3.1 •

nekr
published 3.3.0 •

Changelog

Source

3.3.0

  • Fixed absolute URLs being prefixed with relative path when relativePaths: true is used (#39, #60)
  • Added scope option to ServiceWorker (#19). See ServiceWorker.register docs.
nekr
published 3.2.1 •

nekr
published 3.2.0 •

Changelog

Source

3.0.0 - 3.2.0

  • All assets are now requested cache-bust query parameter (__uncache=${ Date.now() })
  • Assets matching in caches now ignores search (query) path of URLs
  • Rename scope option to publicPath (scope is deprecated now and will produce warnings upon use)
  • Make publicPath: '' (empty string) by default
  • Make relativePaths: true by default
  • Cache sections 'additional' and 'optional' are now allowed only when updateStrategy option is set to 'changed'
  • changed is now default updateStrategy and hash strategy is gone. offline-plugin now uses webpack's build hashes to apply change update strategy even when generate file names are the same. Issue 6. More details about change in docs.
  • Any of updateStrategy is now using version option for its version tag
  • version now is not set by default and returns (when not set, e.g. default) compilation hash for updateStrategy: 'changed' and version for updateStrategy: 'all'
  • version now has interpolation value, use [hash] to insert compilation hash to your version string
  • install() method signature now is install(options) (callbacks are removed)
  • Runtime events are not implemented for ServiceWorker (and some for AppCache): onUpdating, onUpdateReady, onUpdated, onInstalled.
    Example: runtime.install({ onInstalled: () => ... })
  • Added applyUpdate() method to runtime
  • Absolute URLs can now be specified in caches as any other assets (they are required to be marked as externals)
  • Added basic test and Travis CI
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc