Skip to content

Commit 230bb84

Browse files
committed
bump pdfjs to get to a version compatible with latest webpack and babel, but this required bumping our minimum safari version to match pdfjs' constraints. I didn't update to latest so that we can still reasonably support Safari 14.1 (iPhone 6S, iPad Air 2, iPad mini 3), and Chrome 105 (Pico XR 4, Meta Quest 1). This excludes previous support for iOS 10 (iPhone 6, iPad Air) and Chrome 91 (Oculus Go). the typescript config was tightened slightly to try and surface this class of import/export mismatch at build-time in the future.
1 parent 52d3fdd commit 230bb84

File tree

10 files changed

+480
-198
lines changed

10 files changed

+480
-198
lines changed

.browserslistrc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Modern browsers - macOS 10.15 (Safari 15.6, 2012 MacBook compat) and iOS 10 (Safari 10.1 iPhone 6 compat) minimum
2-
chrome >= 91 # This was the version of Chrome on Oculus Go devices when their support was sunset
3-
safari >= 10
4-
ios >= 10
1+
# Modern browsers - macOS 10.15 (Safari 15.6: 2012 MacBook compat) and iOS 14 (Safari 14.1: iPhone 6S, iPad Air 2 compat) minimum
2+
chrome >= 105 # Pico XR 4 device browser is 105, Meta Quest 1 is Chrome 112, HTC Vive (XRE|Focus Vision) is 121
3+
safari >= 14.1
4+
ios >= 14.5
55
firefox >= 91 # Lowered to align with Safari 15 capabilities, bump to 115 (Wolvic on HTC) when possible
6-
edge >= 91
6+
edge >= 105 # last HoloLens 2 Chromium Edge build with working WebXR
77
# Exclude legacy browsers
88
not ie >= 0
99
not ie_mob >= 0

admin/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

babel.config.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ module.exports = {
3232
"es.object.keys", // Native in all browsers since IE9
3333
"es.object.values", // Native in Chrome 54+, Safari 10.1+
3434
"es.object.entries", // Native in Chrome 54+, Safari 10.1+
35-
// "es.array.flat", // Native in Chrome 69+, Safari 12+
36-
// "es.array.flat-map", // Native in Chrome 69+, Safari 12+
35+
"es.array.flat", // Native in Chrome 69+, Safari 12+
36+
"es.array.flat-map", // Native in Chrome 69+, Safari 12+
3737
"es.string.pad-start", // Native in Chrome 57+, Safari 10+
3838
"es.string.pad-end", // Native in Chrome 57+, Safari 10+
39-
// "es.string.trim-start", // Native in Chrome 66+, Safari 12+
40-
// "es.string.trim-end", // Native in Chrome 66+, Safari 12+
39+
"es.string.trim-start", // Native in Chrome 66+, Safari 12+
40+
"es.string.trim-end", // Native in Chrome 66+, Safari 12+
4141
"es.map", // Native in Chrome 38+, Safari 9+
4242
"es.set", // Native in Chrome 38+, Safari 9+
4343
"es.weak-map", // Native in Chrome 36+, Safari 9+
@@ -46,10 +46,10 @@ module.exports = {
4646
"es.symbol.iterator", // Native in Chrome 38+, Safari 9+
4747
"es.regexp.flags", // Native in Chrome 62+, Safari 12+
4848
"es.regexp.to-string", // Native in Chrome 50+, Safari 10+
49-
// "es.string.match-all", // Native in Chrome 73+, Safari 13+
50-
// "es.string.replace-all", // Native in Chrome 85+, Safari 13.1+
51-
// "es.promise.finally", // Native in Chrome 63+, Safari 11.1+
52-
// "es.promise.all-settled", // Native in Chrome 76+, Safari 13+
49+
"es.string.match-all", // Native in Chrome 73+, Safari 13+
50+
"es.string.replace-all", // Native in Chrome 85+, Safari 13.1+
51+
"es.promise.finally", // Native in Chrome 63+, Safari 11.1+
52+
"es.promise.all-settled", // Native in Chrome 76+, Safari 13+
5353
"es.array.fill", // Native in Chrome 45+, Safari 9+
5454
"es.array.copy-within", // Native in Chrome 45+, Safari 9+
5555
"es.math.trunc", // Native in Chrome 38+, Safari 8+
@@ -58,9 +58,9 @@ module.exports = {
5858
"es.object.get-own-property-descriptors", // Native in Chrome 54+, Safari 10+
5959
"es.date.to-iso-string", // Native in all modern browsers
6060
"web.dom-collections.for-each", // Native in Chrome 58+, Safari 10+
61-
"web.dom-collections.iterator" // Native in Chrome 38+, Safari 9+
62-
// "web.url", // Native in Chrome 32+, Safari 14+
63-
// "web.url-search-params" // Native in Chrome 49+, Safari 14+
61+
"web.dom-collections.iterator", // Native in Chrome 38+, Safari 9+
62+
"web.url", // Native in Chrome 32+, Safari 14+
63+
"web.url-search-params" // Native in Chrome 49+, Safari 14+
6464
],
6565
// Enable to see resolved targets and polyfills being used
6666
debug: false

0 commit comments

Comments
 (0)