Skip to content

0.1.0: A Thanksgiving Odyssey

Pre-release
Pre-release
Compare
Choose a tag to compare
@dfreedm dfreedm released this 27 Nov 18:31
· 5658 commits to master since this release

Major changes

The new Polymer 1, 2, 3:

  1. bower install --save Polymer/polymer Polymer/platform
  2. Script include platform.js in your main page: polymer is loaded as an import by each element
  3. Include your elements and go to town!

If you're creating your own <polymer-element>, we recommend importing polymer.html <link rel="import" href="bower_components/polymer/polymer.html"> instead of script including polymer.js.

polymer

  • Make resolvePath a little smarter (commit)
  • No longer include platform.js in a polymer build! (commit)
  • update build.json to refer to 'platform-dev' (commit)
  • Fixes #347 - extensions to type extension custom elements must specify an extends property when registering. (commit)

platform

  • Shim styles containing combinators in stylesheets and style elements; fixes #354 (commit)
  • remove pseudos tests since they have been removed. (commit)
  • importNode patch updated to remove SD polyfill portion. It now works with importNode. (commit)
  • Restore compatibility between TemplateBinding and Custom Elements polyfill. TemplateBinding now uses a staging document for creating elements. Elements should be upgraded there. Custom Elements requires manually setting up documents to support custom elements. To solve this generally, this requirement could be removed. Alternatively, TemplateBinding could be setup to work with the CE polyfill. For simplicity we’ve directly patched importNode here. This is the mechanism TemplateBinding uses to create dom in the staging document. Also included is a temp workaround for SD polyfill support for importNode. (commit)
  • make :host(.bar:not(.zot)) > #wahtever { work (commit)
  • Use a less likely to collide name for ‘host’ when parsing via cssom. (commit)
  • Fixes #45 - ShadowCSS.shimStyling generates incorrect CSS with extended element using @media rule (commit)
  • properly scope host rules when strictStyling option is used. (commit)
  • Fixes #345 - ShadowDOM polyfill breaks CSS content: attr(foo) (commit)
  • Fixes #43 - ShadowCSS shim: support comma separated (multiple selectors) in :host(). Example: :host(.foo:host, .bar:host) (commit)
  • unresolved attribute available as a feature of platform. With native imports, this should be able to be removed. It’s needed because HTMLImports does not properly polyfill loading imports before paint. (commit)
  • Workaround for https://code.google.com/p/chromium/issues/detail?id=229142 that should allow templates in the main document to resolve paths relative to it. (commit)
  • platform.js is now a build, old platform.js is now platform.dev.js (commit)

CustomElements

  • Make name argument to document.register case insensitive (commit)
  • Throw DuplicateDefintion error if a custom element is registered more than once (commit)
  • simplify [unresolved]. Now to shim :unresolved, we simply remove an attribute named unresolved. (commit)
  • CSS :unresolved shimmed via unresolved attribute; support is experimental. (commit)
  • Addresses #79 by adding an ‘eager’ flag to upgrade elements early and avoid fuoc. (commit)
  • Add bower configs (commit)

HTMLImports

  • Fixes https://github.com/Polymer/HTMLImports/issues/40 (commit)
  • Fix tests on FF. (commit)
  • Polyfill document.currentScript as document._currentScript. (commit)
  • Update to follow current spec: (1) make imported document available via link.import, (2) fire load event when import is loaded. (commit)
  • implement node re-querying when a document acquires new scripts nodes in the middle of parsing; probably impairs performance, brittle wrt node injections above the current parser point (commit)

MutationObservers

  • add dependency on WeakMap (commit)

PointerEvents

  • support touch-action in shadows (commit)
  • Add bower installation instructions (commit)
  • Prevent accidentally overriding preventDefault with undefined (commit)
  • Remove erroneous Touch.preventDefault call (commit)
  • Tunnel source event preventDefault to PointerEvents (commit)
  • Re-enable touch efp optimization for simple case (commit)
  • Added support for external hooks for event binding and dispatching. (commit)
  • Update everything that can't be polyfilled in old IE. (commit)
  • Allow for use in old IE by providing a non-getter API for size of pointermap (commit)

PointerGestures

  • make sure tapPrevented is copied from pointerevents (commit)
  • Add bower configs (commit)
  • Add the element under the pointer to track events as relatedTarget (commit)

ShadowDOM

  • Add work around for Firefox bug related to window methods (commit)
  • Fix outerHTML setter so that mutation observers are notified (commit)
  • Implement inserAdjacentHTML (commit)
  • Corrects document.importNode, fixes #317 (commit)
  • Set the constructor property on the prototype as required by WebIDL (commit)
  • Disable the lineDashOffset test since it is not available in Firefox 25 (commit)
  • Fix issue with WebIDL attributes on Range (commit)
  • Add way to blacklist certain instance properties (commit)
  • Remove support for mutation events (commit)
  • Implement MutationObserver from scratch (commit)
  • Don't use native cloneNode (commit)
  • Fix tests for HTMLAudioElement (commit)
  • Fix issue with missing instance properties on canvas context classes (commit)
  • Preserve 'extends' when the ShadowDOM polyfill patches document.register (commit)
  • If parentNode is not correct check for child in childNodes (commit)
  • Add the host property to the ShadowRoot interface (commit)
  • Add Audio and Option constructors (commit)
  • Fix issue with canvas parameters (commit)
  • Explicitly read/write ShadowDOMPolyfill on window (commit)

TemplateBinding

  • use staging document for binding elements (commit)
  • add bower configs (commit)
  • remote unused argument from deepCloneIgnoreTemplateContent (commit)
  • Enter a description of the change. discard optimization to use cloneNode deep in some cases (commit)
  • remove |name| param from prepareBinding fn (commit)

WeakMap

observe-js

  • Change setValueFn to not be a transform (now is responsible for updating the value). Also rename valueFn to transformFn. (commit)
  • make PathObserver.defineProperty take four arguments and avoid needless allocation (commit)
  • add bower configs (commit)
  • Add support for new Object.observe change record names (commit)

polymer-expressions

  • Refactor: expression.setValue/getValue (commit)
  • Allow binding to computed properties (commit)
  • Allow filters in 'in' and 'as'-expressions. (commit)

tools

  • add test-dashboard project (commit)
  • add designer to projects (commit)
  • Add split youtube elements (commit)
  • Projects are back in Polymer org (commit)
  • Elements back in Polymer org (commit)
  • Make expected projects and components structure (commit)
  • Auto npm the github api for really-pull-all (commit)
  • Only pull necessary components from Polymer (commit)