Skip to content

Commit 1bb4024

Browse files
authored
chore(deps): upgrade stimulus to v3 (#12558)
The package namespace has changed, so we replace the imports as well. Signed-off-by: Mike Fiedler <[email protected]> Signed-off-by: Mike Fiedler <[email protected]>
1 parent eda42cc commit 1bb4024

29 files changed

+56
-100
lines changed

package-lock.json

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
"@babel/preset-env": "7.18.0",
1919
"@babel/register": "7.17.7",
2020
"@fortawesome/fontawesome-free": "5.13.0",
21+
"@hotwired/stimulus": "^3.1.1",
22+
"@hotwired/stimulus-webpack-helpers": "^1.0.1",
2123
"babel-loader": "8.2.5",
2224
"clipboard": "1.7.1",
2325
"cookie": "0.4.0",
@@ -39,7 +41,6 @@
3941
"gulp-sourcemaps": "^3.0.0",
4042
"jquery": "3.5.0",
4143
"normalize.css": "^8.0.1",
42-
"stimulus": "2.0.0",
4344
"vinyl-named": "1.1.0",
4445
"webpack": "^4.42.1",
4546
"webpack-stream": "^5.0.0",

tests/frontend/collapsible_controller_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/* global expect, beforeEach, describe, it */
1515

16-
import { Application } from "stimulus";
16+
import { Application } from "@hotwired/stimulus";
1717
import CollapsibleController from "../../warehouse/static/js/warehouse/controllers/collapsible_controller";
1818

1919
describe("Collapsible controller", () => {

tests/frontend/confirm_controller_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/* global expect, beforeEach, describe, it */
1515

16-
import { Application } from "stimulus";
16+
import { Application } from "@hotwired/stimulus";
1717
import ConfirmController from "../../warehouse/static/js/warehouse/controllers/confirm_controller";
1818
import { fireEvent } from "@testing-library/dom";
1919

tests/frontend/dismissable_controller_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/* global expect, beforeEach, describe, it */
1515

16-
import { Application } from "stimulus";
16+
import { Application } from "@hotwired/stimulus";
1717
import DismissableController from "../../warehouse/static/js/warehouse/controllers/dismissable_controller";
1818

1919
describe("Dismissable controller", () => {

tests/frontend/localized_time_controller_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/* global expect, beforeEach, describe, it */
1515

1616
import format from "date-fns/format";
17-
import { Application } from "stimulus";
17+
import { Application } from "@hotwired/stimulus";
1818
import LocalizedTimeController from "../../warehouse/static/js/warehouse/controllers/localized_time_controller";
1919

2020
describe("Localized time controller", () => {

tests/frontend/modal_close_controller_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/* global expect, beforeEach, describe, it */
1515

16-
import { Application } from "stimulus";
16+
import { Application } from "@hotwired/stimulus";
1717
import ModalCloseController from "../../warehouse/static/js/warehouse/controllers/modal_close_controller";
1818

1919
describe("Modal close controller", () => {

tests/frontend/notification_controller_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/* global expect, beforeEach, describe, it */
1515

16-
import { Application } from "stimulus";
16+
import { Application } from "@hotwired/stimulus";
1717
import NotificationController from "../../warehouse/static/js/warehouse/controllers/notification_controller";
1818

1919
const notificationContent = `

tests/frontend/password_breach_controller_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
/* global expect, beforeEach, describe, it */
1515

1616
import { fireEvent } from "@testing-library/dom";
17-
import { Application } from "stimulus";
17+
import { Application } from "@hotwired/stimulus";
1818
import { delay } from "./utils";
1919
import PasswordBreachController from "../../warehouse/static/js/warehouse/controllers/password_breach_controller";
2020

tests/frontend/password_controller_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
/* global expect, beforeEach, describe, it */
1515

16-
import { Application } from "stimulus";
16+
import { Application } from "@hotwired/stimulus";
1717
import PasswordController from "../../warehouse/static/js/warehouse/controllers/password_controller";
1818

1919
describe("Password controller", () => {

0 commit comments

Comments
 (0)