Skip to content

fix: Add support for Dart 3.4, 3.5; remove support for Dart 3.0, 3.1 #1016

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

Merged
merged 6 commits into from
Oct 17, 2024
Merged
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
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ jobs:
include:
# Dart framework may contain breaking changes in minor version releases, not following semver.
# The latest Dart framework (below) is tested on all architectures (Ubuntu, macOS, Windows).
- name: Dart 3.3, Ubuntu
- name: Dart 3.5, Ubuntu
os: ubuntu-latest
sdk: 3.3.3
- name: Dart 3.3, macOS
sdk: 3.5.3
- name: Dart 3.5, macOS
os: macos-latest
sdk: 3.3.3
- name: Dart 3.3, Windows
sdk: 3.5.3
- name: Dart 3.5, Windows
os: windows-latest
sdk: 3.3.3
sdk: 3.5.3
# Older Dart framework versions (below) are only tested with Ubuntu to reduce CI resource usage.
- name: Dart 3.2
- name: Dart 3.4
os: ubuntu-latest
sdk: 3.2.6
- name: Dart 3.1
sdk: 3.4.4
- name: Dart 3.3
os: ubuntu-latest
sdk: 3.1.5
- name: Dart 3.0
sdk: 3.3.4
- name: Dart 3.2
os: ubuntu-latest
sdk: 3.0.7
sdk: 3.2.6
- name: Dart beta
os: ubuntu-latest
sdk: beta
Expand Down
10 changes: 10 additions & 0 deletions packages/dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## [8.0.0](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-7.0.1...dart-8.0.0) (2024-10-17)

### BREAKING CHANGES

* This release removes support for Dart 3.0, 3.1 ([#1016](https://github.com/parse-community/Parse-SDK-Flutter/pull/1016))

### Features

* Add support for Dart 3.4, 3.5; remove support for Dart 3.0, 3.1 ([#1016](https://github.com/parse-community/Parse-SDK-Flutter/pull/1016))

## [7.0.1](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-7.0.0...dart-7.0.1) (2024-10-16)

### Bug Fixes
Expand Down
6 changes: 3 additions & 3 deletions packages/dart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ The Parse Dart SDK is continuously tested with the most recent release of the Da

| Version | Latest Version | End of Support | Compatible |
|-----------|----------------|----------------|------------|
| Dart 3.3 | 3.3.3 | Mar 2025 | ✅ Yes |
| Dart 3.2 | 3.2.6 | Jan 2025 | ✅ Yes |
| Dart 3.1 | 3.1.5 | Oct 2024 | ✅ Yes |
| Dart 3.0 | 3.0.7 | May 2024 | ✅ Yes |
| Dart 3.3 | 3.3.4 | Apr 2025 | ✅ Yes |
| Dart 3.4 | 3.4.4 | Jun 2025 | ✅ Yes |
| Dart 3.5 | 3.5.3 | Sep 2025 | ✅ Yes |

## Getting Started

Expand Down
54 changes: 54 additions & 0 deletions packages/dart/lib/parse_server_sdk.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// ignore_for_file: unnecessary_import
library flutter_parse_sdk;

import 'dart:async';
Expand Down Expand Up @@ -28,58 +29,111 @@ export 'src/network/parse_dio_client.dart';
export 'src/network/parse_http_client.dart';

part 'src/base/parse_constants.dart';

part 'src/data/parse_core_data.dart';

part 'src/data/parse_subclass_handler.dart';

part 'src/enums/parse_enum_api_rq.dart';

part 'src/network/options.dart';

part 'src/network/parse_client.dart';

part 'src/network/parse_connectivity.dart';

part 'src/network/parse_live_query.dart';

part 'src/network/parse_query.dart';

part 'src/objects/parse_acl.dart';

part 'src/objects/parse_array.dart';

part 'src/objects/parse_base.dart';

part 'src/objects/parse_cloneable.dart';

part 'src/objects/parse_config.dart';

part 'src/objects/parse_error.dart';

part 'src/objects/parse_exception.dart';

part 'src/objects/parse_file.dart';

part 'src/objects/parse_file_base.dart';

part 'src/objects/parse_file_web.dart';

part 'src/objects/parse_function.dart';

part 'src/objects/parse_geo_point.dart';

part 'src/objects/parse_installation.dart';

part 'src/objects/parse_number.dart';

part 'src/objects/parse_object.dart';

part 'src/objects/parse_operation/parse_add_operation.dart';

part 'src/objects/parse_operation/parse_add_relation_operation.dart';

part 'src/objects/parse_operation/parse_add_unique_operation.dart';

part 'src/objects/parse_operation/parse_increment_operation.dart';

part 'src/objects/parse_operation/parse_operation.dart';

part 'src/objects/parse_operation/parse_remove_operation.dart';

part 'src/objects/parse_operation/parse_remove_relation_operation.dart';

part 'src/objects/parse_relation.dart';

part 'src/objects/parse_response.dart';

part 'src/objects/parse_save_state_aware_child.dart';

part 'src/objects/parse_session.dart';

part 'src/objects/parse_user.dart';

part 'src/objects/parse_x_file.dart';

part 'src/objects/response/parse_error_response.dart';

part 'src/objects/response/parse_exception_response.dart';

part 'src/objects/response/parse_response_builder.dart';

part 'src/objects/response/parse_response_utils.dart';

part 'src/objects/response/parse_success_no_results.dart';

part 'src/storage/core_store.dart';

part 'src/storage/core_store_memory.dart';

part 'src/storage/core_store_sem_impl.dart';

part 'src/storage/xxtea_codec.dart';

part 'src/utils/parse_date_format.dart';

part 'src/utils/parse_decoder.dart';

part 'src/utils/parse_encoder.dart';

part 'src/utils/parse_live_list.dart';

part 'src/utils/parse_logger.dart';

part 'src/utils/parse_login_helpers.dart';

part 'src/utils/parse_utils.dart';

part 'src/utils/valuable.dart';

class Parse {
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/base/parse_constants.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
part of '../../parse_server_sdk.dart';

// Library
const String keySdkVersion = '7.0.1';
const String keySdkVersion = '8.0.0';
const String keyLibraryName = 'Flutter Parse SDK';

// End Points
Expand Down
2 changes: 1 addition & 1 deletion packages/dart/lib/src/network/parse_query.dart
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
if (!limiters.containsKey('order')) {
limiters['order'] = order;
} else {
limiters['order'] = limiters['order'] + ',' + order;
limiters['order'] = '${limiters['order']},$order';

Check warning on line 83 in packages/dart/lib/src/network/parse_query.dart

View check run for this annotation

Codecov / codecov/patch

packages/dart/lib/src/network/parse_query.dart#L83

Added line #L83 was not covered by tests
}
}

Expand Down
26 changes: 13 additions & 13 deletions packages/dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: parse_server_sdk
description: The Dart SDK to connect to Parse Server. Build your apps faster with Parse Platform, the complete application stack.
version: 7.0.1
version: 8.0.0
homepage: https://parseplatform.org
repository: https://github.com/parse-community/Parse-SDK-Flutter
issue_tracker: https://github.com/parse-community/Parse-SDK-Flutter/issues
Expand All @@ -18,36 +18,36 @@ topics:
- backend

environment:
sdk: ">=3.0.7 <4.0.0"
sdk: ">=3.2.6 <4.0.0"

dependencies:
# Networking
dio: ^5.4.2+1
http: ^1.1.0
web_socket_channel: ^2.4.0
dio: ^5.7.0
http: ^1.2.0
web_socket_channel: ^2.4.3

#Database
sembast: ^3.6.0
sembast_web: ^2.2.0

# Utils
uuid: ^4.3.3
meta: ^1.12.0
uuid: ^4.5.1
meta: ^1.16.0
path: ^1.9.0
mime: ^1.0.4
timezone: ^0.9.2
mime: ^1.0.0
timezone: ^0.9.4
universal_io: ^2.2.2
xxtea: ^2.1.0
collection: ^1.18.0
cross_file: ^0.3.3+7
cross_file: ^0.3.3+8

dev_dependencies:
lints: ^3.0.0
lints: ^4.0.0

# Testing
build_runner: ^2.4.9
mockito: ^5.4.2
test: ^1.24.9
mockito: ^5.4.4
test: ^1.25.7

screenshots:
- description: Parse Platform logo.
Expand Down
Loading