angular 0.9.11 angular: ^0.9.11 copied to clipboard
Angular for dart.
v0.9.11 poodle-clairvoyance (2014-04-15) #
Bug Fixes #
- NgA: Do not cause a scope digest (de21f4de, #810)
- NgControl: Remove dead code (b30ebe0f)
- animation: temporary fix for Animation symbol conflict (82b4f3e1)
- change-detection: When two identical pure functions removed (84781ef3, #787, #788)
- core: ensure change detection doesn't trigger an infinite loop while not in debug mode (6ac105c9)
- dirty-checking: fix removal of watch record on disconnected group. (d22899aa)
- events: make ShadowRootEventHandler play nice with static injection (d7683218)
- example: Adjust MirrorsUsed to make the Todo example work thru dart2js (ee4a448b)
- filters: pass filters to all evals (25dfd32f)
- forms: change valid_submit and invalid_submit to camelcase (e5baa502, #793)
- jasmine: don't swallow exceptions in afterEach (ae15983d)
- mustache: fix regression that fired an initial empty string (c71b8cfc, #734)
- ng-model: Do not use valueAsNumber to work around dartbug.com/15788 (019209e7, #694)
- ng-repeat: don't use iterable.length (cf2671ab)
- ng_mustache: actually assign to _hasObservers (61c953d9)
- profiler: Fix API (f032b376)
- scope: allow watching an empty string (bd0d4ffd)
- tagging-compiler: support top level comments (dc75b016)
- test: fixes for latest unittest lib (c8527208, #811)
- transformers: fix breakage from commit 3fb218180b17bdc9808e575e3a9aaf9928fef28b (5caadbf1)
Features #
- AstParser: Made the AST parser private to the scope (8944f0d9)
- deploy: Move all reflection behind separate import (9bf04eba)
- expect:
- karma: Allow Firefox to execute Karma tests (bdfd0d21)
- ngRepeat: make use if the new change detection (09871cb2)
- parser: Add support for named arguments. (18ceb4df, #762)
- transformers: Add angular transformers to pub for no-mirror code generation (3fb21818)
- travis: Only submit if all the builds complete (633d323d)
Performance Improvements #
Breaking Changes #
- forms: due to e5baa502, All form code that uses control.valid_submit and control.invalid_submit will throw an error. Instead use control.validSubmit and control.invalidSubmit to check the submission validitity on a control.
v0.9.10 llama-magnetism (2014-03-20) #
Bug Fixes #
- Filter: Add support for maps (b32beecf)
- Jasmine: Execute AfterEach methods (71b2855c)
- NgModel: ensure DOM value changes are only applied during scope.domWrite (419e9189)
- NgModelValidators: ensure all validators can properly toggle attribute values (98143034)
- NodeAttrs: lazy init of observer listeners (144eb4c7)
- animation: correct broken build http://dartbug.com/17634 (9891f333)
- change_detection:
- compiler: Remove the Block/BlockFactory typedefs (9b790f49)
- component: revert regression of injecting Element/Node into Component (d9fc724e)
- forms:
- i18n: properly restore locale after test WARNING (f16536ee)
- jasmine syntax: Drop the wrapFn concept and let
_specs.dart
handle the sync wrapper (1e971e6b) - jquery: Deprecate renderedText() in favour of JQuery.textWithShadow() (364d9ff7)
- ng-class: remove previously registered watch (8b54f5e6, #725)
- ng-repeat: should correctly handle detached state (775bbce4, #697)
- ng-style: watch in RO mode (51ee3298, #721)
- presubmit:
- scope:
- tagging compiler:
- zone: Avoid silently ignoring uncaught exceptions by default. (7bb1944e, #710)
Features #
- NgModel: introduce parsers and formatters (bed9fe15)
- Scope: Improve ScopeStats reporting (1954e9e2, #744)
- compiler:
- core_dom: introduce NgElement (1afa0b61)
- doc:
- element binder:
- filters: revert filter being restricted to top level (66cda204)
- forms: append valid/invalid CSS classes for each validator on all controls (574065f5)
- jasmine: beforeEachModule syntax and injectifying its (4019046f, #727)
- jquery: Add shadowRoot() and use it in templateurl_spec (e1745c60)
- mock zone: isAsyncQueueEmpty (c834837d)
- mustache: Move unobserved mustache attributes to the flush phase (56647a36, #734)
- selector: DirectiveSelector is real now: matchElement, matchText (eb4422a9)
- spec: Ignore ng-binding classes in html() (441daf79)
- tagging compiler:
- travis: Seperate Chrome and Dartium into two different jobs. (7c5bdb01)
- EventHandler Add support for on-* style events (c28e6a02)
v0.9.9 glutinous-waterfall (2014-03-10) #
Bug Fixes #
- DateFilter:
- Directive: remove publishAs from NgDirective to avoid confusion. (7ee587f6, #396)
- MetadataExtractor: ignore typedefs (37f1c321, #524)
- NgAttachAware: revert to original behavior and define stronger test (500446d1)
- NgAttrMustacheDirective: support parsing of multiline attribute values (a37e1576)
- NgComponent:
- NgForm:
- NgModelValidators: ensure that number input types render invalid when non-numeric characters are present (476a8dbf)
- NodeCursor: Removes nodeList() in favor of current (aaae1d60, #644)
- WatchGroup: don't call reaction functions on removed WatchGroups (a7cabe35)
- angular: export GetterCache from dccd (c1655e8c)
- binding: call attach when attribute is not specified (1cb8eb9f)
- block_factory:
- bouncing_balls: ball number can not go below 0 (6de4f810)
- change-detection:
- correctly process watch registration inside reaction FN. (d6bc9ab8)
- Fix the handling of NaN & string values for maps (156d6386)
- Fix for comparing string by value (11f1bd87)
- reset next/prev on watchGroup.marker (4dfa2676)
- delay processing watch registration inside reaction fn. (cd4e2e3d)
- remove memory leak, use iterator (75fbded7)
- remove memory leak (847af41f)
- corrected adding group to sibling which had children (8583d08b)
- change-detector: handle double.NAN for collections (in JS) (07f9b240)
- compiler:
- di: Upgrade dependency of package di preventing problems with dart sdk 1.1 resolves #408 (1f85a8ce, #408, #583)
- dirty_checking_change_detector: correctly truncate collection change record (c1937b4e, #692)
- doc: Correct markdown for ElementProbe
(5783de44)
- Use a consistent name for the library (3f541fa4)
- doc-gen:
- dynamic_parser: Handle reserved words correctly (271ecec0, #614)
- eval access: Do not crash on null cached value (bbcbd3e7, #424)
- forms:
- generator:
- http_spec: implement lastModified getter (e719e75e)
- introspection:
- ng-attr: remove camel-cased dom attributes (b5e45117, #567)
- ng-class: array syntax should not insert nulls (b982e326, #513)
- ng-event: don't double digest (c38989a4)
- ng-pluralize: use ${..} to interpolate (a630487d, #572)
- ng-value: Add ng-value support for checked/radio/option (8fc2c0f4)
- ngControl: unregister control from parent on detach (4c9b8044, #684)
- ngModel:
- ensure checkboxes and radio buttons are flagged as dirty when changed (5766a6a1, #569, #585)
- process input type=number according to convention, using valueAsNumber (cf0160b8, #574, #577)
- ensure validation occurs when the model value changes upon digest (f34e0b31)
- evaluate user input using onInput instead of onKeyDown (64442974)
- ngShow: Add/remove ng-hide class instead of ng-show class (0b88d2e8, #521)
- package.json: add repo, licenses and switch to devDependencies (d099db59, #544, #545)
- parser:
- parser, scope: Allow nulls in binary operations. (59811752, #646)
- parser_generator: use parser getter/setter generator instead (42c8d8c8)
- readme: Read the Travis badge (6fe5692b)
- routing: correctly scope routing to ng-app (3ab250a7)
- scope:
- fix null comparisons (fb0fe0e3, #646)
- incorrect stage message (2169a950)
- correctly setup NgZone onError handler with ExceptionHandler (e8bc580c)
- return null to supress an analyzer error (fad457e9, #594)
- correctly handle canceled listeners bookkeeping (259ac5b1)
- should not trigger assertions on fork (484f03dc)
- skip scopes without event on broadcast (ae22a6f3)
- createChild now requires context (6722e1a4)
- improve error msg on unstable model (c9bf23a0)
- allow sending emit/broadcast when no on() (d9dfe0f8)
- Use Iterable instead of List (951fa178, #565)
- use correct filters when digesting scope tree (95f6503f)
- select: Corrected NPE if select multiple nested in ng-if (6228692b, #428)
- selector: Allow two directives with the same selector (467b935e, #471, #481)
- template_cache_generator: support traversal of partial files (f918d4dd, #662)
- watch_group: prevent removed watches from firing (a558a26f)
Features #
- Animation: Animation for AngularDart. (5a36e773, #635)
- NgForm: provide access to non-uniquely named control instances via form.controls (6099c037, #642)
- NgModelValidator:
- Scope: Brand new scope implementation which takes advantage of the new change detection (390aea5e)
- block:
- blockhole: Change blockhole to have the insert / remove / move methods. (c1e70ce8, #689)
- change-detection: Initial implementation of new change-detection algorithm. (d0b2dd95)
- doc: Documentation generation for NgAnimateModule. (a029ac5e)
- doc-gen: Use new docviewer for generating docs (67fcafff)
- forms:
- use the ng-form attribute as the name of the inner form (8b989b6d, #681)
- introduce the control.hasError helper method (7b75af44)
- expose getters for submitted, valid_submit and invalid_submit (9daaa0fc, #601)
- provide support for touch and untouched control flags (634c62b1, #591)
- generate ng-submit-valid / ng-submit-invalid CSS classes upon form submission (4bf9447c)
- provide support for reseting forms, fieldsets and models (c75202d5)
- add a test for input type="search" (87a60d1f)
- ngModel:
- ngRepeat: add track by support (07566457, #277, #507)
- routing: new DSL and deferred module loading (3db9ddd3)
- sanitization: make NodeValidator injectable (47ab48ad, #490, #498)
- scope:
- scope2: Basic implementation of Scope v2 (3bde820e)
- scripts: robust authors.sh (ffe43c6c, #586)
- zone: Allow escaping of auto-digest mechanism. (2df2660d, #557)
Performance Improvements #
BREAKING CHANGES #
0.9.9 contains a major overhaul to the change-detection algorithm which is used behind the scenes during scope digests. As a result, much of the scope API has changed to facilitate this new feature.
The biggest change is how scope properties are assigned on the scope. With earlier versions of
AngularDart, the scope object itself was treated like a map and any property accessed using square
brackets would either set or get the associated value. With 0.9.9 this will not produce the same
effect. Instead all scope property getter and setter operations are to be facilitated within the
scope.context member. So in other words, all the scope property reading and writing that was done
in earlier versions is now done the same way, but on the scope.context
member.
// < 0.9.9
scope['prop'] = 'value'; //set
scope['prop']; //get
// >= 0.9.9
scope.context['prop'] = 'value'; //set
scope.context['prop']; //get
Breaking Changes to the Scope API #
1. scope.$watch() is now scope.watch()
//old code
scope.$watch('a.b.c', () {});
//new code (no more $ prefixing)
scope.watch('a.b.c', (value, previous) {});
2. scope context changes
//old code
scope.$watch(() => o.foo; () {});
//new code (notice the context property)
scope.watch('foo', (value, _) {}, context: o);
3. watch de-registration
//old code
var stopWatch = scope.$watch(...);
stopWatch();
//new code
Watch watch = scope.watch(...);
watch.remove();
4. Replace scope-level digests
//old code
scope.$digest();
//new code
scope.rootScope.apply();
//Digest is now split between digest/flush so we need apply to call them both.
5. Changes to scope event listeners
//old code
scope.$on('foo', (e, data) {});
//new code
scope.on('foo').listen((e) {var data = e.data;});
//old code
scope.$on('foo', (e, a, b, c) {});
//new code
scope.on('foo').listen((e) {MyEvent data = e.data;});
//old code
scope.$emit('foo', [a]);
//new code
scope.emit('foo', a);
//old code
scope.$emit('foo', [a, b ,c]);
//new code
scope.emit('foo', new MyEvent(a, b, c));
6. Creating new scopes
//old code
scope.$new();
//new code
scope.createChild(new PrototypeMap(scope.context)));
//We have plans to allow any object to be the context.
//The PrototypeMap is a way to maintain consistent behavior.
7. EvalAsync
//old code
scope.$evalAsync(() => null);
//new code
scope.runAsync(() => null);
//old code
scope.$evalAsync(
() => null,
outsideDigest: true);
//new code
scope.domRead(() => null);
8. scope.$$verifyDigestWillRun() has been removed
There is currently no replacement. We feel that we have the zone under control and there is no need for this method any more.
9. scope.$disabled has been removed
There is currently no replacement.
10. Watching collections
//old code
scope.$watchSet(['ctrl.foo', 'ctrl.bar'], (values) {...});
//new code
scope.watch('[ctrl.foo, ctrl.bar]', (vars, _) {
var ctrlFoo = vars[0];
var ctrlBar = vars[1];
});
v0.9.8 cozy-porcupine (2014-02-19) #
Bug Fixes #
- DateFilter: fix a wrong type (cec3edad, #579)
- compiler: support filters in attribute expressions (8f020f99, #571, #580)
- di: Upgrade dependency of package di preventing problems with dart sdk 1.1 resolves #408 (1f85a8ce, #408, #583)
- doc-gen: dartbug.com/16752 (9a1ef31d)
- generator: remove invalid sort on elements (e2a00abe, #554)
- ng-attr: remove camel-cased dom attributes (b5e45117, #567)
- ng-pluralize: use ${..} to interpolate (a630487d, #572)
- ng-value: Add ng-value support for checked/radio/option (8fc2c0f4)
- ngModel:
- ngShow: Add/remove ng-hide class instead of ng-show class (0b88d2e8, #521)
- package.json: add repo, licenses and switch to devDependencies (d099db59, #544, #545)
- scope: Use Iterable instead of List (951fa178, #565)
Features #
Breaking Changes #
- ng-attr
-
Due to (b5e45117, mappings in annotations must use snake-case-names instead of camelCaseNames. To migrate your code, follow the example below:
Before:
@NgComponent( // … map: const { 'domAttributeName': '=>fieldSetter' } ) class MyComponent { …
After:
@NgComponent( // … map: const { 'dom-attribute-name': '=>fieldSetter' } ) class MyComponent { …
-
v0.9.7 pachyderm-moisturization (2014-02-10) #
Bug Fixes #
- MetadataExtractor: ignore typedefs (37f1c321, #524)
- NgAttrMustacheDirective: support parsing of multiline attribute values (a37e1576)
- NgComponent:
- eval access: Do not crash on null cached value (bbcbd3e7, #424)
- forms: ensure fields, fieldsets & forms are marked as dirty when modified (ad60d55a)
- generator:
- input: treat
<input>
with no type as type="text" (8f0a8a7f) - ng-class: array syntax should not insert nulls (b982e326, #513)
- ngModel: evaluate user input using onInput instead of onKeyDown (64442974)
- parser:
- scope: use correct filters when digesting scope tree (95f6503f)
- select: Corrected NPE if select multiple nested in ng-if (6228692b, #428)
- selector: Allow two directives with the same selector (467b935e, #471, #481)
Features #
v0.9.6 fluffy-freezray (2014-02-03) #
WARNING #
We reserve the right to change the APIs in v0.9.x versions.
Bug Fixes #
- Directive: remove publishAs from NgDirective to avoid confusion." (7ee587f6, #396)
- NgAttachAware: revert to original behavior and define stronger test (500446d1)
- NgComponent: attach method was called earlier rathe then later. (3c594130)
- doc: Using a consistent name for the library (3f541fa4)
- routing: correctly scope routing to ng-app (3ab250a7)
Features #
v0.9.5 badger-magic (2014-01-27) #
WARNING #
We reserve the right to change the APIs in v0.9.x versions.
Bug Fixes #
- Directive: remove publishAs from NgDirective to avoid confusion. (c48433e0)
- directive: call attach method ofter all bindings execute (11b38bae)
- directives: cssUrl in NgComponent (952496b0)
- docs: correct typo (4494ce70)
- expression_extractor: implemented support for wildcard attr selector (1e403447, #447)
- generator: Avoid compile-time filter map querying when generating static parser. (522ba49c)
- ng-model: Allow ng-required to work on non-strings. (a7c3a8d8)
- parser: Workaround dart2js bugs in latest version of Dart SDK 1.2. (dddc3c83)
- scope: honor $skipAutoDigest on non-root scopes (7265ef7a)
- todo: Fixing some dart2js compilation issues for todo demo (b8e97d9e, #453)
Features #
- core: provide support to define the same selector on multiple directives (dd356539)
- directive: Add ng-attr-* interpolation support (aeb5538e)
- directives: Add support for contenteditable with ng-model (715d3d1e)
- expression_extractor: Add source path to source crawler (6597f73f)
- forms:
- helloworld: MirrorsUsed (73b0dca8)
- js size: Add a default @MirrorsUsed to Angular. (1fd1bd07, #409)
- mock: support for JSON in HttpBackend (9d09a162, #236)
- ngModel: provide support for custom validation handlers (e01d5fd7)
- parser: Allow operator access to non-map, non-list objects (51e167b8, #416)
v0.9.4 supersonic-turtle (2014-1-13) #
Bug Fixes #
- di: removed type parameters to accommodate di restriction (7646df6d)
- doc: NgShadowRoot => NgShadowRootAware (303c12b8)
- docs: typo (06ab9e75)
- expression extractor: Fix and test (ff737732)
- expression_extractor: fixed package roots (6b2c9921)
- http_backend: don't swallow http request errors. (8cc26533)
- input: corrected NPE when input goes away (e97b9d07, #392)
- introspection: Search our shadowRoot as well (6549c982)
- ng_model: Disable a test that did not pass in content_shell (a3da7310)
- parser: pass analyzer v1.1.0 (e61e0375)
- scope:
- sdk: Add support for Dart SDK 1.1 (9d6914ec)
- selector: the required attribute should properly work with ng-required (472d764e)
Features #
- NodeAttrs:
- compiler:
- events: add missing ng-events (97bd4bc2, #386)
- ng-pluralize: Implement the ng-pluralize directive (51d951e3)
- scripts: automatic way of generating changelog.MD (11af25c8)
- template_cache_generator: simple template cache generator (32e073b7)
- travis: add travis support (fa3727f8)
Performance Improvements #
v0.9.3 reverse-telekinesis (2013-12-16) #
WARNING #
We reserve the right to change the APIs in v.0.9.x versions.
Bug Fixes #
- expression_extractor:
- ng-repeat: ng-repeat support for Iterable (080bb0a6, #292)
- ng_model: do not save/restore selection unnecessarily (3c805483, #264)
- scope:
- todo demo: Return the correct CSS class for TODO items in the demo. (217a57ec)
Features #
- NgComponent: Support multiple css files (6c6151cf)
- cookies: Basic Cookies service/wrapper over BrowserCookies (6efde83e)
- mocks: provide support for child scope parameters in compile (2d2c5219)
- ng-model: implemented support for input[type=password] (058c8ee4)
Performance Improvements #
v0.9.2 limited-omnipotence (2013-12-02) #
WARNING #
We reserve the right to change the APIs in v.0.9.x versions.
Bug Fixes #
- expression_extractor: support extracting expresions from attr mapping annotations (76fbac8c, #291)
- filters: Fix filters in the code-gen parser (8b2c3b62)
- ng-class: exportExpressionAttrs for ng-class, ng-class-odd, ng-class-even (cecf3b6d)
- parser:
- static parser: Allow newlines in expressions. (d21817ff, #297)
- syntax: warnings in directive code (1f3e3f72)
Features #
v0.9.1 elemental-mimicry (2013-11-18) #
WARNING #
We reserve the right to change the APIs in v.0.9.x versions.
Bug Fixes #
- don't create watchers for <=> => and =>! attributes if attribute is not specified on the element (6ea6af8b, #265)
- ng-view does not clear template when route is deactivated (6acb2c32, #245)
Features #
v0.9.0 static-animation (2013-11-04) #
Initial beta release of AngularDart available for public testing.
WARNING #
We reserve the right to change the APIs in v.0.9.x versions.
Features #
-
Notable Directives:
input
,ng-bind
,ng-class
,ng-
events,ng-if
,ng-include
,ng-model
,ng-show\hide
,ng-switch
,ng-template
. -
Notable Services:
Compiler
,Cookies
,Http
,ExceptionHandler
,Scope
. -
Notable Filters:
currency
,date
,filter
,json
,limitTo
,number
,orderBy
Missing Features #
- Forms / Validation: has not made it into AngularDart yet.
Semantic Version Conventions #
- Stable: All even numbered minor versions are considered API stable: i.e.: v1.0.x, v1.2.x, and so on.
- Development: All odd numbered minor versions are considered API unstable: i.e.: v0.9.x, v1.1.x, and so on.