Skip to content

Commit 481aa81

Browse files
Merge #307
307: Raise min Dart SDK to 3.0.0 r=brunoocasali a=ahmednfwela # Pull Request ## What does this PR do? - Raise the minimum dart sdk to 3.0.0, this lets us use the [super parameters](https://dart.dev/language/constructors#super-parameters) feature, class modifiers, records and patterns ## PR checklist Please check if your PR fulfills the following requirements: - [ ] Does this PR fix an existing issue, or have you listed the changes applied in the PR description (and why they are needed)? - [x] Have you read the contributing guidelines? - [x] Have you made sure that the title is accurate and descriptive of the changes? Thank you so much for contributing to Meilisearch! Co-authored-by: Ahmed Fwela <[email protected]>
2 parents ba6b3a2 + 9e0cc83 commit 481aa81

File tree

8 files changed

+36
-42
lines changed

8 files changed

+36
-42
lines changed

.github/workflows/pre-release-tests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
version: [
21-
'2.15.1',
22-
'2.19.0',
23-
]
20+
version: ["3.0.0"]
2421
name: integration-tests-against-rc (dart ${{ matrix.version }})
2522
steps:
2623
- name: Checkout

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
strategy:
2323
fail-fast: false
2424
matrix:
25-
version: ["2.15.1", "2.19.0"]
25+
version: ['3.0.0']
2626
name: integration-tests (dart ${{ matrix.version }})
2727

2828
services:

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
[comment]: <> (All notable changes to this project will be documented in this file.)
22

3+
# 0.13.0
4+
5+
### Breaking Changes
6+
7+
- The minimum supported Dart runtime is now `3.0.0`.
8+
39
# 0.12.0
410

511
### Breaking Changes:

CONTRIBUTING.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -136,21 +136,6 @@ static const String current = 'X.X.X';
136136
version: X.X.X
137137
```
138138
139-
- the file [`example/pubspec.yaml`](./example/pubspec.yaml).
140-
141-
```yaml
142-
meilisearch: "X.X.X"
143-
```
144-
145-
- the file [`example/pubspec.lock`](./example/pubspec.lock).
146-
147-
```yml
148-
meilisearch:
149-
dependency: "direct main"
150-
...
151-
version: "X.X.X"
152-
```
153-
154139
- the file [`README.md` in the Installation section](./README.md):
155140

156141
```yaml

bors.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
status = [
2-
'integration-tests (dart 2.15.1)',
3-
'integration-tests (dart 2.19.0)',
2+
'integration-tests (dart 3.0.0)',
43
'linter-check',
54
'pana'
65
]

example/pubspec.lock

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,32 @@ packages:
55
dependency: transitive
66
description:
77
name: collection
8-
url: "https://pub.dartlang.org"
8+
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
9+
url: "https://pub.dev"
910
source: hosted
10-
version: "1.17.1"
11+
version: "1.17.2"
1112
crypto:
1213
dependency: transitive
1314
description:
1415
name: crypto
15-
url: "https://pub.dartlang.org"
16+
sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab
17+
url: "https://pub.dev"
1618
source: hosted
17-
version: "3.0.2"
19+
version: "3.0.3"
1820
dio:
1921
dependency: transitive
2022
description:
2123
name: dio
22-
url: "https://pub.dartlang.org"
24+
sha256: "347d56c26d63519552ef9a569f2a593dda99a81fdbdff13c584b7197cfe05059"
25+
url: "https://pub.dev"
2326
source: hosted
2427
version: "5.1.2"
2528
http_parser:
2629
dependency: transitive
2730
description:
2831
name: http_parser
29-
url: "https://pub.dartlang.org"
32+
sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b"
33+
url: "https://pub.dev"
3034
source: hosted
3135
version: "4.0.2"
3236
meilisearch:
@@ -40,43 +44,49 @@ packages:
4044
dependency: transitive
4145
description:
4246
name: meta
43-
url: "https://pub.dartlang.org"
47+
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
48+
url: "https://pub.dev"
4449
source: hosted
4550
version: "1.9.1"
4651
path:
4752
dependency: transitive
4853
description:
4954
name: path
50-
url: "https://pub.dartlang.org"
55+
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
56+
url: "https://pub.dev"
5157
source: hosted
5258
version: "1.8.3"
5359
source_span:
5460
dependency: transitive
5561
description:
5662
name: source_span
57-
url: "https://pub.dartlang.org"
63+
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
64+
url: "https://pub.dev"
5865
source: hosted
5966
version: "1.10.0"
6067
string_scanner:
6168
dependency: transitive
6269
description:
6370
name: string_scanner
64-
url: "https://pub.dartlang.org"
71+
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
72+
url: "https://pub.dev"
6573
source: hosted
6674
version: "1.2.0"
6775
term_glyph:
6876
dependency: transitive
6977
description:
7078
name: term_glyph
71-
url: "https://pub.dartlang.org"
79+
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
80+
url: "https://pub.dev"
7281
source: hosted
7382
version: "1.2.1"
7483
typed_data:
7584
dependency: transitive
7685
description:
7786
name: typed_data
78-
url: "https://pub.dartlang.org"
87+
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
88+
url: "https://pub.dev"
7989
source: hosted
8090
version: "1.3.2"
8191
sdks:
82-
dart: ">=2.18.0 <3.0.0"
92+
dart: ">=3.0.0 <4.0.0"

example/pubspec.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
name: example
2-
publish_to: 'none'
2+
publish_to: "none"
33
version: 0.1.0
44

55
environment:
6-
sdk: ">=2.12.0 <3.0.0"
6+
sdk: ">=3.0.0 <4.0.0"
77

88
dependencies:
9-
meilisearch: "0.12.0"
10-
11-
dependency_overrides:
129
meilisearch:
13-
path: ..
10+
path: ../

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repository: https://github.com/meilisearch/meilisearch-dart
66
issue_tracker: https://github.com/meilisearch/meilisearch-dart/issues
77

88
environment:
9-
sdk: ">=2.15.0 <3.0.0"
9+
sdk: ">=3.0.0 <4.0.0"
1010

1111
dependencies:
1212
dio: ^5.0.0

0 commit comments

Comments
 (0)