This repository has been archived by the owner on May 31, 2021. It is now read-only.
v2.0.0
Project and template file changes:
- In
pubspec.yaml
files:- Set minimal SDK to 2.0.0-dev.51.0.
- Dropped the
package dependency.browser
- 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. tojson
,pi
, etc.
- Renamed variables like,
Server-shelf template changes:
- Updated to latest dependencies.
- Switched from
int.parse()
toint.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.
- Added
- Additional
pubspec.yaml
changes:- Upgraded Angular package versions.
- Added builder
dev_dependencies
forbuild_runner
,
build_test
, andbuild_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
by<script defer src="main.dart" type="application/dart"></script>
<script defer src="main.dart.js"></script>
.
- Dropped
- Updated bootstrapping in
web/main.dart
:- Added
import 'package:__projectName__/app_component.template.dart' as ng;
. - Replaced call to
bybootstrap(AppComponent)
runApp(ng.AppComponentNgFactory);
.
- Added
- 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 ofmain()
.
- Dropped
- Other Dart file changes:
CORE_DIRECTIVES
→coreDirectives
.- Dropped
qualifier from literals used used in metadata annotations.const
- 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
forbuild_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>
.
- Dropped
Web-stagexl template changes:
- Additional
pubspec.yaml
changes:- Removed all transformers.
- Removed dependency on
browser
anddart_to_js_script_rewriter
packages. - Added builder
dev_dependencies
forbuild_runner
and
build_web_compilers
.