diff --git a/.travis.yml b/.travis.yml index 30b4a135..738bacd7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ dart: # SDK version to prevent errors when using Stagehand from inside VSCode's # Dart and Flutter plugins. For more detail, please see: # https://github.com/dart-lang/stagehand/issues/617 - - 2.5.0 + - 2.7.0 - dev cache: diff --git a/CHANGELOG.md b/CHANGELOG.md index 44f6b1a7..35d36124 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.3.5 + +- Updated minimum Dart SDK to 2.7 in stagehand tool and templates. + ## 3.3.5-dev - Internal cleanup. diff --git a/lib/src/generators/console_full.g.dart b/lib/src/generators/console_full.g.dart index a64bc460..36710265 100644 --- a/lib/src/generators/console_full.g.dart +++ b/lib/src/generators/console_full.g.dart @@ -50,7 +50,7 @@ cmludCgnSGVsbG8gd29ybGQ6ICR7X19wcm9qZWN0TmFtZV9fLmNhbGN1bGF0ZSgpfSEnKTsKfQo=''', ''' bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHNhbXBsZSBjb21tYW5kLWxpbmUg YXBwbGljYXRpb24uCiMgdmVyc2lvbjogMS4wLjAKIyBob21lcGFnZTogaHR0cHM6Ly93d3cuZXhh -bXBsZS5jb20KCmVudmlyb25tZW50OgogIHNkazogJz49Mi41LjAgPDMuMC4wJwoKI2RlcGVuZGVu +bXBsZS5jb20KCmVudmlyb25tZW50OgogIHNkazogJz49Mi43LjAgPDMuMC4wJwoKI2RlcGVuZGVu Y2llczoKIyAgcGF0aDogXjEuNi4wCgpkZXZfZGVwZW5kZW5jaWVzOgogIHBlZGFudGljOiBeMS44 LjAKICB0ZXN0OiBeMS42LjAK''', 'test/__projectName___test.dart', diff --git a/lib/src/generators/package_simple.g.dart b/lib/src/generators/package_simple.g.dart index 0ef6a0c0..ab1e1f1b 100644 --- a/lib/src/generators/package_simple.g.dart +++ b/lib/src/generators/package_simple.g.dart @@ -65,7 +65,7 @@ IGJvb2wgZ2V0IGlzQXdlc29tZSA9PiB0cnVlOwp9Cg==''', ''' bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHN0YXJ0aW5nIHBvaW50IGZvciBE YXJ0IGxpYnJhcmllcyBvciBhcHBsaWNhdGlvbnMuCiMgdmVyc2lvbjogMS4wLjAKIyBob21lcGFn -ZTogaHR0cHM6Ly93d3cuZXhhbXBsZS5jb20KCmVudmlyb25tZW50OgogIHNkazogJz49Mi41LjAg +ZTogaHR0cHM6Ly93d3cuZXhhbXBsZS5jb20KCmVudmlyb25tZW50OgogIHNkazogJz49Mi43LjAg PDMuMC4wJwoKI2RlcGVuZGVuY2llczoKIyAgcGF0aDogXjEuNi4wCgpkZXZfZGVwZW5kZW5jaWVz OgogIHBlZGFudGljOiBeMS44LjAKICB0ZXN0OiBeMS42LjAK''', 'test/__projectName___test.dart', diff --git a/lib/src/generators/server_shelf.g.dart b/lib/src/generators/server_shelf.g.dart index 9d4c20ee..8b04b8fb 100644 --- a/lib/src/generators/server_shelf.g.dart +++ b/lib/src/generators/server_shelf.g.dart @@ -63,7 +63,7 @@ UmVxdWVzdCBmb3IgIiR7cmVxdWVzdC51cmx9IicpOwo=''', ''' bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHdlYiBzZXJ2ZXIgYnVpbHQgdXNp bmcgdGhlIHNoZWxmIHBhY2thZ2UuCiMgdmVyc2lvbjogMS4wLjAKIyBob21lcGFnZTogaHR0cHM6 -Ly93d3cuZXhhbXBsZS5jb20KCmVudmlyb25tZW50OgogIHNkazogJz49Mi41LjAgPDMuMC4wJwoK +Ly93d3cuZXhhbXBsZS5jb20KCmVudmlyb25tZW50OgogIHNkazogJz49Mi43LjAgPDMuMC4wJwoK ZGVwZW5kZW5jaWVzOgogIGFyZ3M6IF4xLjUuMAogIHNoZWxmOiBeMC43LjUKCmRldl9kZXBlbmRl bmNpZXM6CiAgcGVkYW50aWM6IF4xLjguMAo=''' ]; diff --git a/lib/src/generators/web_angular.g.dart b/lib/src/generators/web_angular.g.dart index 0a99d3e9..aa3e5b7d 100644 --- a/lib/src/generators/web_angular.g.dart +++ b/lib/src/generators/web_angular.g.dart @@ -123,7 +123,7 @@ bmc+PiBnZXRUb2RvTGlzdCgpIGFzeW5jID0+IG1vY2tUb2RvTGlzdDsKfQo=''', ''' bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHdlYiBhcHAgdGhhdCB1c2VzIEFu Z3VsYXJEYXJ0IENvbXBvbmVudHMKIyB2ZXJzaW9uOiAxLjAuMAojIGhvbWVwYWdlOiBodHRwczov -L3d3dy5leGFtcGxlLmNvbQoKZW52aXJvbm1lbnQ6CiAgc2RrOiAnPj0yLjUuMCA8My4wLjAnCgpk +L3d3dy5leGFtcGxlLmNvbQoKZW52aXJvbm1lbnQ6CiAgc2RrOiAnPj0yLjcuMCA8My4wLjAnCgpk ZXBlbmRlbmNpZXM6CiAgYW5ndWxhcjogXjUuMy4wCiAgYW5ndWxhcl9jb21wb25lbnRzOiBeMC4x My4wCgpkZXZfZGVwZW5kZW5jaWVzOgogIGFuZ3VsYXJfdGVzdDogXjIuMy4wCiAgYnVpbGRfcnVu bmVyOiBeMS42LjAKICBidWlsZF90ZXN0OiBeMC4xMC44CiAgYnVpbGRfd2ViX2NvbXBpbGVyczog diff --git a/lib/src/generators/web_simple.g.dart b/lib/src/generators/web_simple.g.dart index 80a81c92..c1458c28 100644 --- a/lib/src/generators/web_simple.g.dart +++ b/lib/src/generators/web_simple.g.dart @@ -41,7 +41,7 @@ CiMgICAgIC0gcGF0aC90by9leGNsdWRlZC9maWxlcy8qKgo=''', ''' bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBbiBhYnNvbHV0ZSBiYXJlLWJvbmVz IHdlYiBhcHAuCiMgdmVyc2lvbjogMS4wLjAKI2hvbWVwYWdlOiBodHRwczovL3d3dy5leGFtcGxl -LmNvbQoKZW52aXJvbm1lbnQ6CiAgc2RrOiAnPj0yLjUuMCA8My4wLjAnCgojZGVwZW5kZW5jaWVz +LmNvbQoKZW52aXJvbm1lbnQ6CiAgc2RrOiAnPj0yLjcuMCA8My4wLjAnCgojZGVwZW5kZW5jaWVz OgojICBwYXRoOiBeMS42LjAKCmRldl9kZXBlbmRlbmNpZXM6CiAgYnVpbGRfcnVubmVyOiBeMS42 LjAKICBidWlsZF93ZWJfY29tcGlsZXJzOiBeMi4zLjAKICBwZWRhbnRpYzogXjEuOC4wCg==''', 'web/favicon.ico', diff --git a/lib/src/generators/web_stagexl.g.dart b/lib/src/generators/web_stagexl.g.dart index 7bef94c9..2804ee55 100644 --- a/lib/src/generators/web_stagexl.g.dart +++ b/lib/src/generators/web_stagexl.g.dart @@ -41,7 +41,7 @@ CiMgICAgIC0gcGF0aC90by9leGNsdWRlZC9maWxlcy8qKgo=''', ''' bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHNpbXBsZSBTdGFnZVhMIHdlYiBh cHAuCiMgdmVyc2lvbjogMS4wLjAKI2hvbWVwYWdlOiBodHRwczovL3d3dy5leGFtcGxlLmNvbQoK -ZW52aXJvbm1lbnQ6CiAgc2RrOiAnPj0yLjUuMCA8My4wLjAnCgpkZXBlbmRlbmNpZXM6CiAgc3Rh +ZW52aXJvbm1lbnQ6CiAgc2RrOiAnPj0yLjcuMCA8My4wLjAnCgpkZXBlbmRlbmNpZXM6CiAgc3Rh Z2V4bDogXjEuNC4wCgpkZXZfZGVwZW5kZW5jaWVzOgogIGJ1aWxkX3J1bm5lcjogXjEuNi4wCiAg YnVpbGRfd2ViX2NvbXBpbGVyczogXjIuMy4wCiAgcGVkYW50aWM6IF4xLjguMAo=''', 'web/images/dart@1x.png', diff --git a/lib/src/version.dart b/lib/src/version.dart index 24950cac..778b53ab 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '3.3.5-dev'; +const packageVersion = '3.3.5'; diff --git a/pubspec.yaml b/pubspec.yaml index 5be1e66b..08955262 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,7 +7,7 @@ description: > A scaffolding generator for your Dart projects. Stagehand helps you get set up! # After changing the version, run `pub run build_runner build`. -version: 3.3.5-dev +version: 3.3.5 homepage: https://github.com/dart-lang/stagehand environment: @@ -17,7 +17,7 @@ environment: # https://github.com/dart-lang/stagehand/issues/617 # # Also make sure this minimmum sdk version is reflected in `.travis.yml`. - sdk: '>=2.5.0 <3.0.0' + sdk: '>=2.7.0 <3.0.0' # Add the bin/stagehand.dart script to the scripts pub installs. executables: @@ -27,7 +27,7 @@ dependencies: args: ^1.5.0 http: ^0.12.0 path: ^1.6.0 - pedantic: ^1.8.0 + pedantic: ^1.9.0 usage: ^3.4.0 dev_dependencies: diff --git a/templates/console-full/pubspec.yaml b/templates/console-full/pubspec.yaml index 9807d846..380453d4 100644 --- a/templates/console-full/pubspec.yaml +++ b/templates/console-full/pubspec.yaml @@ -4,7 +4,7 @@ description: A sample command-line application. # homepage: https://www.example.com environment: - sdk: '>=2.5.0 <3.0.0' + sdk: '>=2.7.0 <3.0.0' #dependencies: # path: ^1.6.0 diff --git a/templates/package-simple/pubspec.yaml b/templates/package-simple/pubspec.yaml index b34d1918..1a251bc0 100644 --- a/templates/package-simple/pubspec.yaml +++ b/templates/package-simple/pubspec.yaml @@ -4,7 +4,7 @@ description: A starting point for Dart libraries or applications. # homepage: https://www.example.com environment: - sdk: '>=2.5.0 <3.0.0' + sdk: '>=2.7.0 <3.0.0' #dependencies: # path: ^1.6.0 diff --git a/templates/server-shelf/pubspec.yaml b/templates/server-shelf/pubspec.yaml index 6ce7d58d..d27c054e 100644 --- a/templates/server-shelf/pubspec.yaml +++ b/templates/server-shelf/pubspec.yaml @@ -4,7 +4,7 @@ description: A web server built using the shelf package. # homepage: https://www.example.com environment: - sdk: '>=2.5.0 <3.0.0' + sdk: '>=2.7.0 <3.0.0' dependencies: args: ^1.5.0 diff --git a/templates/web-angular/pubspec.yaml b/templates/web-angular/pubspec.yaml index fd8757ed..26f56b96 100644 --- a/templates/web-angular/pubspec.yaml +++ b/templates/web-angular/pubspec.yaml @@ -4,7 +4,7 @@ description: A web app that uses AngularDart Components # homepage: https://www.example.com environment: - sdk: '>=2.5.0 <3.0.0' + sdk: '>=2.7.0 <3.0.0' dependencies: angular: ^5.3.0 diff --git a/templates/web-simple/pubspec.yaml b/templates/web-simple/pubspec.yaml index 8da16d38..335cca6e 100644 --- a/templates/web-simple/pubspec.yaml +++ b/templates/web-simple/pubspec.yaml @@ -4,7 +4,7 @@ description: An absolute bare-bones web app. #homepage: https://www.example.com environment: - sdk: '>=2.5.0 <3.0.0' + sdk: '>=2.7.0 <3.0.0' #dependencies: # path: ^1.6.0 diff --git a/templates/web-stagexl/pubspec.yaml b/templates/web-stagexl/pubspec.yaml index bd9b1830..4fc12e23 100644 --- a/templates/web-stagexl/pubspec.yaml +++ b/templates/web-stagexl/pubspec.yaml @@ -4,7 +4,7 @@ description: A simple StageXL web app. #homepage: https://www.example.com environment: - sdk: '>=2.5.0 <3.0.0' + sdk: '>=2.7.0 <3.0.0' dependencies: stagexl: ^1.4.0 diff --git a/test/validate_templates.dart b/test/validate_templates.dart index fbb53ad2..c8a45f6b 100644 --- a/test/validate_templates.dart +++ b/test/validate_templates.dart @@ -156,7 +156,7 @@ void _testGenerator(stagehand.Generator generator, Directory tempDir) { expect(pubspecContent, containsPair('description', isNotEmpty)); expect( - pubspecContent, containsPair('environment', {'sdk': '>=2.5.0 <3.0.0'})); + pubspecContent, containsPair('environment', {'sdk': '>=2.7.0 <3.0.0'})); // Run package tests, if `test` is included. var devDeps = pubspecContent['dev_dependencies'];