From a62c7e36409c0e33736592135143eea7b8860442 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 26 Sep 2024 19:17:25 +0000 Subject: [PATCH 1/3] Update dependency rollup to v3 [SECURITY] --- package.json | 2 +- yarn.lock | 35 +++++++++++------------------------ 2 files changed, 12 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 38aafa1..61f11fd 100644 --- a/package.json +++ b/package.json @@ -55,7 +55,7 @@ "jsdom-global": "^3.0.2", "mocha": "^6.2.0", "redux-asserts": "^0.0.12", - "rollup": "^0.68.0", + "rollup": "^3.0.0", "rollup-plugin-babel": "^2.7.1", "sinon": "^7.4.1", "standard": "^16.0.3" diff --git a/yarn.lock b/yarn.lock index 703149f..e1cd6ab 100644 --- a/yarn.lock +++ b/yarn.lock @@ -228,23 +228,11 @@ resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5" integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ== -"@types/estree@0.0.39": - version "0.0.39" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-0.0.39.tgz#e177e699ee1b8c22d23174caaa7422644389509f" - integrity sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw== - "@types/json5@^0.0.29": version "0.0.29" resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" integrity sha1-7ihweulOEdK4J7y+UnC86n8+ce4= -"@types/node@*": - version "20.12.7" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.7.tgz#04080362fa3dd6c5822061aa3124f5c152cff384" - integrity sha512-wq0cICSkRLVaf3UGLMGItu/PtdY7oaXaI/RVU+xliKVOtRna3PRY57ZDfztpDL0n11vfymMUnXv8QwYCO7L1wg== - dependencies: - undici-types "~5.26.4" - abab@^2.0.0: version "2.0.5" resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" @@ -1739,6 +1727,11 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= +fsevents@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" @@ -3040,13 +3033,12 @@ rollup-pluginutils@^1.5.0: estree-walker "^0.2.1" minimatch "^3.0.2" -rollup@^0.68.0: - version "0.68.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.68.2.tgz#c26afb5d981ca7a1a32f76087dbde9dad4fcc653" - integrity sha512-WgjNCXYv7ZbtStIap1+tz4pd2zwz0XYN//OILwEY6dINIFLVizK1iWdu+ZtUURL/OKnp8Lv2w8FBds8YihzX7Q== - dependencies: - "@types/estree" "0.0.39" - "@types/node" "*" +rollup@^3.0.0: + version "3.29.5" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-3.29.5.tgz#8a2e477a758b520fb78daf04bca4c522c1da8a54" + integrity sha512-GVsDdsbJzzy4S/v3dqWPJ7EfvZJfCHiDqe80IyrF59LYuP+e6U1LJoUqeuqRbwAWoMNoXivMNeNAOf5E22VA1w== + optionalDependencies: + fsevents "~2.3.2" safe-buffer@^5.0.1, safe-buffer@^5.1.2: version "5.2.1" @@ -3486,11 +3478,6 @@ type-fest@^0.8.1: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== - uri-js@^4.2.2: version "4.4.1" resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" From 38c64303c5585b36a8e60d789f32ac896abe8c23 Mon Sep 17 00:00:00 2001 From: James Kachel Date: Thu, 26 Sep 2024 14:39:12 -0500 Subject: [PATCH 2/3] Rename rollup.config.js to .mjs, update format The config file format changed pretty drastically in Rollup v1, so this makes it compliant with that. For more detail see the changelog: https://github.com/rollup/rollup/blob/master/CHANGELOG.md#100 --- rollup.config.js => rollup.config.mjs | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) rename rollup.config.js => rollup.config.mjs (67%) diff --git a/rollup.config.js b/rollup.config.mjs similarity index 67% rename from rollup.config.js rename to rollup.config.mjs index ee39e5b..e5a605f 100644 --- a/rollup.config.js +++ b/rollup.config.mjs @@ -25,27 +25,33 @@ const externals = [ export default [ { - entry: 'src/hammock.js', - format: 'cjs', - dest: 'hammock.js', + input: 'src/hammock.js', + output: { + file: 'hammock.js', + format: 'cjs' + }, plugins: [ babel(babelConfig) ], external: externals }, { - entry: 'src/django_csrf_fetch.js', - format: 'cjs', - dest: 'django_csrf_fetch.js', + input: 'src/django_csrf_fetch.js', + output: { + file: 'django_csrf_fetch.js', + format: 'cjs' + }, plugins: [ babel(babelConfig) ], external: externals }, { - entry: 'src/constants.js', - format: 'cjs', - dest: 'constants.js', + input: 'src/constants.js', + output: { + file: 'constants.js', + format: 'cjs' + }, plugins: [ babel(babelConfig) ], From a129b6fae2b8ea12e0a8c876d406944cfaa81f6c Mon Sep 17 00:00:00 2001 From: James Kachel Date: Thu, 26 Sep 2024 14:44:52 -0500 Subject: [PATCH 3/3] add a lint:fix (because it should do it for me), fixing lint error in rollup config --- package.json | 1 + rollup.config.mjs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 61f11fd..2914715 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "test": "mocha --require babel-polyfill --require babel-register src/*_test.js", "watch": "mocha --watch --require babel-polyfill --compilers js:babel-register src/*_test.js", "lint": "standard --env mocha", + "lint:fix": "standard --env mocha --fix", "lint:verbose": "standard --env mocha --verbose", "flow": "flow", "fmt": "standard --env mocha --fix", diff --git a/rollup.config.mjs b/rollup.config.mjs index e5a605f..eb6944a 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -25,7 +25,7 @@ const externals = [ export default [ { - input: 'src/hammock.js', + input: 'src/hammock.js', output: { file: 'hammock.js', format: 'cjs' @@ -36,7 +36,7 @@ export default [ external: externals }, { - input: 'src/django_csrf_fetch.js', + input: 'src/django_csrf_fetch.js', output: { file: 'django_csrf_fetch.js', format: 'cjs' @@ -47,7 +47,7 @@ export default [ external: externals }, { - input: 'src/constants.js', + input: 'src/constants.js', output: { file: 'constants.js', format: 'cjs'