methanol 0.0.26 → 0.0.27

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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/src/client/sw.js +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "methanol",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Static site generator powered by rEFui and MDX",
5
5
  "main": "./index.js",
6
6
  "type": "module",
@@ -31,21 +31,21 @@
31
31
  "@stefanprobst/rehype-extract-toc": "^3.0.0",
32
32
  "@wooorm/starry-night": "^3.9.0",
33
33
  "chokidar": "^5.0.0",
34
- "esbuild": "^0.27.2",
34
+ "esbuild": "^0.28.0",
35
35
  "fast-glob": "^3.3.3",
36
36
  "gray-matter": "^4.0.3",
37
37
  "hast-util-is-element": "^3.0.0",
38
- "htmlparser2": "^10.1.0",
38
+ "htmlparser2": "^12.0.0",
39
39
  "json5": "^2.2.3",
40
- "null-prototype-object": "^1.2.5",
41
- "picomatch": "^4.0.3",
42
- "refui": "^0.17.1",
40
+ "null-prototype-object": "^1.2.7",
41
+ "picomatch": "^4.0.4",
42
+ "refui": "^0.17.2",
43
43
  "refurbish": "^0.1.8",
44
44
  "rehype-slug": "^6.0.0",
45
45
  "rehype-starry-night": "^2.2.0",
46
46
  "remark-gfm": "^4.0.1",
47
47
  "unist-util-visit": "^5.1.0",
48
- "vite": "^7.3.1",
48
+ "vite": "^8.0.10",
49
49
  "workbox-core": "^7.4.0",
50
50
  "workbox-routing": "^7.4.0",
51
51
  "workbox-strategies": "^7.4.0",
package/src/client/sw.js CHANGED
@@ -25,8 +25,6 @@ const MANIFEST_HASH = '__METHANOL_MANIFEST_HASH__'
25
25
  const DEFAULT_BATCH_SIZE = 5
26
26
  const REVISION_HEADER = 'X-Methanol-Revision'
27
27
 
28
- self.skipWaiting()
29
-
30
28
  const resolveBasePrefix = cached(() => normalizeBasePrefix(import.meta.env?.BASE_URL || '/'))
31
29
 
32
30
  const withBase = cachedStr((path) => {
@@ -126,6 +124,7 @@ async function getManifestIndex() {
126
124
 
127
125
  // Precache prioritized entries during install
128
126
  self.addEventListener('install', (event) => {
127
+ self.skipWaiting()
129
128
  event.waitUntil(
130
129
  (async () => {
131
130
  try {