Skip to content

Commit

Permalink
Merge pull request #91 from leancodepl/chore/bump-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
shilangyu authored Sep 26, 2023
2 parents 2163730 + 6f12b93 commit a25cae5
Show file tree
Hide file tree
Showing 20 changed files with 1,024 additions and 1,336 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/leancode_contracts-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: dart-lang/setup-dart@v1
with:
sdk: 2.19.2
sdk: 3.1.2

- name: Publish to pub.dev
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/leancode_contracts-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
strategy:
fail-fast: false
matrix:
dart_sdk: ["2.17.5", "2.18.2", "2.19.0", "3.0.0"]
dart_sdk: ["3.1.2"]

defaults:
run:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/leancode_contracts_generator-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

- uses: dart-lang/setup-dart@v1
with:
sdk: 2.19.2
sdk: 3.1.2

- name: Publish to pub.dev
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/leancode_contracts_generator-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
dart_sdk: ["2.19.0", "3.0.0"]
dart_sdk: ["3.1.2"]

runs-on: ubuntu-latest

Expand Down
4 changes: 4 additions & 0 deletions packages/leancode_contracts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.7.0

- **BREAKING**: Bump Dart SDK to 3.0.0

# 0.6.0

- **BREAKING**: Removed `DateOnly.source`. Use `DateOnly.toDateTimeLocal()` or `DateOnly.toDateTimeUtc()` instead
Expand Down
6 changes: 3 additions & 3 deletions packages/leancode_contracts/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: leancode_contracts
repository: https://github.com/leancodepl/contractsgenerator-dart
description: Dart contracts runtime for a CQRS API.
version: 0.6.0
version: 0.7.0

environment:
sdk: ">=2.17.0 <3.0.0"
sdk: ">=3.0.0 <4.0.0"

dependencies:
cqrs: ">=7.0.0 <10.0.0"
equatable: ^2.0.3
json_annotation: ^4.6.0

dev_dependencies:
leancode_lint: ^3.0.0
leancode_lint: ^6.0.0
test: ^1.17.10
5 changes: 5 additions & 0 deletions packages/leancode_contracts_generator/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.12.0

- **BREAKING**: Bump `package:protobuf` to 3.0.0
- **BREAKING**: Bump Dart SDK to 3.0.0

# 0.11.0

- **BREAKING**: Bump Dart SDK to 2.19
Expand Down
2 changes: 1 addition & 1 deletion packages/leancode_contracts_generator/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ dependencies:
leancode_contracts:
path: ../../leancode_contracts
dev_dependencies:
leancode_lint: ^4.0.0+1
leancode_lint: ^5.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AttributeCreator {
else if (param.hasNamed())
'${param.named.name}: ${valueCreator.create(param.named.value).assignment}'
else
throw StateError('Unhandled AttributeRef variant')
throw StateError('Unhandled AttributeRef variant'),
];

return '/// ${attributeRef.attributeName}(${params.join(', ')})';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ContractsGenerator {
final body = [
for (final statement in db.statements)
if (db.shouldInclude(statement.name) && !db.isAttribute(statement))
statementCreator.create(statement)
statementCreator.create(statement),
];

// TODO: knownGroups?
Expand Down Expand Up @@ -166,7 +166,7 @@ class ContractsGenerator {
final env = IOEnvironment(packageGraph);
final writer = MemoryAssetWriter();

final res = AnalyzerResolvers();
final res = AnalyzerResolvers.sharedInstance;

await runBuilder(js, [f], env.reader, writer, res);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class GeneratorScript {
stdoutEncoding: null,
stderrEncoding: null,
environment: {
'SERVER_VERSION': overrideGeneratorVersion ?? supportedVersion
'SERVER_VERSION': overrideGeneratorVersion ?? supportedVersion,
},
);

Expand Down
Loading

0 comments on commit a25cae5

Please sign in to comment.