Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

v2.0.0

Compare
Choose a tag to compare
@kwalrath kwalrath released this 30 Apr 17:40
· 110 commits to master since this release
e03c1df

Project and template file changes:

  • In pubspec.yaml files:
    • Set minimal SDK to 2.0.0-dev.51.0.
    • Dropped the browser package dependency.
    • Upgraded to test 0.12.30, which supports running tests under headless chrome.
    • Set initial version to 1.0.0 for all templates, and commented it out.
  • Dart 2 changes:
    • Renamed variables like, JSON, PI, etc. to json, pi, etc.

Server-shelf template changes:

  • Updated to latest dependencies.
  • Switched from int.parse() to int.tryParse().
  • Changed code to use async/await and proper pattern from exiting a binary on error.

Web-angular template changes:

  • In analysis_options.yaml:
    • Added uri_has_not_been_generated: ignore.
    • Enabled Angular analyzer plugin.
  • Additional pubspec.yaml changes:
    • Upgraded Angular package versions.
    • Added builder dev_dependencies for build_runner,
      build_test, and build_web_compilers.
    • Removed all transformers.
    • Removed comment concerning web compiler settings.
    • Temporarily added an override for pageloader.
  • Updated web/index.html:
    • Dropped <script defer src="packages/browser/dart.js"></script>.
    • Replaced <script defer src="main.dart" type="application/dart"></script> by

      <script defer src="main.dart.js"></script>.
  • Updated bootstrapping in web/main.dart:
    • Added import 'package:__projectName__/app_component.template.dart' as ng;.
    • Replaced call to bootstrap(AppComponent) by
      runApp(ng.AppComponentNgFactory);.
  • Updated test/app_test.dart:
    • Dropped @Tags(const ['aot']).
    • Dropped @AngularEntrypoint().
    • Dropped import 'package:angular/angular.dart'.
    • Added import 'app_test.template.dart' as ng;.
    • Added a call to ng.initReflector(); at the start of main().
  • Other Dart file changes:
    • CORE_DIRECTIVEScoreDirectives.
    • Dropped const qualifier from literals used used in metadata annotations.
    • Switched to using new provider classes like ClassProvider.

Web-simple template changes:

  • Additional pubspec.yaml changes:
    • Removed all transformers.
    • Removed comment concerning web compiler settings.
    • Added builder dev_dependencies for build_runner and
      build_web_compilers.
  • Updated web/index.html:
    • Dropped <script defer src="packages/browser/dart.js"></script>.
    • Replaced <script defer src="main.dart" type="application/dart"></script> by

      <script defer src="main.dart.js"></script>.

Web-stagexl template changes:

  • Additional pubspec.yaml changes:
    • Removed all transformers.
    • Removed dependency on browser and dart_to_js_script_rewriter packages.
    • Added builder dev_dependencies for build_runner and
      build_web_compilers.