Skip to content

Commit af9fa35

Browse files
authored
chore: Upgrade dependencies (#3610)
1 parent dc68a51 commit af9fa35

File tree

13 files changed

+5125
-5508
lines changed

13 files changed

+5125
-5508
lines changed

package-lock.json

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

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,14 @@
6868
"@types/balanced-match": "^1.0.1",
6969
"@types/d3-scale": "^2.2.6",
7070
"@types/d3-shape": "^1.3.8",
71-
"@types/glob": "^7.2.0",
7271
"@types/jest": "^29.5.13",
7372
"@types/lodash": "^4.14.176",
7473
"@types/node": "^20.17.14",
7574
"@types/react": "^16.14.20",
7675
"@types/react-dom": "^16.9.14",
7776
"@types/react-router": "^5.1.18",
7877
"@types/react-router-dom": "^5.3.2",
79-
"@types/react-test-renderer": "^18.3.0",
78+
"@types/react-test-renderer": "^16.9.12",
8079
"@types/react-transition-group": "^4.4.4",
8180
"@types/webpack-env": "^1.16.3",
8281
"@typescript-eslint/eslint-plugin": "^8.24.1",
@@ -102,7 +101,7 @@
102101
"eslint-plugin-unicorn": "^45.0.1",
103102
"execa": "^4.1.0",
104103
"fs-extra": "^11.2.0",
105-
"glob": "^7.2.0",
104+
"glob": "^11.0.3",
106105
"gulp": "^5.0.0",
107106
"html-validate": "^7.3.0",
108107
"html-webpack-plugin": "^5.5.0",
@@ -138,12 +137,15 @@
138137
"svgo": "^2.8.0",
139138
"ts-jest": "^29.2.5",
140139
"ts-loader": "^9.2.6",
141-
"typescript": "^4.6.4",
140+
"typescript": "^4.9.5",
142141
"wait-on": "^8.0.2",
143142
"webpack": "^5.94.0",
144143
"webpack-cli": "^5.1.4",
145144
"webpack-dev-server": "^5.2.1"
146145
},
146+
"overrides": {
147+
"typescript": "^4.9.5"
148+
},
147149
"lint-staged": {
148150
"*.{js,jsx,ts,tsx}": [
149151
"eslint --fix"

src/__a11y__/a11y-page-object.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
// SPDX-License-Identifier: Apache-2.0
33
import * as Axe from 'axe-core';
4-
import fs from 'fs';
4+
import * as fs from 'fs';
55

66
import { BasePageObject } from '@cloudscape-design/browser-test-tools/page-objects';
77

@@ -42,7 +42,7 @@ export default class A11yPageObject extends BasePageObject {
4242
options: Axe.ContextObject,
4343
spec: Axe.Spec,
4444
runOptions: Axe.RunOptions,
45-
done: (result: AxeResult) => void
45+
done: (result: AxeResult | undefined) => void
4646
) => {
4747
// Adding parts of spec that are not serializable.
4848
if (spec.checks) {
@@ -57,7 +57,7 @@ export default class A11yPageObject extends BasePageObject {
5757

5858
axe.configure(spec);
5959

60-
return axe.run(options, runOptions).then(
60+
axe.run(options, runOptions).then(
6161
result => done({ result }),
6262
error => done(error)
6363
);

src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -5982,10 +5982,51 @@ For more info on custom languages, see the [Code editor API](/components/code-ed
59825982
""d"",
59835983
""r"",
59845984
""properties"",
5985-
""slim"",
5986-
""abap"",
59875985
""abc"",
59885986
""actionscript"",
5987+
""c_cpp"",
5988+
""clojure"",
5989+
""coffee"",
5990+
""csound_document"",
5991+
""csound_orchestra"",
5992+
""css"",
5993+
""dart"",
5994+
""diff"",
5995+
""django"",
5996+
""drools"",
5997+
""edifact"",
5998+
""erlang"",
5999+
""fsl"",
6000+
""gobstones"",
6001+
""graphqlschema"",
6002+
""haml"",
6003+
""haskell"",
6004+
""io"",
6005+
""java"",
6006+
""javascript"",
6007+
""jsp"",
6008+
""liquid"",
6009+
""lsl"",
6010+
""lua"",
6011+
""makefile"",
6012+
""markdown"",
6013+
""maze"",
6014+
""perl"",
6015+
""php"",
6016+
""python"",
6017+
""razor"",
6018+
""rst"",
6019+
""sh"",
6020+
""snippets"",
6021+
""sql"",
6022+
""sqlserver"",
6023+
""tcl"",
6024+
""tex"",
6025+
""textile"",
6026+
""velocity"",
6027+
""wollok"",
6028+
""slim"",
6029+
""abap"",
59896030
""ada"",
59906031
""alda"",
59916032
""apache_conf"",
@@ -5996,79 +6037,52 @@ For more info on custom languages, see the [Code editor API](/components/code-ed
59966037
""assembly_x86"",
59976038
""autohotkey"",
59986039
""batchfile"",
5999-
""c_cpp"",
60006040
""c9search"",
60016041
""cirru"",
6002-
""clojure"",
60036042
""cobol"",
6004-
""coffee"",
60056043
""coldfusion"",
60066044
""crystal"",
60076045
""csharp"",
6008-
""csound_document"",
6009-
""csound_orchestra"",
60106046
""csound_score"",
6011-
""css"",
60126047
""curly"",
6013-
""dart"",
6014-
""diff"",
6015-
""django"",
60166048
""dockerfile"",
6017-
""drools"",
6018-
""edifact"",
60196049
""eiffel"",
60206050
""ejs"",
60216051
""elixir"",
60226052
""elm"",
6023-
""erlang"",
60246053
""forth"",
60256054
""fortran"",
60266055
""fsharp"",
6027-
""fsl"",
60286056
""ftl"",
60296057
""gcode"",
60306058
""gherkin"",
60316059
""gitignore"",
60326060
""glsl"",
6033-
""gobstones"",
60346061
""golang"",
6035-
""graphqlschema"",
60366062
""groovy"",
6037-
""haml"",
60386063
""handlebars"",
6039-
""haskell"",
60406064
""haskell_cabal"",
60416065
""haxe"",
60426066
""hjson"",
60436067
""html_elixir"",
60446068
""html_ruby"",
60456069
""ini"",
6046-
""io"",
60476070
""jack"",
60486071
""jade"",
6049-
""java"",
6050-
""javascript"",
60516072
""json5"",
60526073
""jsoniq"",
6053-
""jsp"",
60546074
""jssm"",
60556075
""jsx"",
60566076
""julia"",
60576077
""kotlin"",
60586078
""latex"",
60596079
""less"",
6060-
""liquid"",
60616080
""lisp"",
60626081
""livescript"",
60636082
""logiql"",
6064-
""lsl"",
6065-
""lua"",
60666083
""luapage"",
60676084
""lucene"",
6068-
""makefile"",
6069-
""markdown"",
60706085
""matlab"",
6071-
""maze"",
60726086
""mediawiki"",
60736087
""mel"",
60746088
""mixal"",
@@ -6082,10 +6096,8 @@ For more info on custom languages, see the [Code editor API](/components/code-ed
60826096
""objectivec"",
60836097
""ocaml"",
60846098
""pascal"",
6085-
""perl"",
60866099
""perl6"",
60876100
""pgsql"",
6088-
""php"",
60896101
""php_laravel_blade"",
60906102
""pig"",
60916103
""powershell"",
@@ -6094,41 +6106,29 @@ For more info on custom languages, see the [Code editor API](/components/code-ed
60946106
""prolog"",
60956107
""protobuf"",
60966108
""puppet"",
6097-
""python"",
60986109
""qml"",
6099-
""razor"",
61006110
""rdoc"",
61016111
""rhtml"",
6102-
""rst"",
61036112
""rust"",
61046113
""sass"",
61056114
""scad"",
61066115
""scala"",
61076116
""scheme"",
61086117
""scss"",
6109-
""sh"",
61106118
""sjs"",
61116119
""smarty"",
6112-
""snippets"",
61136120
""soy_template"",
6114-
""sql"",
6115-
""sqlserver"",
61166121
""swift"",
6117-
""tcl"",
61186122
""terraform"",
6119-
""tex"",
6120-
""textile"",
61216123
""toml"",
61226124
""tsx"",
61236125
""twig"",
61246126
""typescript"",
61256127
""vala"",
61266128
""vbscript"",
6127-
""velocity"",
61286129
""verilog"",
61296130
""vhdl"",
61306131
""visualforce"",
6131-
""wollok"",
61326132
""xml"",
61336133
""xquery"",
61346134
""yaml"",

src/__tests__/snapshot-tests/test-utils-selectors.test.tsx

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

44
import { NodePath, PluginObj, transformSync, types } from '@babel/core';
55
import fs from 'fs';
6-
import glob from 'glob';
6+
import * as glob from 'glob';
77
import { flatten, zip } from 'lodash';
88
import path from 'path';
99

src/code-editor/__tests__/code-editor.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,7 @@ describe('Code editor component', () => {
761761
});
762762

763763
test('adds command to focus editor container on Esc keypress', () => {
764-
let callback: (editor: Ace.Editor) => void;
764+
let callback: ((editor: Ace.Editor) => void) | undefined;
765765
editorMock.commands.addCommand = jest.fn((command: Ace.Command) => {
766766
if (command.name === 'exitCodeEditor' && command.bindKey === 'Esc') {
767767
callback = command.exec;

src/internal/analytics/__integ__/static-multi-page-create.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ class MultiPageCreate extends BasePageObject {
2424
}
2525

2626
async getFunnelLog() {
27-
const funnelLog = await this.browser.execute(() => window.__awsuiFunnelMetrics__);
27+
const funnelLog: ExtendedWindow['__awsuiFunnelMetrics__'] = await this.browser.execute(
28+
() => window.__awsuiFunnelMetrics__
29+
);
2830
const actions = funnelLog.map(item => item.action);
2931
return { funnelLog, actions };
3032
}

src/internal/analytics/__integ__/static-single-page-flow.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class SinglePageCreate extends BasePageObject {
2828
}
2929

3030
async getFunnelLog() {
31-
const funnelLog = await this.browser.execute(() => window.__awsuiFunnelMetrics__);
31+
const funnelLog: ExtendedWindow['__awsuiFunnelMetrics__'] = await this.browser.execute(
32+
() => window.__awsuiFunnelMetrics__
33+
);
3234
const actions = funnelLog.map(item => item.action);
3335
return { funnelLog, actions };
3436
}

src/internal/vendor/__tests__/__snapshots__/third-party-licences.test.ts.snap

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Vendor licenses attribution for d3-scale 1`] = `
44
"Name: d3-array
5-
Version: 3.2.1
5+
Version: 3.2.4
66
License: ISC
77
Private: false
88
Description: Array manipulation, ordering, searching, summarizing, etc.
@@ -12,7 +12,7 @@ Author: Mike Bostock (http://bost.ocks.org/mike)
1212
License Copyright:
1313
===
1414
15-
Copyright 2010-2022 Mike Bostock
15+
Copyright 2010-2023 Mike Bostock
1616
1717
Permission to use, copy, modify, and/or distribute this software for any purpose
1818
with or without fee is hereby granted, provided that the above copyright notice
@@ -26,7 +26,6 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
2626
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
2727
THIS SOFTWARE.
2828
29-
3029
---
3130
3231
Name: internmap
@@ -54,7 +53,6 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
5453
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
5554
THIS SOFTWARE.
5655
57-
5856
---
5957
6058
Name: d3-scale
@@ -82,7 +80,6 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
8280
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
8381
THIS SOFTWARE.
8482
85-
8683
---
8784
8885
Name: d3-color
@@ -110,7 +107,6 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
110107
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
111108
THIS SOFTWARE.
112109
113-
114110
---
115111
116112
Name: d3-interpolate
@@ -138,7 +134,6 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
138134
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
139135
THIS SOFTWARE.
140136
141-
142137
---
143138
144139
Name: d3-format
@@ -166,7 +161,6 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
166161
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
167162
THIS SOFTWARE.
168163
169-
170164
---
171165
172166
Name: d3-time
@@ -194,7 +188,6 @@ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
194188
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
195189
THIS SOFTWARE.
196190
197-
198191
---
199192
200193
Name: d3-time-format

src/property-filter/__tests__/common.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export const providedI18nStrings = {
7474
'i18nStrings.editTokenHeader': 'Edit filter',
7575
'i18nStrings.propertyText': 'Property',
7676
'i18nStrings.operatorText': 'Operator',
77+
'i18nStrings.operatorEqualsText': 'Equals',
7778
'i18nStrings.valueText': 'Value',
7879
'i18nStrings.cancelActionText': 'Cancel',
7980
'i18nStrings.applyActionText': 'Apply',

0 commit comments

Comments
 (0)