-
Notifications
You must be signed in to change notification settings - Fork 318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refine API and refactor #132
Commits on Jul 20, 2018
-
Steven Orvell committed
Jul 20, 2018 Configuration menu - View commit details
-
Copy full SHA for 94d4e48 - Browse repository at this point
Copy the full SHA 94d4e48View commit details
Commits on Jul 25, 2018
-
remove microtask lib in favor of Promise.
Steven Orvell committedJul 25, 2018 Configuration menu - View commit details
-
Copy full SHA for f8f8862 - Browse repository at this point
Copy the full SHA f8f8862View commit details
Commits on Aug 3, 2018
-
* Property options have been updated to now include: `attribute`: set to explicitly false to not observe, to a string to customize name, or true or absent to observe lowercased name; `type`: if a function, used to deserialize attribute value, otherwise can be an object with {fromAttribute: deserializing function, toAttribute: serializing function}; `reflect`: if true, property reflects to attribute using type.toAttribute if present; `shouldInvalidate`: function used to determine if a change should trigger invalidation. * setting properties in update now does not trigger invalidation and does not issue a warning. This can and should be done to compute values before updating. * finishUpdate has been added to perform post update tasks like direct dom manipulation. It is an async function which will be awaited before resolving the updateComplete promise. Setting properties in finishUpdate will trigger invalidation and this will finish before the updateComplete promise is resolved. * no longer depends on polymer.
Steven Orvell committedAug 3, 2018 Configuration menu - View commit details
-
Copy full SHA for df3c39d - Browse repository at this point
Copy the full SHA df3c39dView commit details
Commits on Aug 4, 2018
-
Steven Orvell committed
Aug 4, 2018 Configuration menu - View commit details
-
Copy full SHA for dc5d931 - Browse repository at this point
Copy the full SHA dc5d931View commit details -
Steven Orvell committed
Aug 4, 2018 Configuration menu - View commit details
-
Copy full SHA for 5861e0e - Browse repository at this point
Copy the full SHA 5861e0eView commit details -
Steven Orvell committed
Aug 4, 2018 Configuration menu - View commit details
-
Copy full SHA for 8f83306 - Browse repository at this point
Copy the full SHA 8f83306View commit details -
Steven Orvell committed
Aug 4, 2018 Configuration menu - View commit details
-
Copy full SHA for e18819e - Browse repository at this point
Copy the full SHA e18819eView commit details
Commits on Aug 5, 2018
-
work around custom elements polyfill issue in tests
Steven Orvell committedAug 5, 2018 Configuration menu - View commit details
-
Copy full SHA for da54543 - Browse repository at this point
Copy the full SHA da54543View commit details -
* mark update/finishUpdate as abstract * remove stack of promises in `invalidate`
Steven Orvell committedAug 5, 2018 Configuration menu - View commit details
-
Copy full SHA for b39b480 - Browse repository at this point
Copy the full SHA b39b480View commit details
Commits on Aug 7, 2018
-
Documentation updates and type tweaks based on review.
Steven Orvell committedAug 7, 2018 Configuration menu - View commit details
-
Copy full SHA for 5ef504e - Browse repository at this point
Copy the full SHA 5ef504eView commit details -
Also test subclass/superclass do not improperly interact.
Steven Orvell committedAug 7, 2018 Configuration menu - View commit details
-
Copy full SHA for 10fdf29 - Browse repository at this point
Copy the full SHA 10fdf29View commit details
Commits on Aug 8, 2018
-
Fix property to attributes serialization
Uses `update` to update attributes and simplifies tracking.
Steven Orvell committedAug 8, 2018 Configuration menu - View commit details
-
Copy full SHA for f131d96 - Browse repository at this point
Copy the full SHA f131d96View commit details -
Doc improvements based on review.
Steven Orvell committedAug 8, 2018 Configuration menu - View commit details
-
Copy full SHA for 3b5611c - Browse repository at this point
Copy the full SHA 3b5611cView commit details -
Export
PropertyValues
type and fixup usage in testsSteven Orvell committedAug 8, 2018 Configuration menu - View commit details
-
Copy full SHA for 82be06b - Browse repository at this point
Copy the full SHA 82be06bView commit details -
Steven Orvell committed
Aug 8, 2018 Configuration menu - View commit details
-
Copy full SHA for 3637c1e - Browse repository at this point
Copy the full SHA 3637c1eView commit details -
* Convenience method for performing tasks after the element was first updated. * Also makes presence of ShadyCSS optional.
Steven Orvell committedAug 8, 2018 Configuration menu - View commit details
-
Copy full SHA for bbd3267 - Browse repository at this point
Copy the full SHA bbd3267View commit details -
Steven Orvell committed
Aug 8, 2018 Configuration menu - View commit details
-
Copy full SHA for 3f0315c - Browse repository at this point
Copy the full SHA 3f0315cView commit details
Commits on Aug 13, 2018
-
Use new syntax in lit-html rather than old syntax in lit-extended.
Steven Orvell committedAug 13, 2018 Configuration menu - View commit details
-
Copy full SHA for 85f4cf2 - Browse repository at this point
Copy the full SHA 85f4cf2View commit details -
Steven Orvell committed
Aug 13, 2018 Configuration menu - View commit details
-
Copy full SHA for a8d888d - Browse repository at this point
Copy the full SHA a8d888dView commit details -
Steven Orvell committed
Aug 13, 2018 Configuration menu - View commit details
-
Copy full SHA for e97392e - Browse repository at this point
Copy the full SHA e97392eView commit details -
Steven Orvell committed
Aug 13, 2018 Configuration menu - View commit details
-
Copy full SHA for 00d9d5c - Browse repository at this point
Copy the full SHA 00d9d5cView commit details
Commits on Aug 14, 2018
-
Ensure properties set in update reflect properly
Steven Orvell committedAug 14, 2018 Configuration menu - View commit details
-
Copy full SHA for f2f908d - Browse repository at this point
Copy the full SHA f2f908dView commit details -
Add notes about limited Symbol support and skipped test with linked i…
…ssue.
Steven Orvell committedAug 14, 2018 Configuration menu - View commit details
-
Copy full SHA for 8160de8 - Browse repository at this point
Copy the full SHA 8160de8View commit details -
Removed getProperty/setProperty
This was deemed unnecessary meta-programming. For manual accessor creation, users can manage the value manually and call `invalidate` as an alternative to `set/getProperty`.
Steven Orvell committedAug 14, 2018 Configuration menu - View commit details
-
Copy full SHA for e4c7d91 - Browse repository at this point
Copy the full SHA e4c7d91View commit details -
Steven Orvell committed
Aug 14, 2018 Configuration menu - View commit details
-
Copy full SHA for e6a3c70 - Browse repository at this point
Copy the full SHA e6a3c70View commit details
Commits on Aug 15, 2018
-
Support properties defined as symbols
Fixes #146 Changes the `changedProperties` argument to `shouldUpdate`, `update`, and `finishUpdate` to a Map.
Steven Orvell committedAug 15, 2018 Configuration menu - View commit details
-
Copy full SHA for b39b979 - Browse repository at this point
Copy the full SHA b39b979View commit details -
Save flags on element by using bitmask
Removes `_isReflectingProperty` and `_firstUpdateFinished` flags.
Steven Orvell committedAug 15, 2018 Configuration menu - View commit details
-
Copy full SHA for fed3307 - Browse repository at this point
Copy the full SHA fed3307View commit details -
Steven Orvell committed
Aug 15, 2018 Configuration menu - View commit details
-
Copy full SHA for 5f3cffd - Browse repository at this point
Copy the full SHA 5f3cffdView commit details
Commits on Aug 22, 2018
-
Avoids using Map constructor argument which is not supported on IE11.
Steven Orvell committedAug 22, 2018 Configuration menu - View commit details
-
Copy full SHA for 05ba1e4 - Browse repository at this point
Copy the full SHA 05ba1e4View commit details -
Steven Orvell committed
Aug 22, 2018 Configuration menu - View commit details
-
Copy full SHA for 4361daf - Browse repository at this point
Copy the full SHA 4361dafView commit details -
Refine properties handling and add optimizations
* `createProperty` now takes a PropertyDeclaration and passes this on rather than having to look it up (optimization). Note, this means we now create properties for superClass properties. Also introduces a map used to store reflecting properties (optimization). * correct `shouldInvalidate` property option so that it changes the property value but does not cause invalidation. * renames `identity` to `notEqual` to reflect what it does.
Steven Orvell committedAug 22, 2018 Configuration menu - View commit details
-
Copy full SHA for baaf296 - Browse repository at this point
Copy the full SHA baaf296View commit details -
Steven Orvell committed
Aug 22, 2018 Configuration menu - View commit details
-
Copy full SHA for f2865de - Browse repository at this point
Copy the full SHA f2865deView commit details -
Update tests for
shouldInvalidate
fixSteven Orvell committedAug 22, 2018 Configuration menu - View commit details
-
Copy full SHA for d4edcd8 - Browse repository at this point
Copy the full SHA d4edcd8View commit details -
Remove
BooleanAttribute
and special casetype: Boolean
Change made based on feedback that it seemed weird not to be able to just use `Boolean` as `type` and have the value serialize/deserialize as expected.
Steven Orvell committedAug 22, 2018 2Configuration menu - View commit details
-
Copy full SHA for 9f1a709 - Browse repository at this point
Copy the full SHA 9f1a709View commit details -
Adds
invalidateProperty(name, oldValue)
This method should be called in manually created property setters to trigger an invalidation and honor any configured property options for the given property.
Steven Orvell committedAug 22, 2018 2Configuration menu - View commit details
-
Copy full SHA for 25f4ca6 - Browse repository at this point
Copy the full SHA 25f4ca6View commit details -
Simplify update cycle based on feedback
* invalidate always completes in a microtask and should not be pushed out. * properties set in `finishUpdate`are set after the next `updateComplete` resolves * adds tests for customizing the timing of `updateComplete`
Steven Orvell committedAug 22, 2018 1Configuration menu - View commit details
-
Copy full SHA for 9f8e145 - Browse repository at this point
Copy the full SHA 9f8e145View commit details -
Documentation fixes based on feedback.
Steven Orvell committedAug 22, 2018 Configuration menu - View commit details
-
Copy full SHA for 59cd15e - Browse repository at this point
Copy the full SHA 59cd15eView commit details
Commits on Aug 23, 2018
-
Adds tests for setting properties and attributes in sub-elements.
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for bf6da1d - Browse repository at this point
Copy the full SHA bf6da1dView commit details -
Fix tests to test updateComplete return value.
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for f684c63 - Browse repository at this point
Copy the full SHA f684c63View commit details -
Steven Orvell committed
Aug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 1953a79 - Browse repository at this point
Copy the full SHA 1953a79View commit details -
Avoid use of Map.keys for IE compat.
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for f3f28b8 - Browse repository at this point
Copy the full SHA f3f28b8View commit details -
Adds
firstRendered
to LitElement and exposes staticrender
method.Steven Orvell committedAug 23, 2018 1Configuration menu - View commit details
-
Copy full SHA for 234dff0 - Browse repository at this point
Copy the full SHA 234dff0View commit details -
Removes
finishFirstUpdate
andfinishUpdate
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 24ac381 - Browse repository at this point
Copy the full SHA 24ac381View commit details -
Add tests for
@property
directive.Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 13e48e6 - Browse repository at this point
Copy the full SHA 13e48e6View commit details -
Add utility for checking size.
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for d708572 - Browse repository at this point
Copy the full SHA d708572View commit details -
Documentation fixes based on feedback.
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 9a9aced - Browse repository at this point
Copy the full SHA 9a9acedView commit details -
Steven Orvell committed
Aug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 4bab118 - Browse repository at this point
Copy the full SHA 4bab118View commit details -
Update gitignore and add rollup.config.js
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 88a1ad9 - Browse repository at this point
Copy the full SHA 88a1ad9View commit details -
Don't bother memoizing
observedAttributes
since it's accessed once.Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for 10edcc6 - Browse repository at this point
Copy the full SHA 10edcc6View commit details -
IE11 test fixes and slight change to
styleString
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for a447927 - Browse repository at this point
Copy the full SHA a447927View commit details -
Steven Orvell committed
Aug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for ec02fd8 - Browse repository at this point
Copy the full SHA ec02fd8View commit details -
Steven Orvell committed
Aug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for b77ee89 - Browse repository at this point
Copy the full SHA b77ee89View commit details -
invalidate
waits for the previous update to complete before advanci……ng. Fixes tests on Edge / IE.
Steven Orvell committedAug 23, 2018 Configuration menu - View commit details
-
Copy full SHA for b0c7428 - Browse repository at this point
Copy the full SHA b0c7428View commit details
Commits on Aug 24, 2018
-
This helps typescript users get a nice warning if they forget to implment `render`.
Steven Orvell committedAug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for 9341ae2 - Browse repository at this point
Copy the full SHA 9341ae2View commit details -
Steven Orvell committed
Aug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for d3a781b - Browse repository at this point
Copy the full SHA d3a781bView commit details -
Steven Orvell committed
Aug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for af1c542 - Browse repository at this point
Copy the full SHA af1c542View commit details -
Steven Orvell committed
Aug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for e9d400e - Browse repository at this point
Copy the full SHA e9d400eView commit details -
Steven Orvell committed
Aug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for bb6d73d - Browse repository at this point
Copy the full SHA bb6d73dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 55bc308 - Browse repository at this point
Copy the full SHA 55bc308View commit details -
Configuration menu - View commit details
-
Copy full SHA for b611732 - Browse repository at this point
Copy the full SHA b611732View commit details -
Fairly arcane, but looks like immediately invoking async function assigned to a getter that uses `super` loses `this` context on Safari 10 so working around by using Promises directly instead.
Steven Orvell committedAug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for d11ba45 - Browse repository at this point
Copy the full SHA d11ba45View commit details -
Merge branch 'refactor' of https://github.com/PolymerLabs/polymer-lit …
…into refactor
Steven Orvell committedAug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for a85f4bb - Browse repository at this point
Copy the full SHA a85f4bbView commit details -
Add workaround for Promise timing bugs. Promise microtasks are not guaranteed to go before tasks.
Steven Orvell committedAug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for c312464 - Browse repository at this point
Copy the full SHA c312464View commit details -
Steven Orvell committed
Aug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for 84180cd - Browse repository at this point
Copy the full SHA 84180cdView commit details -
Update Safari 11 version to test
Steven Orvell committedAug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for 49cc74c - Browse repository at this point
Copy the full SHA 49cc74cView commit details -
Avoid Firefox timeout issue on Travis by testing on Sauce
Same issue as Polymer/polymer#5336.
Steven Orvell committedAug 24, 2018 Configuration menu - View commit details
-
Copy full SHA for ffbfead - Browse repository at this point
Copy the full SHA ffbfeadView commit details