@bookshop/hugo-engine 3.15.0-alpha.3 → 3.16.0

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.
@@ -0,0 +1,568 @@
1
+ // Copyright 2018 The Go Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style
3
+ // license that can be found in the LICENSE file.
4
+
5
+ "use strict";
6
+
7
+ (() => {
8
+ const enosys = () => {
9
+ const err = new Error("not implemented");
10
+ err.code = "ENOSYS";
11
+ return err;
12
+ };
13
+
14
+ if (!globalThis.fs) {
15
+ let outputBuf = "";
16
+ globalThis.fs = {
17
+ constants: { O_WRONLY: -1, O_RDWR: -1, O_CREAT: -1, O_TRUNC: -1, O_APPEND: -1, O_EXCL: -1 }, // unused
18
+ writeSync(fd, buf) {
19
+ outputBuf += decoder.decode(buf);
20
+ const nl = outputBuf.lastIndexOf("\n");
21
+ if (nl != -1) {
22
+ // Track logs for Bookshop to pick up later
23
+ window.hugo_wasm_logging = window.hugo_wasm_logging || [];
24
+ window.hugo_wasm_logging.push(outputBuf.substr(0, nl));
25
+
26
+ // Disable console logs from the WASM side
27
+ if (window.log_hugo_wasm) {
28
+ console.log(outputBuf.substr(0, nl));
29
+ }
30
+ outputBuf = outputBuf.substr(nl + 1);
31
+ }
32
+ return buf.length;
33
+ },
34
+ write(fd, buf, offset, length, position, callback) {
35
+ if (offset !== 0 || length !== buf.length || position !== null) {
36
+ callback(enosys());
37
+ return;
38
+ }
39
+ const n = this.writeSync(fd, buf);
40
+ callback(null, n);
41
+ },
42
+ chmod(path, mode, callback) { callback(enosys()); },
43
+ chown(path, uid, gid, callback) { callback(enosys()); },
44
+ close(fd, callback) { callback(enosys()); },
45
+ fchmod(fd, mode, callback) { callback(enosys()); },
46
+ fchown(fd, uid, gid, callback) { callback(enosys()); },
47
+ fstat(fd, callback) { callback(enosys()); },
48
+ fsync(fd, callback) { callback(null); },
49
+ ftruncate(fd, length, callback) { callback(enosys()); },
50
+ lchown(path, uid, gid, callback) { callback(enosys()); },
51
+ link(path, link, callback) { callback(enosys()); },
52
+ lstat(path, callback) { callback(enosys()); },
53
+ mkdir(path, perm, callback) { callback(enosys()); },
54
+ open(path, flags, mode, callback) { callback(enosys()); },
55
+ read(fd, buffer, offset, length, position, callback) { callback(enosys()); },
56
+ readdir(path, callback) { callback(enosys()); },
57
+ readlink(path, callback) { callback(enosys()); },
58
+ rename(from, to, callback) { callback(enosys()); },
59
+ rmdir(path, callback) { callback(enosys()); },
60
+ stat(path, callback) { callback(enosys()); },
61
+ symlink(path, link, callback) { callback(enosys()); },
62
+ truncate(path, length, callback) { callback(enosys()); },
63
+ unlink(path, callback) { callback(enosys()); },
64
+ utimes(path, atime, mtime, callback) { callback(enosys()); },
65
+ };
66
+ }
67
+
68
+ if (!globalThis.process) {
69
+ globalThis.process = {
70
+ getuid() { return -1; },
71
+ getgid() { return -1; },
72
+ geteuid() { return -1; },
73
+ getegid() { return -1; },
74
+ getgroups() { throw enosys(); },
75
+ pid: -1,
76
+ ppid: -1,
77
+ umask() { throw enosys(); },
78
+ cwd() { throw enosys(); },
79
+ chdir() { throw enosys(); },
80
+ }
81
+ }
82
+
83
+ if (!globalThis.crypto) {
84
+ throw new Error("globalThis.crypto is not available, polyfill required (crypto.getRandomValues only)");
85
+ }
86
+
87
+ if (!globalThis.performance) {
88
+ throw new Error("globalThis.performance is not available, polyfill required (performance.now only)");
89
+ }
90
+
91
+ if (!globalThis.TextEncoder) {
92
+ throw new Error("globalThis.TextEncoder is not available, polyfill required");
93
+ }
94
+
95
+ if (!globalThis.TextDecoder) {
96
+ throw new Error("globalThis.TextDecoder is not available, polyfill required");
97
+ }
98
+
99
+ const encoder = new TextEncoder("utf-8");
100
+ const decoder = new TextDecoder("utf-8");
101
+
102
+ globalThis.Go = class {
103
+ constructor() {
104
+ this.argv = ["js"];
105
+ this.env = {};
106
+ this.exit = (code) => {
107
+ if (code !== 0) {
108
+ console.warn("exit code:", code);
109
+ }
110
+ };
111
+ this._exitPromise = new Promise((resolve) => {
112
+ this._resolveExitPromise = resolve;
113
+ });
114
+ this._pendingEvent = null;
115
+ this._scheduledTimeouts = new Map();
116
+ this._nextCallbackTimeoutID = 1;
117
+
118
+ const setInt64 = (addr, v) => {
119
+ this.mem.setUint32(addr + 0, v, true);
120
+ this.mem.setUint32(addr + 4, Math.floor(v / 4294967296), true);
121
+ }
122
+
123
+ const setInt32 = (addr, v) => {
124
+ this.mem.setUint32(addr + 0, v, true);
125
+ }
126
+
127
+ const getInt64 = (addr) => {
128
+ const low = this.mem.getUint32(addr + 0, true);
129
+ const high = this.mem.getInt32(addr + 4, true);
130
+ return low + high * 4294967296;
131
+ }
132
+
133
+ const loadValue = (addr) => {
134
+ const f = this.mem.getFloat64(addr, true);
135
+ if (f === 0) {
136
+ return undefined;
137
+ }
138
+ if (!isNaN(f)) {
139
+ return f;
140
+ }
141
+
142
+ const id = this.mem.getUint32(addr, true);
143
+ return this._values[id];
144
+ }
145
+
146
+ const storeValue = (addr, v) => {
147
+ const nanHead = 0x7FF80000;
148
+
149
+ if (typeof v === "number" && v !== 0) {
150
+ if (isNaN(v)) {
151
+ this.mem.setUint32(addr + 4, nanHead, true);
152
+ this.mem.setUint32(addr, 0, true);
153
+ return;
154
+ }
155
+ this.mem.setFloat64(addr, v, true);
156
+ return;
157
+ }
158
+
159
+ if (v === undefined) {
160
+ this.mem.setFloat64(addr, 0, true);
161
+ return;
162
+ }
163
+
164
+ let id = this._ids.get(v);
165
+ if (id === undefined) {
166
+ id = this._idPool.pop();
167
+ if (id === undefined) {
168
+ id = this._values.length;
169
+ }
170
+ this._values[id] = v;
171
+ this._goRefCounts[id] = 0;
172
+ this._ids.set(v, id);
173
+ }
174
+ this._goRefCounts[id]++;
175
+ let typeFlag = 0;
176
+ switch (typeof v) {
177
+ case "object":
178
+ if (v !== null) {
179
+ typeFlag = 1;
180
+ }
181
+ break;
182
+ case "string":
183
+ typeFlag = 2;
184
+ break;
185
+ case "symbol":
186
+ typeFlag = 3;
187
+ break;
188
+ case "function":
189
+ typeFlag = 4;
190
+ break;
191
+ }
192
+ this.mem.setUint32(addr + 4, nanHead | typeFlag, true);
193
+ this.mem.setUint32(addr, id, true);
194
+ }
195
+
196
+ const loadSlice = (addr) => {
197
+ const array = getInt64(addr + 0);
198
+ const len = getInt64(addr + 8);
199
+ return new Uint8Array(this._inst.exports.mem.buffer, array, len);
200
+ }
201
+
202
+ const loadSliceOfValues = (addr) => {
203
+ const array = getInt64(addr + 0);
204
+ const len = getInt64(addr + 8);
205
+ const a = new Array(len);
206
+ for (let i = 0; i < len; i++) {
207
+ a[i] = loadValue(array + i * 8);
208
+ }
209
+ return a;
210
+ }
211
+
212
+ const loadString = (addr) => {
213
+ const saddr = getInt64(addr + 0);
214
+ const len = getInt64(addr + 8);
215
+ return decoder.decode(new DataView(this._inst.exports.mem.buffer, saddr, len));
216
+ }
217
+
218
+ const timeOrigin = Date.now() - performance.now();
219
+ this.importObject = {
220
+ _gotest: {
221
+ add: (a, b) => a + b,
222
+ },
223
+ gojs: {
224
+ // Go's SP does not change as long as no Go code is running. Some operations (e.g. calls, getters and setters)
225
+ // may synchronously trigger a Go event handler. This makes Go code get executed in the middle of the imported
226
+ // function. A goroutine can switch to a new stack if the current stack is too small (see morestack function).
227
+ // This changes the SP, thus we have to update the SP used by the imported function.
228
+
229
+ // func wasmExit(code int32)
230
+ "runtime.wasmExit": (sp) => {
231
+ sp >>>= 0;
232
+ const code = this.mem.getInt32(sp + 8, true);
233
+ this.exited = true;
234
+ delete this._inst;
235
+ delete this._values;
236
+ delete this._goRefCounts;
237
+ delete this._ids;
238
+ delete this._idPool;
239
+ this.exit(code);
240
+ },
241
+
242
+ // func wasmWrite(fd uintptr, p unsafe.Pointer, n int32)
243
+ "runtime.wasmWrite": (sp) => {
244
+ sp >>>= 0;
245
+ const fd = getInt64(sp + 8);
246
+ const p = getInt64(sp + 16);
247
+ const n = this.mem.getInt32(sp + 24, true);
248
+ fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
249
+ },
250
+
251
+ // func resetMemoryDataView()
252
+ "runtime.resetMemoryDataView": (sp) => {
253
+ sp >>>= 0;
254
+ this.mem = new DataView(this._inst.exports.mem.buffer);
255
+ },
256
+
257
+ // func nanotime1() int64
258
+ "runtime.nanotime1": (sp) => {
259
+ sp >>>= 0;
260
+ setInt64(sp + 8, (timeOrigin + performance.now()) * 1000000);
261
+ },
262
+
263
+ // func walltime() (sec int64, nsec int32)
264
+ "runtime.walltime": (sp) => {
265
+ sp >>>= 0;
266
+ const msec = (new Date).getTime();
267
+ setInt64(sp + 8, msec / 1000);
268
+ this.mem.setInt32(sp + 16, (msec % 1000) * 1000000, true);
269
+ },
270
+
271
+ // func scheduleTimeoutEvent(delay int64) int32
272
+ "runtime.scheduleTimeoutEvent": (sp) => {
273
+ sp >>>= 0;
274
+ const id = this._nextCallbackTimeoutID;
275
+ this._nextCallbackTimeoutID++;
276
+ this._scheduledTimeouts.set(id, setTimeout(
277
+ () => {
278
+ this._resume();
279
+ while (this._scheduledTimeouts.has(id)) {
280
+ // for some reason Go failed to register the timeout event, log and try again
281
+ // (temporary workaround for https://github.com/golang/go/issues/28975)
282
+ console.warn("scheduleTimeoutEvent: missed timeout event");
283
+ this._resume();
284
+ }
285
+ },
286
+ getInt64(sp + 8),
287
+ ));
288
+ this.mem.setInt32(sp + 16, id, true);
289
+ },
290
+
291
+ // func clearTimeoutEvent(id int32)
292
+ "runtime.clearTimeoutEvent": (sp) => {
293
+ sp >>>= 0;
294
+ const id = this.mem.getInt32(sp + 8, true);
295
+ clearTimeout(this._scheduledTimeouts.get(id));
296
+ this._scheduledTimeouts.delete(id);
297
+ },
298
+
299
+ // func getRandomData(r []byte)
300
+ "runtime.getRandomData": (sp) => {
301
+ sp >>>= 0;
302
+ crypto.getRandomValues(loadSlice(sp + 8));
303
+ },
304
+
305
+ // func finalizeRef(v ref)
306
+ "syscall/js.finalizeRef": (sp) => {
307
+ sp >>>= 0;
308
+ const id = this.mem.getUint32(sp + 8, true);
309
+ this._goRefCounts[id]--;
310
+ if (this._goRefCounts[id] === 0) {
311
+ const v = this._values[id];
312
+ this._values[id] = null;
313
+ this._ids.delete(v);
314
+ this._idPool.push(id);
315
+ }
316
+ },
317
+
318
+ // func stringVal(value string) ref
319
+ "syscall/js.stringVal": (sp) => {
320
+ sp >>>= 0;
321
+ storeValue(sp + 24, loadString(sp + 8));
322
+ },
323
+
324
+ // func valueGet(v ref, p string) ref
325
+ "syscall/js.valueGet": (sp) => {
326
+ sp >>>= 0;
327
+ const result = Reflect.get(loadValue(sp + 8), loadString(sp + 16));
328
+ sp = this._inst.exports.getsp() >>> 0; // see comment above
329
+ storeValue(sp + 32, result);
330
+ },
331
+
332
+ // func valueSet(v ref, p string, x ref)
333
+ "syscall/js.valueSet": (sp) => {
334
+ sp >>>= 0;
335
+ Reflect.set(loadValue(sp + 8), loadString(sp + 16), loadValue(sp + 32));
336
+ },
337
+
338
+ // func valueDelete(v ref, p string)
339
+ "syscall/js.valueDelete": (sp) => {
340
+ sp >>>= 0;
341
+ Reflect.deleteProperty(loadValue(sp + 8), loadString(sp + 16));
342
+ },
343
+
344
+ // func valueIndex(v ref, i int) ref
345
+ "syscall/js.valueIndex": (sp) => {
346
+ sp >>>= 0;
347
+ storeValue(sp + 24, Reflect.get(loadValue(sp + 8), getInt64(sp + 16)));
348
+ },
349
+
350
+ // valueSetIndex(v ref, i int, x ref)
351
+ "syscall/js.valueSetIndex": (sp) => {
352
+ sp >>>= 0;
353
+ Reflect.set(loadValue(sp + 8), getInt64(sp + 16), loadValue(sp + 24));
354
+ },
355
+
356
+ // func valueCall(v ref, m string, args []ref) (ref, bool)
357
+ "syscall/js.valueCall": (sp) => {
358
+ sp >>>= 0;
359
+ try {
360
+ const v = loadValue(sp + 8);
361
+ const m = Reflect.get(v, loadString(sp + 16));
362
+ const args = loadSliceOfValues(sp + 32);
363
+ const result = Reflect.apply(m, v, args);
364
+ sp = this._inst.exports.getsp() >>> 0; // see comment above
365
+ storeValue(sp + 56, result);
366
+ this.mem.setUint8(sp + 64, 1);
367
+ } catch (err) {
368
+ sp = this._inst.exports.getsp() >>> 0; // see comment above
369
+ storeValue(sp + 56, err);
370
+ this.mem.setUint8(sp + 64, 0);
371
+ }
372
+ },
373
+
374
+ // func valueInvoke(v ref, args []ref) (ref, bool)
375
+ "syscall/js.valueInvoke": (sp) => {
376
+ sp >>>= 0;
377
+ try {
378
+ const v = loadValue(sp + 8);
379
+ const args = loadSliceOfValues(sp + 16);
380
+ const result = Reflect.apply(v, undefined, args);
381
+ sp = this._inst.exports.getsp() >>> 0; // see comment above
382
+ storeValue(sp + 40, result);
383
+ this.mem.setUint8(sp + 48, 1);
384
+ } catch (err) {
385
+ sp = this._inst.exports.getsp() >>> 0; // see comment above
386
+ storeValue(sp + 40, err);
387
+ this.mem.setUint8(sp + 48, 0);
388
+ }
389
+ },
390
+
391
+ // func valueNew(v ref, args []ref) (ref, bool)
392
+ "syscall/js.valueNew": (sp) => {
393
+ sp >>>= 0;
394
+ try {
395
+ const v = loadValue(sp + 8);
396
+ const args = loadSliceOfValues(sp + 16);
397
+ const result = Reflect.construct(v, args);
398
+ sp = this._inst.exports.getsp() >>> 0; // see comment above
399
+ storeValue(sp + 40, result);
400
+ this.mem.setUint8(sp + 48, 1);
401
+ } catch (err) {
402
+ sp = this._inst.exports.getsp() >>> 0; // see comment above
403
+ storeValue(sp + 40, err);
404
+ this.mem.setUint8(sp + 48, 0);
405
+ }
406
+ },
407
+
408
+ // func valueLength(v ref) int
409
+ "syscall/js.valueLength": (sp) => {
410
+ sp >>>= 0;
411
+ setInt64(sp + 16, parseInt(loadValue(sp + 8).length));
412
+ },
413
+
414
+ // valuePrepareString(v ref) (ref, int)
415
+ "syscall/js.valuePrepareString": (sp) => {
416
+ sp >>>= 0;
417
+ const str = encoder.encode(String(loadValue(sp + 8)));
418
+ storeValue(sp + 16, str);
419
+ setInt64(sp + 24, str.length);
420
+ },
421
+
422
+ // valueLoadString(v ref, b []byte)
423
+ "syscall/js.valueLoadString": (sp) => {
424
+ sp >>>= 0;
425
+ const str = loadValue(sp + 8);
426
+ loadSlice(sp + 16).set(str);
427
+ },
428
+
429
+ // func valueInstanceOf(v ref, t ref) bool
430
+ "syscall/js.valueInstanceOf": (sp) => {
431
+ sp >>>= 0;
432
+ this.mem.setUint8(sp + 24, (loadValue(sp + 8) instanceof loadValue(sp + 16)) ? 1 : 0);
433
+ },
434
+
435
+ // func copyBytesToGo(dst []byte, src ref) (int, bool)
436
+ "syscall/js.copyBytesToGo": (sp) => {
437
+ sp >>>= 0;
438
+ const dst = loadSlice(sp + 8);
439
+ const src = loadValue(sp + 32);
440
+ if (!(src instanceof Uint8Array || src instanceof Uint8ClampedArray)) {
441
+ this.mem.setUint8(sp + 48, 0);
442
+ return;
443
+ }
444
+ const toCopy = src.subarray(0, dst.length);
445
+ dst.set(toCopy);
446
+ setInt64(sp + 40, toCopy.length);
447
+ this.mem.setUint8(sp + 48, 1);
448
+ },
449
+
450
+ // func copyBytesToJS(dst ref, src []byte) (int, bool)
451
+ "syscall/js.copyBytesToJS": (sp) => {
452
+ sp >>>= 0;
453
+ const dst = loadValue(sp + 8);
454
+ const src = loadSlice(sp + 16);
455
+ if (!(dst instanceof Uint8Array || dst instanceof Uint8ClampedArray)) {
456
+ this.mem.setUint8(sp + 48, 0);
457
+ return;
458
+ }
459
+ const toCopy = src.subarray(0, dst.length);
460
+ dst.set(toCopy);
461
+ setInt64(sp + 40, toCopy.length);
462
+ this.mem.setUint8(sp + 48, 1);
463
+ },
464
+
465
+ "debug": (value) => {
466
+ console.log(value);
467
+ },
468
+ }
469
+ };
470
+ }
471
+
472
+ async run(instance) {
473
+ if (!(instance instanceof WebAssembly.Instance)) {
474
+ throw new Error("Go.run: WebAssembly.Instance expected");
475
+ }
476
+ this._inst = instance;
477
+ this.mem = new DataView(this._inst.exports.mem.buffer);
478
+ this._values = [ // JS values that Go currently has references to, indexed by reference id
479
+ NaN,
480
+ 0,
481
+ null,
482
+ true,
483
+ false,
484
+ globalThis,
485
+ this,
486
+ ];
487
+ this._goRefCounts = new Array(this._values.length).fill(Infinity); // number of references that Go has to a JS value, indexed by reference id
488
+ this._ids = new Map([ // mapping from JS values to reference ids
489
+ [0, 1],
490
+ [null, 2],
491
+ [true, 3],
492
+ [false, 4],
493
+ [globalThis, 5],
494
+ [this, 6],
495
+ ]);
496
+ this._idPool = []; // unused ids that have been garbage collected
497
+ this.exited = false; // whether the Go program has exited
498
+
499
+ // Pass command line arguments and environment variables to WebAssembly by writing them to the linear memory.
500
+ let offset = 4096;
501
+
502
+ const strPtr = (str) => {
503
+ const ptr = offset;
504
+ const bytes = encoder.encode(str + "\0");
505
+ new Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes);
506
+ offset += bytes.length;
507
+ if (offset % 8 !== 0) {
508
+ offset += 8 - (offset % 8);
509
+ }
510
+ return ptr;
511
+ };
512
+
513
+ const argc = this.argv.length;
514
+
515
+ const argvPtrs = [];
516
+ this.argv.forEach((arg) => {
517
+ argvPtrs.push(strPtr(arg));
518
+ });
519
+ argvPtrs.push(0);
520
+
521
+ const keys = Object.keys(this.env).sort();
522
+ keys.forEach((key) => {
523
+ argvPtrs.push(strPtr(`${key}=${this.env[key]}`));
524
+ });
525
+ argvPtrs.push(0);
526
+
527
+ const argv = offset;
528
+ argvPtrs.forEach((ptr) => {
529
+ this.mem.setUint32(offset, ptr, true);
530
+ this.mem.setUint32(offset + 4, 0, true);
531
+ offset += 8;
532
+ });
533
+
534
+ // The linker guarantees global data starts from at least wasmMinDataAddr.
535
+ // Keep in sync with cmd/link/internal/ld/data.go:wasmMinDataAddr.
536
+ const wasmMinDataAddr = 4096 + 8192;
537
+ if (offset >= wasmMinDataAddr) {
538
+ throw new Error("total length of command line and environment variables exceeds limit");
539
+ }
540
+
541
+ this._inst.exports.run(argc, argv);
542
+ if (this.exited) {
543
+ this._resolveExitPromise();
544
+ }
545
+ await this._exitPromise;
546
+ }
547
+
548
+ _resume() {
549
+ if (this.exited) {
550
+ throw new Error("Go program has already exited");
551
+ }
552
+ this._inst.exports.resume();
553
+ if (this.exited) {
554
+ this._resolveExitPromise();
555
+ }
556
+ }
557
+
558
+ _makeFuncWrapper(id) {
559
+ const go = this;
560
+ return function () {
561
+ const event = { id: id, this: this, args: arguments };
562
+ go._pendingEvent = event;
563
+ go._resume();
564
+ return event.result;
565
+ };
566
+ }
567
+ }
568
+ })();
package/lib/engine.js CHANGED
@@ -241,7 +241,13 @@ export class Engine {
241
241
  const component_regex = /execute of template failed: template: ([^:]+):\d/ig;
242
242
  let file_stack = [...error_string.matchAll(component_regex)].map(([, file]) => `layouts/${file}`);
243
243
  if (file_stack.length) {
244
- const deepest_errored_component = file_stack[file_stack.length - 1];
244
+ const raw_deepest_errored_component = file_stack[file_stack.length - 1];
245
+ // For some reason, in the Hugo bump to v0.147.6, the errors now log as:
246
+ // _partials/bookshop/components/bad/bad.hugo.html:1:7
247
+ // instead of the previous:
248
+ // partials/bookshop/components/bad/bad.hugo.html:1:7
249
+ // So, we now strip that off if it is present.
250
+ const deepest_errored_component = raw_deepest_errored_component.replace(/layouts\/_partials/, 'layouts/partials')
245
251
  const error_chunks = error_string.split("execute of template failed:");
246
252
  const error_msg = error_chunks[error_chunks.length - 1] ?? "template error";
247
253
  window.writeHugoFiles(JSON.stringify({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bookshop/hugo-engine",
3
- "version": "3.15.0-alpha.3",
3
+ "version": "3.16.0",
4
4
  "description": "Bookshop frontend Hugo renderer",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -15,6 +15,7 @@
15
15
  "!**/*.test.js",
16
16
  "!**/*__test__.js",
17
17
  "full-hugo-renderer/hugo_renderer.wasm.gz",
18
+ "full-hugo-renderer/wasm_exec.js",
18
19
  "bookshop-hugo-templates/**/*"
19
20
  ],
20
21
  "author": "@bglw",
@@ -30,7 +31,7 @@
30
31
  "esbuild": "^0.19.3",
31
32
  "fflate": "^0.7.3",
32
33
  "liquidjs": "10.17.0",
33
- "@bookshop/helpers": "3.15.0-alpha.3"
34
+ "@bookshop/helpers": "3.16.0"
34
35
  },
35
36
  "engines": {
36
37
  "node": ">=14.16"