- Update to js version 0.7.3.
- Some release notes (here)[http://webcomponents.org/articles/polyfills-0-6-0/].
- Also added all the individual polyfills as well as the
webcomponents-lite.js
version, which does not include shadow dom.
- Don't inline type="css" imports.
- Fix erroneous messages about invalid package paths in html imports 72.
- Update to analyzer
<0.26.0
.
- Fix bootstrap to return the result of the original main.
- Add support for the new
link[rel="x-dart-test"]
tags from thetest
package to the transformer.
-
Copied
DomProxyMixin
fromcustom_element_apigen
to this package and renamed itCustomElementProxyMixin
. This can be mixed into any class that is using the@CustomElementProxy
annotation and provides easy access to the underlying javascript element via thejsElement
getter. For instance the following is a simple example of a dart class that wraps a custom javascript elementfoo-element
with a methoddoFoo
and a propertyfoo
.@CustomElementProxy('foo-element') class FooElement extends HtmlElement with CustomElementProxyMixin { FooElement.created() : super.created(); void doFoo(int arg1) => jsElement.callMethod('doFoo', [arg1]); int get foo => jsElement['foo']; void set foo(int newFoo) { jsElement['foo'] = newFoo; } }
- Switch
html5lib
package dependency tohtml
.
- Added a runtime warning about bad packages paths in html imports to
initWebComponents
.
- fixes unknown HTML elements if using interop_support.js
-
Added
initWebComponents
function which performs html import aware initialization of an application. This is done by crawling all imported documents for dart script tags and initializing them. Any applications using this package should switch to this method instead of callingrun
from theinitialize
package directly. -
You may also now just export
package:web_components/init.dart
to initialize your app, and then stick your startup code inside a method marked with@initMethod
, for instance:library my_app; export 'package:web_components/init.dart'; @initMethod void startup() { // custom app code here. }
- Add
bindingStartDelimiters
option to theImportInlinerTransformer
. Any urls which contain any of the supplied delimiters before the first/
will be left alone since they can't be reasoned about. If you want these urls to be treated as relative to the current path you should add a./
in front. - The
ScriptCompactorTransformer
now names its bootstrap file based on the entry point html file, instead of the original dart file. This is ensure it is the original package.
- Fix normalization of relative paths inside of deep relative imports, dart-archive/polymer-dart#30.
- Update analyzer and code_transformers versions and use new mock sdk from code_transformers.
- Append html imports in front of the dart script tag, if one exists in
document.head
.
- Fix @HtmlImport with relative paths from within folders in deployment mode.
- Update
ImportCrawler
with support for pre-parsed initial documents. This allows it to work better with other transformers in the same step (you can pass in a modified document).
- Fix
@CustomElement
test in internet explorer.
- Update
initialize
lower bound to get bug fixes. - Make sure to always use
path.url
in transformers.
- Added
CustomElement
annotation. This can be added to any class to register it with a tag in the main document. - Added a
web_components.dart
file which exports all the annotations provided by this package. Note that in later breaking releaseshtml_import_annotation.dart
andcustom_element_proxy.dart
will likely move into thesrc
folder, so switching to theweb_components.dart
import is recommended.
- Added
generateWebComponentsBootstrap
method to the mainweb_components
transformer file which accepts aTransform
and aResolver
. You can use this function from any transformer and share the resolver you already have. - Fixed up the bootstrap call in
ScriptCompactor
to not use=>
syntax since it has a declared return type ofvoid
. This could previously cause a checked mode error if the original program returned something frommain
.
- Minor cleanup to changelog and tests.
- ImportInliner now throws warnings instead of errors.
-
Added the
HtmlImport
annotation. This can be added to any library declaration and it will inject an html import to the specified path into the head of the current document, which allows dart files to declare their html dependencies. Paths can be relative to the current dart file or they can be inpackage:
form.Note: Html imports included this way cannot contain dart script tags. The mirror based implementation injects the imports dynamically and dart script tags are not allowed to be injected in that way.
Note: Relative urls cannot be used in inlined script tags. Either move the script code to a Dart file, use a
package:
url, or use a normal HTML import. See dart-archive#6. -
Added a
web_components
transformer. This should be used in place of theinitialize
transformer if that already exists in your application (it will call that transformer). This will inline html imports (including @HtmlImport annotations) into the head of your document at compile time, it can be used like this:transformers: - web_components: entry_points: - web/index.html
If no
entry_points
option is supplied then any html file underweb
ortest
will be treated as an entry point.
- Added the
CustomElementProxy
annotation. This can be added to any class which proxies a javascript custom element and is the equivalent of callingregisterDartType
. In order to use this you will need to be using theinitialize
package, and call itsrun
method from your main function. It is also recommended that you include the transformer from that package to remove the use of mirrors at runtime, see initialize for more information.
- Updated to the
0.5.1
js version. - Breaking Change To remain consistent with the js repository all the
platform.js
has been replaced withwebcomponents.js
. Also, the default file is now unminified, and the minified version is calledwebcomponents.min.js
.
- Remove all
.map
and.concat.js
files during release mode.
-
Updated to platform version 0.4.2, internally a deprecated API was removed, hence the bump in the version number.
-
split dart_support.js in two. dart_support.js only contains what is necessary in order to use platform.js, interop_support.js/interop_support.html can be imported separately when providing Dart APIs for js custom elements.
- Re-apply changes from 0.7.1+1 and also cherry pick efdbbc to fix the customElementsTakeRecords function.
- Breaking Change The customElementsTakeRecords function now has an
an optional argument
node
. There is no longer a single global observer, but one for each ShadowRoot and one for the main document. The observer that is actually used defaults to the main document, but ifnode
is supplied then it will walk up the document tree and use the first observer that it finds.
- Revert the change from 0.7.1+1 due to redness in FF/Safari/IE.
- Update to platform version 0.4.1-d214582.
- Cherry pick googlearchive/ShadowDOM#506 to fix IOS 8.
- Updated to 0.4.0-5a7353d release, with same cherry pick as 0.6.0+1.
- Many features were moved into the polymer package, this package is now purely focused on polyfills.
- Change Platform.deliverDeclarations to Platform.consumeDeclarations(callback).
- Cherry pick googlearchive/ShadowDOM#505 to fix mem leak.
- Cherry pick googlearchive/ShadowDOM#500 to fix http://dartbug.com/20141. Fixes getDefaultComputedStyle in firefox.
- Upgrades to platform master as of 8/25/2014 (see lib/build.log for details). This is more recent than the 0.3.5 release as there were multiple breakages that required updating past that.
- There is a bug in this version where selecting non-rendered elements doesn't work, but it shouldn't affect most people. See https://github.com/Polymer/ShadowDOM/issues/495.
- Backward compatible change to prepare for upcoming change of the user agent in Dartium.
- Upgrades to platform version 0.3.4-02a0f66 (see lib/build.log for details).
- Adds
registerDartType
and updates to platform 0.3.3-29065bc (re-applies the changes in 0.3.5).
- Reverts back to what we had in 0.3.4. (The platform.js updates in 0.3.5 had breaking changes so we are republishing it in 0.4.0)
- Added
registerDartType
to register a Dart API for a custom-element written in Javascript. - Updated to platform 0.3.3-29065bc
- Updated to platform 0.2.4 (see lib/build.log for details)