Skip to content

chore: bump js to 0.7.1 #5008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions actions/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ environment:
dependencies:
aws_common: ^0.6.1
collection: ^1.18.0
js: ^0.6.7
js: ">=0.6.4 <0.8.0"
json_annotation: ">=4.8.1 <4.9.0"
path: ">=1.8.0 <2.0.0"
process: ^5.0.0
Expand All @@ -23,9 +23,10 @@ dev_dependencies:
amplify_lints: ^3.0.0
build_runner: ^2.4.0
build_test: ^2.2.0
checks: ^0.2.2
checks: ^0.3.0
json_serializable: 6.7.1
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"

aft:
scripts:
Expand Down
22 changes: 11 additions & 11 deletions actions/test/node/interop_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ void main() {

test('exec', () async {
await check(childProcess.exec('echo', ['Hello'])).completes(
it()
((it) => it
..has((res) => res.exitCode, 'exitCode').equals(0)
..has((res) => res.stdout, 'stdout').equals('Hello\n'),
..has((res) => res.stdout, 'stdout').equals('Hello\n')),
);
});

Expand All @@ -56,17 +56,17 @@ void main() {
unawaited(
check(proc.stdout!.stream).withQueue.inOrder([
// ignore: unawaited_futures
it()..emits(it()..deepEquals(utf8.encode('Hello\n'))),
(it) => it..emits((it) => it..deepEquals(utf8.encode('Hello\n'))),
// ignore: unawaited_futures
it()..isDone(),
(it) => it..isDone(),
]),
);
unawaited(
check(proc.stderr!.stream).withQueue.isDone(),
);
unawaited(
check((proc.onClose, proc.onExit).wait).completes(
it()..has((res) => res.$2.toDartInt, 'exitCode').equals(0),
(it) => it..has((res) => res.$2.toDartInt, 'exitCode').equals(0),
),
);
await check(proc.onSpawn).completes();
Expand All @@ -82,21 +82,21 @@ void main() {
);
unawaited(
check(proc.stdout!.stream).withQueue.inOrder([
it()
((it) => it
// ignore: unawaited_futures
..emits(
it()..deepEquals(utf8.encode('Hello\n')),
),
// ignore: unawaited_futures
it()..isDone(),
(it) => it..deepEquals(utf8.encode('Hello\n')),
)
// ignore: unawaited_futures
..isDone()),
]),
);
unawaited(
check(proc.stderr!.stream).withQueue.isDone(),
);
unawaited(
check((proc.onClose, proc.onExit).wait).completes(
it()..has((res) => res.$2.toDartInt, 'exitCode').equals(0),
(it) => it..has((res) => res.$2.toDartInt, 'exitCode').equals(0),
),
);
await check(proc.onSpawn).completes();
Expand Down
30 changes: 19 additions & 11 deletions actions/test/node/process_manager_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@ void main() {
group('run', () {
test('echo', () async {
await check(processManager.run(['echo', 'Hello'])).completes(
it()
((it) => it
..has((res) => res.exitCode, 'exitCode').equals(0)
..has((res) => res.stdout, 'stdout').equals('Hello\n'),
..has((res) => res.stdout, 'stdout').equals('Hello\n')),
);
});

test('pipe', () async {
final echo = childProcess.spawn('echo', ['Hello']);
await check(processManager.run(['tee'], pipe: echo)).completes(
it()
((it) => it
..has((res) => res.exitCode, 'exitCode').equals(0)
..has((res) => res.stdout, 'stdout').equals('Hello\n'),
..has((res) => res.stdout, 'stdout').equals('Hello\n')),
);
});
});
Expand All @@ -58,16 +58,19 @@ void main() {
if (mode != ProcessStartMode.inheritStdio &&
mode != ProcessStartMode.detached)
// ignore: unawaited_futures
it()..emits(it()..deepEquals(expectedOutput)),
((it) => it
..emits(
((it) => it..deepEquals(expectedOutput)),
)),
// ignore: unawaited_futures
it()..isDone(),
((it) => it..isDone()),
]),
);
unawaited(
check(proc.stderr).withQueue.isDone(),
);
check(proc.pid).isGreaterThan(0);
await check(proc.exitCode).completes(it()..equals(0));
await check(proc.exitCode).completes(((it) => it..equals(0)));
});
}

Expand All @@ -76,15 +79,20 @@ void main() {
final proc = await processManager.start(['tee'], pipe: echo);
unawaited(
check(proc.stdout).withQueue.inOrder([
it()
((it) => it
// ignore: unawaited_futures
..emits(it()..deepEquals(utf8.encode('Hello\n'))),
..emits(
(it) => it
..deepEquals(
utf8.encode('Hello\n'),
),
)),
// ignore: unawaited_futures
it()..isDone(),
((it) => it..isDone()),
]),
);
unawaited(check(proc.stderr).withQueue.isDone());
await check(proc.exitCode).completes(it()..equals(0));
await check(proc.exitCode).completes((it) => it..equals(0));
});
});
});
Expand Down
4 changes: 2 additions & 2 deletions packages/aft/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ dev_dependencies:
amplify_lints: ">=2.0.2 <2.1.0"
build_runner: ^2.4.0
built_value_generator: 8.8.1
checks: ^0.2.2
checks: ^0.3.0
json_serializable: 6.7.1
test: ^1.22.1
test: ">=1.25.0 <=1.26.0"
test_descriptor: ^2.0.1

executables:
Expand Down
10 changes: 6 additions & 4 deletions packages/aft/test/config/config_loader_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,16 @@ aft:
'workingDirectory',
).equals(workingDirectory)
..has((config) => config.dependencies.toMap(), 'dependencies').which(
it()
((it) => it
..containsKey('json_serializable')
..not(it()..containsKey('built_value')),
..not(
(it) => it.containsKey('built_value'),
)),
)
..has((config) => config.scripts.toMap(), 'scripts').which(
it()
((it) => it
..containsKey('license')
..containsKey('format'),
..containsKey('format')),
);
});
});
Expand Down
3 changes: 2 additions & 1 deletion packages/amplify_core/doc/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,5 @@ dev_dependencies:
path: packages/code_excerpter
# TODO: Bump when global SDK >=3.1
ref: 923adadacbb95f11d222e6fc6135f6dbb66f84ee
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
3 changes: 2 additions & 1 deletion packages/amplify_core/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ dev_dependencies:
ref: 923adadacbb95f11d222e6fc6135f6dbb66f84ee
json_serializable: 6.7.1
path: any
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ dev_dependencies:
built_value_generator: 8.8.1
drift_dev: ">=2.14.0 <2.15.0"
mocktail: ^1.0.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test:
^1.25.5

# TODO - use cipher libraries for encrypted cached Analytics Events
3 changes: 2 additions & 1 deletion packages/api/amplify_api_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ dev_dependencies:
build_test: ^2.1.5
build_web_compilers: ^4.0.0
stream_channel: ^2.1.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
3 changes: 2 additions & 1 deletion packages/auth/amplify_auth_cognito/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ dev_dependencies:
otp: ^3.1.4
stack_trace: ^1.10.0
stream_transform: ^2.1.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
webdriver: ^3.0.0
webview_flutter: ^4.0.0
webview_flutter_wkwebview: ^3.1.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ dev_dependencies:
mime: ^1.0.0
path: ">=1.8.0 <2.0.0"
shelf: ^1.4.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
webdriver: ^3.0.0
5 changes: 3 additions & 2 deletions packages/auth/amplify_auth_cognito_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies:
fixnum: ^1.0.0
http: ">=0.13.0 <2.0.0"
intl: ">=0.18.0 <1.0.0"
js: ^0.6.4
js: ">=0.6.4 <0.8.0"
json_annotation: ">=4.8.1 <4.9.0"
meta: ^1.7.0
oauth2: ^2.0.2
Expand All @@ -50,7 +50,8 @@ dev_dependencies:
mockito: ^5.0.0
smithy_codegen:
path: ../../smithy/smithy_codegen
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
worker_bee_builder: ">=0.3.0 <0.4.0"

flutter:
Expand Down
3 changes: 2 additions & 1 deletion packages/auth/amplify_auth_cognito_test/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ dependencies:
smithy_aws: any
stream_channel: ^2.0.0
stream_transform: ^2.0.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
web_socket_channel: ^2.3.0
webdriver: ^3.0.0
worker_bee: any
Expand Down
5 changes: 3 additions & 2 deletions packages/aws_common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies:
built_value: ^8.6.0
collection: ^1.15.0
http2: ^2.0.0
js: ^0.6.4
js: ">=0.6.4 <0.8.0"
json_annotation: ">=4.8.1 <4.9.0"
logging: ^1.0.0
meta: ^1.7.0
Expand All @@ -32,4 +32,5 @@ dev_dependencies:
built_value_generator: 8.8.1
json_serializable: 6.7.1
stream_channel: ^2.1.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
3 changes: 2 additions & 1 deletion packages/aws_signature_v4/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ dev_dependencies:
build_web_compilers: ^4.0.0
json_serializable: 6.7.1
stream_channel: ^2.1.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"

false_secrets:
- test/**
5 changes: 3 additions & 2 deletions packages/common/amplify_db_common_dart/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ dev_dependencies:
build_runner: ^2.4.0
build_test: ^2.0.0
build_web_compilers: ^4.0.0
drift_dev: ">=2.14.0 <2.15.0"
test: ^1.22.1
drift_dev: ">=2.18.0 <2.19.0"
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
3 changes: 2 additions & 1 deletion packages/example_common/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ dependencies:

dev_dependencies:
amplify_lints: ">=2.0.2 <2.1.0"
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ dev_dependencies:
sdk: flutter
mockito: ^5.0.0
pigeon: ^11.0.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"

flutter:
plugin:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies:
built_value: ^8.6.0
ffi: ^2.0.0
file: ">=6.0.0 <8.0.0"
js: ^0.6.4
js: ">=0.6.4 <0.8.0"
meta: ^1.7.0
path: ">=1.8.0 <2.0.0"
win32: ">=4.1.2 <6.0.0"
Expand All @@ -41,7 +41,8 @@ dev_dependencies:
build_web_compilers: ^4.0.0
built_value_generator: 8.8.1
ffigen: ^9.0.0
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
worker_bee_builder: ">=0.3.0 <0.4.0"

flutter:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ dependencies:
async: ^2.10.0
aws_common: any
file: ">=6.0.0 <8.0.0"
test: ^1.22.1
# TODO(equartey): Can be bumped when test_api is bumped to ^0.7.2 in integration_test
test: ">=1.25.0 <=1.26.0"
worker_bee: any

dev_dependencies:
Expand Down
3 changes: 2 additions & 1 deletion packages/smithy/goldens/lib/awsJson1_0/pubspec.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/smithy/goldens/lib/awsJson1_1/pubspec.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/smithy/goldens/lib/awsQuery/pubspec.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/smithy/goldens/lib/ec2Query/pubspec.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/smithy/goldens/lib/restJson1/pubspec.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion packages/smithy/goldens/lib/restXml/pubspec.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading