@vite-pwa/workbox-window 8.0.0 โ†’ 8.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,19 +1,21 @@
1
- Copyright 2018 Google LLC
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining a copy
4
- of this software and associated documentation files (the "Software"), to deal
5
- in the Software without restriction, including without limitation the rights
6
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
- copies of the Software, and to permit persons to whom the Software is
8
- furnished to do so, subject to the following conditions:
9
-
10
- The above copyright notice and this permission notice shall be included in
11
- all copies or substantial portions of the Software.
12
-
13
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
- THE SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2018-2025 Google LLC, 2025-PRESENT Anthony Fu <https://github.com/antfu>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
package/package.json CHANGED
@@ -1,18 +1,21 @@
1
1
  {
2
2
  "name": "@vite-pwa/workbox-window",
3
3
  "type": "module",
4
- "version": "8.0.0",
5
- "packageManager": "pnpm@8.13.1",
4
+ "version": "8.0.2",
6
5
  "description": "Simplifies communications with Workbox packages running in the service worker",
7
6
  "author": "Google's Web DevRel Team, Vite PWA's Team",
7
+ "maintainers": [
8
+ "userquin <userquin@gmail.com>"
9
+ ],
8
10
  "license": "MIT",
9
11
  "funding": "https://github.com/sponsors/antfu",
10
- "homepage": "https://github.com/vite-pwa/workbox-window-es#readme",
12
+ "homepage": "https://github.com/vite-pwa/workbox#readme",
11
13
  "repository": {
12
14
  "type": "git",
13
- "url": "https://github.com/vite-pwa/workbox-window-es.git"
15
+ "url": "git+https://github.com/vite-pwa/workbox.git",
16
+ "directory": "packages/workbox/window"
14
17
  },
15
- "bugs": "https://github.com/vite-pwa/workbox-window-es/issues",
18
+ "bugs": "https://github.com/vite-pwa/workbox/issues",
16
19
  "keywords": [
17
20
  "workbox",
18
21
  "workboxjs",
@@ -24,34 +27,29 @@
24
27
  ],
25
28
  "sideEffects": false,
26
29
  "exports": {
27
- ".": {
28
- "import": "./dist/index.js",
29
- "require": "./dist/index.cjs"
30
+ ".": "./dist/index.js",
31
+ "./esm-sw-detector": "./dist/esm-sw-detector.js",
32
+ "./package.json": "./package.json"
33
+ },
34
+ "types": "./dist/index.d.ts",
35
+ "typesVersions": {
36
+ "*": {
37
+ "esm-sw-detector": [
38
+ "./dist/esm-sw-detector.d.ts"
39
+ ]
30
40
  }
31
41
  },
32
- "main": "dist/index.cjs",
33
- "module": "dist/index.js",
34
- "types": "dist/index.d.ts",
35
42
  "files": [
36
43
  "dist"
37
44
  ],
38
- "scripts": {
39
- "build": "tsup src/index.ts --dts --target esnext --format esm,cjs",
40
- "lint": "eslint .",
41
- "lint-fix": "nr lint --fix",
42
- "prepublishOnly": "npm run build",
43
- "release": "bumpp && npm publish --access=public"
45
+ "dependencies": {
46
+ "@types/trusted-types": "^2.0.7"
44
47
  },
45
- "dependencies": {},
46
- "devDependencies": {
47
- "@antfu/eslint-config": "^0.43.1",
48
- "@antfu/ni": "^0.21.12",
49
- "@types/node": "^18.15.3",
50
- "@types/trusted-types": "^2.0.7",
51
- "@typescript-eslint/eslint-plugin": "^6.13.2",
52
- "bumpp": "^9.2.0",
53
- "eslint": "^8.55.0",
54
- "tsup": "^8.0.1",
55
- "typescript": "^5.3.3"
48
+ "publishConfig": {
49
+ "access": "public"
50
+ },
51
+ "scripts": {
52
+ "build": "tsdown --config-loader unrun",
53
+ "test:typecheck": "tsc --noEmit"
56
54
  }
57
- }
55
+ }
package/README.md DELETED
@@ -1,80 +0,0 @@
1
- <h1 align='center'>
2
- ESM build of <a href='https://www.npmjs.com/package/workbox-window' target="__blank">workbox-window</a>
3
- </h1>
4
- <p align='center'>
5
- <a href='https://www.npmjs.com/package/@vite-pwa/workbox-window' target="__blank">
6
- <img src='https://img.shields.io/npm/v/@vite-pwa/workbox-window?color=33A6B8&label=' alt="NPM version">
7
- </a>
8
- <a href="https://www.npmjs.com/package/@vite-pwa/workbox-window" target="__blank">
9
- <img alt="NPM Downloads" src="https://img.shields.io/npm/dm/@vite-pwa/workbox-window?color=476582&label=">
10
- </a>
11
- <a href="https://developers.google.com/web/tools/workbox/modules/workbox-window" target="__blank">
12
- <img src="https://img.shields.io/static/v1?label=&message=docs%20%26%20guides&color=2e859c" alt="Docs & Guides">
13
- </a>
14
- <br>
15
- <a href="https://github.com/vite-pwa/workbox-window-es" target="__blank">
16
- <img alt="GitHub stars" src="https://img.shields.io/github/stars/vite-pwa/workbox-window-es?style=social">
17
- </a>
18
- </p>
19
-
20
- <br>
21
-
22
- <p align="center">
23
- <a href="https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg">
24
- <img src='https://cdn.jsdelivr.net/gh/antfu/static/sponsors.svg'/>
25
- </a>
26
- </p>
27
-
28
-
29
- ## ๐Ÿš€ Features
30
-
31
- - ๐Ÿ“– [**Documentation & guides**](https://vite-pwa-org.netlify.app/)
32
- - ๐Ÿ‘Œ **Zero-Config**: sensible built-in default configs for common use cases
33
- - ๐Ÿ”ฉ **Extensible**: expose the full ability to customize the behavior of the plugin
34
- - ๐Ÿฆพ **Type Strong**: written in [TypeScript](https://www.typescriptlang.org/)
35
- - ๐Ÿ”Œ **Offline Support**: generate service worker with offline support (via Workbox)
36
- - โšก **Fully tree shakable**: auto-inject Web App Manifest
37
- - ๐Ÿ’ฌ **Prompt for new content**: built-in support for Vanilla JavaScript, Vue 3, React, Svelte, SolidJS and Preact
38
- - โš™๏ธ **Stale-while-revalidate**: automatic reload when new content is available
39
- - โœจ **Static assets handling**: configure static assets for offline support
40
- - ๐Ÿž **Development Support**: debug your custom service worker logic as you develop your application
41
- - ๐Ÿ› ๏ธ **Versatile**: integration with meta-frameworks: [รฎles](https://github.com/ElMassimo/iles), [SvelteKit](https://github.com/sveltejs/kit), [VitePress](https://github.com/vuejs/vitepress), [Astro](https://github.com/withastro/astro), and [Nuxt 3](https://github.com/nuxt/nuxt)
42
- - ๐Ÿ’ฅ **PWA Assets Generator**: generate all the PWA assets from a single command and a single source image
43
-
44
- ## ๐Ÿ› ๏ธ @vite-pwa/workbox-window
45
-
46
- ESM build of [workbox-window](https://www.npmjs.com/package/workbox-window).
47
-
48
- This module's documentation can be found at https://developers.google.com/web/tools/workbox/modules/workbox-window.
49
-
50
- `@vite-pwa/workbox-window` includes missing `installing` event in `Workbox` class.
51
-
52
- ## ๐Ÿ“ฆ Install
53
-
54
- ```sh
55
- # pnpm
56
- pnpm add @vite-pwa/workbox-window
57
-
58
- # npm
59
- npm i @vite-pwa/workbox-window
60
-
61
- # yarn
62
- yarn add @vite-pwa/workbox-window
63
- ```
64
-
65
- ## ๐Ÿฆ„ Usage
66
-
67
- ```js
68
- // ESM
69
- import { Workbox } from '@vite-pwa/workbox-window'
70
- ```
71
-
72
- ```js
73
- // CommonJS
74
- const { Workbox } = require('@vite-pwa/workbox-window')
75
- ```
76
-
77
- ## ๐Ÿ“„ License
78
-
79
- [MIT](./LICENSE)
80
-