Skip to content
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

Merge branch 'google:master' into master #12

Merged
merged 42 commits into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
288dbdb
Unify dart and flutter generation instructions (#1329)
JAicewizard Jun 14, 2023
facdb5e
Support latest pkg:analyzer, release v6.7.1 (#1333)
kevmoo Jun 30, 2023
2185e8b
add Example.property field to docstring in example (#1337)
CicadaCinema Jul 11, 2023
4e8e9ac
Require Dart 3 across the board, use switch expressions (#1344)
kevmoo Aug 8, 2023
ff0e0fd
Standardize analyze across packages (#1345)
kevmoo Aug 9, 2023
aee214d
Bump actions/setup-node from 3.6.0 to 3.8.1 (#1352)
dependabot[bot] Sep 1, 2023
b1b0998
Bump actions/checkout from 3.5.2 to 3.6.0 (#1351)
dependabot[bot] Sep 1, 2023
85e8364
Replace deprecated "dart pub run" with "dart run" (#1353)
tatsuyafujisaki Sep 13, 2023
d055d49
Typo fix in utils.dart (#1363)
Serena867 Oct 23, 2023
df42558
Bump actions/cache from 3.3.1 to 3.3.2 (#1359)
dependabot[bot] Oct 25, 2023
fe636b1
Bump dart-lang/setup-dart from 1.5.0 to 1.5.1 (#1358)
dependabot[bot] Oct 25, 2023
e2c8bad
Bump actions/checkout from 3.6.0 to 4.1.0 (#1357)
dependabot[bot] Oct 25, 2023
f8e57b5
Update to latest lints (#1361)
kevmoo Oct 26, 2023
f7cb516
flutter pub run notice removed (#1364)
LassazVegaz Oct 28, 2023
a072c01
blast_repo fixes (#1383)
kevmoo Dec 20, 2023
ce2de93
Bump actions/stale from 8.0.0 to 9.0.0 (#1387)
dependabot[bot] Jan 1, 2024
ac8b941
Bump actions/setup-node from 3.8.1 to 4.0.1 (#1386)
dependabot[bot] Jan 1, 2024
7162134
Bump actions/checkout from 4.1.0 to 4.1.1 (#1366)
dependabot[bot] Jan 1, 2024
7f1c192
Bump dart-lang/setup-dart from 1.5.1 to 1.6.0 (#1367)
dependabot[bot] Jan 1, 2024
84e3c2a
CI: fix markdown lint (#1389)
kevmoo Jan 15, 2024
e9527ee
blast_repo fixes (#1390)
kevmoo Jan 15, 2024
28f7c9a
Bump actions/cache from 3.3.3 to 4.0.0 (#1397)
dependabot[bot] Feb 28, 2024
3a833d9
Bump DavidAnson/markdownlint-cli2-action from 14.0.0 to 15.0.0 (#1395)
dependabot[bot] Feb 28, 2024
24a830c
Bump dart-lang/setup-dart from 1.6.1 to 1.6.2 (#1396)
dependabot[bot] Feb 28, 2024
324acee
Bump actions/cache from 4.0.0 to 4.0.1 (#1404)
dependabot[bot] Mar 1, 2024
5b46ef9
Added createJsonKeys (#1401)
ChreSyr Mar 3, 2024
1bfb616
Bump actions/cache from 4.0.1 to 4.0.2 (#1411)
dependabot[bot] Apr 5, 2024
1694d6f
Bump actions/checkout from 4.1.1 to 4.1.2 (#1410)
dependabot[bot] Apr 5, 2024
dbe976a
Make casts to int safe in dart2wasm. (#1416)
eyebrowsoffire Apr 24, 2024
eea959d
json_annotation: prepare to release v4.9.0 (#1417)
kevmoo Apr 24, 2024
9694cc5
json_serializable: publish v6.8.0 (#1418)
kevmoo Apr 24, 2024
02e17e5
checked_yaml: fix test source (#1419)
kevmoo Apr 24, 2024
629d369
Update analyzer version and min SDK constraint and fix analysis issue…
kevmoo May 20, 2024
a7f3893
--- (#1429)
dependabot[bot] May 20, 2024
c672f2d
Bump dart-lang/setup-dart from 1.6.2 to 1.6.4 (#1424)
dependabot[bot] May 20, 2024
a58b190
Bump DavidAnson/markdownlint-cli2-action from 15.0.0 to 16.0.0 (#1423)
dependabot[bot] May 20, 2024
23dd460
blast_repo fixes (#1430)
kevmoo May 20, 2024
ca77b65
Bump the dependencies group with 2 updates (#1434)
dependabot[bot] Jul 1, 2024
ac55cd4
Move to use (experimental) workspaces (#1433)
kevmoo Aug 5, 2024
27df699
Move SDK constraint to map to 3.5 stable (#1440)
kevmoo Aug 6, 2024
9ccbbb2
Update and fix lints (#1442)
kevmoo Aug 8, 2024
55d68f4
Use map syntax to clean up `null` handling in `toJson` functions (#1443)
kevmoo Aug 9, 2024
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
12 changes: 9 additions & 3 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
- package-ecosystem: github-actions
directory: /
schedule:
interval: "monthly"
interval: monthly
labels:
- autosubmit
groups:
dependencies:
patterns:
- "*"
387 changes: 122 additions & 265 deletions .github/workflows/dart.yml

Large diffs are not rendered by default.

18 changes: 4 additions & 14 deletions .github/workflows/markdown_linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,10 @@ jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- uses: gaurav-nelson/github-action-markdown-link-check@v1
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: gaurav-nelson/github-action-markdown-link-check@5c5dfc0ac2e225883c0e5f03a85311ec2830d368
markdown_lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 14.x ]
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install --global markdownlint-cli2
- name: Run lint check
run: markdownlint-cli2-fix "**/*.md"
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: DavidAnson/markdownlint-cli2-action@b4c9feab76d8025d1e83c653fa3990936df0e6c8
36 changes: 20 additions & 16 deletions .github/workflows/no-response.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,37 @@
# A workflow to close issues where the author hasn't responded to a request for
# more information; see https://github.com/godofredoc/no-response for docs.
# more information; see https://github.com/actions/stale.

name: No Response

# Both `issue_comment` and `scheduled` event types are required.
# Run as a daily cron.
on:
issue_comment:
types: [created]
schedule:
# Every day at 8am
- cron: '0 8 * * *'

# All permissions not specified are set to 'none'.
permissions:
issues: write
pull-requests: write

jobs:
noResponse:
no-response:
runs-on: ubuntu-latest
if: ${{ github.repository_owner == 'google' }}
steps:
- uses: godofredoc/no-response@0ce2dc0e63e1c7d2b87752ceed091f6d32c9df09
with:
responseRequiredLabel: "State: needs info"
daysUntilClose: 14
# Comment to post when closing an Issue for lack of response.
closeComment: >
Without additional information we're not able to resolve this
issue, so it will be closed at this time. You're still free to add
more info and respond to any questions above, though. We'll reopen
the case if you do. Thanks for your contribution!
token: ${{ github.token }}
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e
with:
# Don't automatically mark inactive issues+PRs as stale.
days-before-stale: -1
# Close needs-info issues and PRs after 14 days of inactivity.
days-before-close: 14
stale-issue-label: "needs-info"
close-issue-message: >
Without additional information we're not able to resolve this issue.
Feel free to add more info or respond to any questions above and we
can reopen the case. Thanks for your contribution!
stale-pr-label: "needs-info"
close-pr-message: >
Without additional information we're not able to resolve this PR.
Feel free to add more info or respond to any questions above.
Thanks for your contribution!
3 changes: 3 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,6 @@ jobs:
publish:
if: ${{ github.repository_owner == 'google' }}
uses: dart-lang/ecosystem/.github/workflows/publish.yaml@main
permissions:
id-token: write # Required for authentication using OIDC
pull-requests: write # Required for writing the pull request note
4 changes: 4 additions & 0 deletions _test_yaml/mono_pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ stages:
- group:
- format
- analyze: --fatal-infos .
sdk: dev
- group:
- analyze
sdk: pubspec
- unit_test:
- test
- ensure_build:
Expand Down
23 changes: 8 additions & 15 deletions _test_yaml/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,18 @@ name: _test_yaml
publish_to: none

environment:
sdk: ^3.0.0
sdk: ^3.5.0

resolution: workspace

dev_dependencies:
_json_serial_shared_test:
path: ../shared_test
build_runner: ^2.0.0
build_runner: ^2.2.1
build_verify: ^3.0.0
checked_yaml: any
dart_flutter_team_lints: ^1.0.0
json_annotation: ^4.7.0
json_serializable: any
checked_yaml: ^2.0.4-wip
json_annotation: ^4.9.0
json_serializable: ^6.8.0
path: ^1.8.2
test: ^1.6.0
test: ^1.21.6
yaml: ^3.0.0

dependency_overrides:
checked_yaml:
path: ../checked_yaml
json_annotation:
path: ../json_annotation
json_serializable:
path: ../json_serializable
2 changes: 1 addition & 1 deletion _test_yaml/test/ensure_build_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@TestOn('vm')
@Tags(['presubmit-only'])
library test;
library;

import 'package:build_verify/build_verify.dart';
import 'package:test/test.dart';
Expand Down
43 changes: 19 additions & 24 deletions _test_yaml/test/src/build_config.g.dart

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

2 changes: 1 addition & 1 deletion _test_yaml/test/yaml_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// BSD-style license that can be found in the LICENSE file.

@TestOn('vm')
library test;
library;

import 'dart:io';

Expand Down
6 changes: 0 additions & 6 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,17 @@ linter:
- avoid_void_async
- cancel_subscriptions
- cascade_invocations
- comment_references
- invalid_case_patterns
- join_return_with_assignment
- literal_only_boolean_expressions
- missing_whitespace_between_adjacent_strings
- no_runtimeType_toString
- package_api_docs
- prefer_const_constructors
- prefer_const_declarations
- prefer_expression_function_bodies
- prefer_final_locals
- prefer_relative_imports
- sort_child_properties_last
- test_types_in_equals
- type_literal_in_constant_pattern
- unnecessary_breaks
- unsafe_html
- use_full_hex_values_for_flutter_colors
- use_string_buffers
- use_super_parameters
4 changes: 4 additions & 0 deletions checked_yaml/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.0.4-wip

- Require Dart 3.5

## 2.0.3

- Require Dart 2.19
Expand Down
2 changes: 1 addition & 1 deletion checked_yaml/example/example.g.dart

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

5 changes: 4 additions & 1 deletion checked_yaml/mono_pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ stages:
- group:
- format
- analyze: --fatal-infos .

sdk: dev
- group:
- analyze
sdk: pubspec
- unit_test:
- test
- ensure_build:
Expand Down
19 changes: 7 additions & 12 deletions checked_yaml/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: checked_yaml
version: 2.0.3
version: 2.0.4-wip

description: >-
Generate more helpful exceptions when decoding YAML documents using
Expand All @@ -13,24 +13,19 @@ topics:
- codegen

environment:
sdk: '>=2.19.0 <3.0.0'
sdk: ^3.5.0

resolution: workspace

dependencies:
json_annotation: ^4.3.0
source_span: ^1.8.0
yaml: ^3.0.0

dev_dependencies:
build_runner: ^2.0.0
build_runner: ^2.0.6
build_verify: ^3.0.0
dart_flutter_team_lints: ^1.0.0
json_serializable: ^6.0.0
path: ^1.0.0
test: ^1.16.0
path: ^1.8.0
test: ^1.17.10
test_process: ^2.0.0

#dependency_overrides:
# json_annotation:
# path: ../json_annotation
# json_serializable:
# path: ../json_serializable
2 changes: 1 addition & 1 deletion checked_yaml/test/ensure_build_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@TestOn('vm')
@Tags(['presubmit-only'])
library test;
library;

import 'package:build_verify/build_verify.dart';
import 'package:test/test.dart';
Expand Down
4 changes: 2 additions & 2 deletions checked_yaml/test/example_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ line 1, column 1: Required keys are missing: name.
_expectThrows(
'{"name":"something"}',
r'''
line 1, column 1: Missing key "count". type 'Null' is not a subtype of type 'int' in type cast
line 1, column 1: Missing key "count". type 'Null' is not a subtype of type 'num' in type cast
1 │ {"name":"something"}
│ ^^^^^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -114,7 +114,7 @@ line 1, column 10: Unsupported value for "name". Cannot be empty.
});
}

void _expectThrows(String yamlContent, matcher) => expect(
void _expectThrows(String yamlContent, String matcher) => expect(
() => _run(yamlContent),
throwsA(
isA<ParsedYamlException>().having(
Expand Down
9 changes: 3 additions & 6 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ dependencies to your `pubspec.yaml`.

```yaml
dependencies:
json_annotation: ^4.8.0
json_annotation: ^4.9.0

dev_dependencies:
build_runner: ^2.3.3
json_serializable: ^6.6.0
json_serializable: ^6.8.0
```

Annotate your code with classes defined in
Expand All @@ -23,7 +23,7 @@ Annotate your code with classes defined in
Run `dart run build_runner build` to generate files into your source directory.

```console
> dart pub run build_runner build
> dart run build_runner build
[INFO] ensureBuildScript: Generating build script completed, took 368ms
[INFO] BuildDefinition: Reading cached asset graph completed, took 54ms
[INFO] BuildDefinition: Checking for updates since last build completed, took 663ms
Expand All @@ -32,9 +32,6 @@ Run `dart run build_runner build` to generate files into your source directory.
[INFO] Build: Succeeded after 4687ms with 1 outputs
```

_NOTE_: If you're using Flutter, replace `dart run` with
`flutter pub run`.

[example]: lib/example.dart
[example_g]: lib/example.g.dart
[json_annotation]: https://pub.dev/packages/json_annotation
Expand Down
Loading
Loading