onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
236 stars 26 forks source link

dcli:2.2.4 requires Dart 3.0 (accidentally breaking) #214

Closed passsy closed 9 months ago

passsy commented 1 year ago

I have the following pubspec.yaml

environment:
  sdk: ">=2.19.6 <3.0.0"

dependencies:
  dcli: ^2.2.0

pub upgrade pulls dcli: 2.2.4 which requires Dart 3.0. I can't compile my app with Dart 2.19.6. This breaks the semver contract.

Screen-Shot-2023-05-30-14-46-44 03

Please release dcli:2.2.5 and make it Dart 2.19 compatible again. Do a breaking change (dcli:3.0.0) when upgrading to `Dart 3.0.

bsutton commented 1 year ago

bugger. I was relying on the sdk constraints but of course pub.dev artificially changes them. But yes, I should have changed the major version.

Give me until the weekend and I will organise an update as requested.

passsy commented 1 year ago

Thanks for releasing 3.0.0.

Can you please also release 2.2.5, reverting ^2.0.0 back to Dart 2.19?

bsutton commented 1 year ago

Working on it. Ran out of time on the weekend.

On Mon, 5 June 2023, 10:48 pm Pascal Welsch, @.***> wrote:

Thanks for releasing 3.0.0.

Can you please also release 2.2.5, reverting ^2.0.0 back to Dart 2.19?

— Reply to this email directly, view it on GitHub https://github.com/onepub-dev/dcli/issues/214#issuecomment-1576735412, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG32OBZKGMJ4P36WXN7RHTXJXIRDANCNFSM6AAAAAAYT6YHT4 . You are receiving this because you commented.Message ID: @.***>

bsutton commented 1 year ago

I've released 2.3.0 which supports dart 2.19. This will be the final dart 2.x release subject to any major issues cropping. Let me know how it goes.