Skip to content

Commit

Permalink
Fix for Safari
Browse files Browse the repository at this point in the history
A combination of updates in some transitive dependencies broke
the UI in Safari due to use of unsupported regex lookbehind. This
feature has been supported in the other major browsers for quite some
time but Safari has lagged behind.

Our switch to Node 16 and npm 8 introduced some unexpected updates
in transitive dependencies, namely:
`git-url-parse > git-up > parse-url > normalize-url`

Due to the version ranges specified by these packages we ended up
pulling in `[email protected]` which is not compatible with Safari.
We cannot force an update to `[email protected]` which contains the fix
due to incompatibility with `parse-url` (`normalize-url` has been converted
to an ESM-only package).

As a workaround, pin `git-up` to the known working version from before
our Node 16 update. Hopefully we can remove this in the near future once
issues with `parse-url` and `normalize-url` are resolved.
  • Loading branch information
AlanGreene authored and tekton-robot committed Jan 26, 2022
1 parent 56c6af7 commit 172718f
Show file tree
Hide file tree
Showing 4 changed files with 1,768 additions and 2,282 deletions.
2 changes: 1 addition & 1 deletion .storybook/.babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[
"@babel/preset-env",
{
"corejs": "3.6",
"corejs": "3.20",
"useBuiltIns": "entry"
}
],
Expand Down
4 changes: 2 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2019 The Tekton Authors
Copyright 2019-2022 The Tekton Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Expand All @@ -19,7 +19,7 @@ module.exports = api => {
[
'@babel/preset-env',
{
corejs: '3.6',
corejs: '3.20',
exclude: ['@babel/plugin-transform-regenerator'],
modules: false,
useBuiltIns: 'entry'
Expand Down
Loading

0 comments on commit 172718f

Please sign in to comment.