Skip to content

Commit 3d9cf22

Browse files
author
Anthony Du Pont
committed
Update Dependencies
1 parent d316905 commit 3d9cf22

File tree

12 files changed

+12449
-7592
lines changed

12 files changed

+12449
-7592
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Older browsers or versions can be supported by Highway by combining it with **po
4848
## Releases
4949
#### 2.2.x
5050

51+
- :lock: Update dependencies for security purposes
5152
- :tada: Add new websites in the *Hall of Fame*
5253
- :tada: Add [Polyfills](https://highway.js.org/examples/polyfills.html) example to documentation
5354
- :sparkles: Reduce bundle size significantly with [microbundle](https://github.com/developit/microbundle)

docs/assets/js/main.js

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

docs/package-lock.json

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

docs/package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99
"serve": "jekyll serve"
1010
},
1111
"devDependencies": {
12-
"@babel/core": "^7.5.4",
13-
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
14-
"@babel/preset-env": "^7.5.4",
15-
"babel-loader": "^8.0.6",
16-
"core-js": "^3.1.4",
17-
"regenerator-runtime": "^0.13.2",
18-
"webpack": "^4.35.3",
19-
"webpack-cli": "^3.3.6"
12+
"@babel/core": "^7.9.0",
13+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
14+
"@babel/preset-env": "^7.9.5",
15+
"babel-loader": "^8.1.0",
16+
"core-js": "^3.6.5",
17+
"jekyll": "^3.0.0-beta1",
18+
"regenerator-runtime": "^0.13.5",
19+
"webpack": "^4.42.1",
20+
"webpack-cli": "^3.3.11"
2021
},
2122
"dependencies": {
22-
"gsap": "^2.1.3",
23-
"jekyll": "^3.0.0-beta1",
23+
"gsap": "^3.2.6",
2424
"whatwg-fetch": "^3.0.0"
2525
}
2626
}

docs/src/js/transitions/basic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Highway from 'highway';
33

44
// GSAP
5-
import Tween from 'gsap';
5+
import { TweenMax } from 'gsap';
66

77
// Basic
88
class Basic extends Highway.Transition {
@@ -14,15 +14,15 @@ class Basic extends Highway.Transition {
1414
from.remove();
1515

1616
// Animation
17-
Tween.set(to, { opacity: 1 });
17+
TweenMax.set(to, { opacity: 1 });
1818

1919
// Done
2020
done();
2121
}
2222

2323
out({ from, done }) {
2424
// Animation
25-
Tween.set(from, { opacity: 0 });
25+
TweenMax.set(from, { opacity: 0 });
2626

2727
// Done
2828
done();

docs/src/js/transitions/fade.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Highway from 'highway';
33

44
// GSAP
5-
import Tween from 'gsap';
5+
import { TweenMax } from 'gsap';
66

77
// Fade
88
class Fade extends Highway.Transition {
@@ -14,7 +14,7 @@ class Fade extends Highway.Transition {
1414
from.remove();
1515

1616
// Animation
17-
Tween.fromTo(to, 0.5,
17+
TweenMax.fromTo(to, 0.5,
1818
{ opacity: 0 },
1919
{
2020
opacity: 1,
@@ -25,7 +25,7 @@ class Fade extends Highway.Transition {
2525

2626
out({ from, done }) {
2727
// Animation
28-
Tween.fromTo(from, 0.5,
28+
TweenMax.fromTo(from, 0.5,
2929
{ opacity: 1 },
3030
{
3131
opacity: 0,

docs/src/js/transitions/overlap.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Highway from 'highway';
33

44
// GSAP
5-
import Tween from 'gsap';
5+
import { TweenMax } from 'gsap';
66

77
// Fade
88
class Overlap extends Highway.Transition {
@@ -11,7 +11,7 @@ class Overlap extends Highway.Transition {
1111
window.scrollTo(0, 0);
1212

1313
// Animation
14-
Tween.fromTo(to, 0.5,
14+
TweenMax.fromTo(to, 0.5,
1515
{ opacity: 0 },
1616
{
1717
opacity: 1,
@@ -20,7 +20,7 @@ class Overlap extends Highway.Transition {
2020
);
2121

2222
// Animation
23-
Tween.fromTo(from, 0.5,
23+
TweenMax.fromTo(from, 0.5,
2424
{ opacity: 1 },
2525
{
2626
opacity: 0,

docs/webpack.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ module.exports = {
4747
},
4848
resolve: {
4949
alias: {
50-
'highway': 'build/highway.js',
51-
'gsap': 'gsap/TweenMax.js'
50+
'highway': 'build/highway.js'
5251
},
5352
modules: ['.', 'node_modules'],
5453
extensions: ['.js']

0 commit comments

Comments
 (0)