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

🔖 release v1.0.1+1 #1

Merged
merged 2 commits into from
Apr 3, 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
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.0.1+1

- [CHORE] lower meta dependency from ^1.11.0 to ^1.9.1
- [CHORE] update documentation
- [CHORE] update example
- [CHORE] update readme

## 1.0.1

- [CHORE] add documentation
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: qs_dart
description: A query string encoding and decoding library for Dart. Ported from qs for JavaScript.
version: 1.0.1
version: 1.0.1+1
repository: https://github.com/techouse/qs

environment:
Expand All @@ -9,7 +9,7 @@ environment:
dependencies:
collection: ^1.18.0
equatable: ^2.0.5
meta: ^1.11.0
meta: ^1.9.1
weak_map: ^3.0.1

dev_dependencies:
Expand Down
38 changes: 38 additions & 0 deletions scripts/compare_versions.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import 'dart:io' show exitCode, stderr, stdout;
import 'package:cli_script/cli_script.dart' show wrapMain;
import 'package:pub_semver/pub_semver.dart' show Version;

void main(List<String> args) {
wrapMain(() {
exitCode = 0;

if (args.length != 2) {
stderr.write(
'Please provide two arguments!\n\nExample usage:\ndart run compare_versions.dart 2.0.0+1 1.9.0+5\n',
);
exitCode = 1;
return;
}

late final Version v1;
late final Version v2;

try {
v1 = Version.parse(args[0]);
} on FormatException catch (e) {
stderr.write('Error parsing version 1: ${e.message}');
exitCode = 1;
return;
}

try {
v2 = Version.parse(args[1]);
} on FormatException catch (e) {
stderr.write('Error parsing version 2: ${e.message}');
exitCode = 1;
return;
}

stdout.write(v1 > v2 ? 1 : 0);
});
}
12 changes: 12 additions & 0 deletions scripts/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: compare_versions

publish_to: 'none'

version: 1.0.0

environment:
sdk: ">=2.17.0 <4.0.0"

dependencies:
cli_script: ^1.0.0
pub_semver: ^2.1.4