Commit Graph
6222 Commits
Author SHA1 Message Date
Peter Burns 658d1cf742 Fix a grab bag of closure compiler warnings.
This fixes all warnings in about half of the remaining files with warnings.
2018-08-16 14:23:55 -07:00
Peter Burns 46d3719189 Merge pull request #5328 from Polymer/no-rename-dom-module-import
Protect DomModule.import against renaming
2018-08-16 01:24:08 -07:00
Peter Burns aaf2cca0c7 Protect DomModule.import against renaming 2018-08-15 18:33:07 -07:00
Peter Burns f57667173d Merge pull request #5326 from Polymer/boot-module
Ensure boot.js can only be parsed as a module
2018-08-15 17:41:52 -07:00
Peter Burns d206b8da8a Merge pull request #5327 from Polymer/flattened-nodes-nocollapse
Add @nocollapse for jscompiler
2018-08-15 17:39:55 -07:00
Peter Burns 4e4db7008b Add @nocollapse for jscompiler
See https://github.com/google/closure-compiler/issues/2763
2018-08-15 17:37:06 -07:00
Peter Burns a64dfb087a Ensure boot.js can only be parsed as a module
Closure compiler likes this
2018-08-15 15:39:02 -07:00
Peter Burns 6dc0184107 Use simpler class declaration and export form (#5325)
* Use simpler class declaration and export form

* Fix linter warning
2018-08-15 22:31:57 +02:00
Kevin Schaaf 438c8c40bc Merge pull request #5310 from simonfuhrmann/master
Upstream externs changes for DomRepeatEvent
2018-08-15 10:20:53 -07:00
Peter Burns 20d4e35c80 Ensure unresolved.js is an es module (#5324)
Closure compiler wants all imported files to use ES module syntax to be unambiguous.
2018-08-15 15:39:52 +02:00
Kevin Schaaf 589ee496a9 Merge pull request #5304 from Polymer/strict-template-policy
[3.x] Introduce strictTemplatePolicy
2018-08-14 14:27:31 -07:00
Alexander Marks 60beab88a7 Merge pull request #5322 from Polymer/gen-tsd-auto-import-path
Use relative path module specifier in gen-tsd autoImport setting.
2018-08-13 21:42:47 -07:00
Alexander Marks 76cf2af1aa Use relative path module specifier in gen-tsd autoImport setting.
An upcoming change to the type generator will assume that a module
specifier that does not begin with "." is a bare module specifier.
2018-08-13 18:31:36 -07:00
Alexander Marks c4a1b51c0e Merge pull request #5319 from Polymer/set-template
Add a template setter to ElementMixin
2018-08-13 13:01:54 -07:00
Alexander Marks e8167f7f73 Update TemplateStamp event listen param types from Node to EventTarget. (#5320)
Update TemplateStamp event listen param types from Node to EventTarget.

Allows passing e.g. window.
2018-08-10 21:32:22 -07:00
Alexander Marks 7644464cae Add test for direct assignment to template. 2018-08-10 13:14:55 -07:00
Alexander Marks d27b4a12fb Add a template setter to ElementMixin.
Currently, to assign a template to a Polymer element, you need to
override the setter, or call Object.defineProperty.

This also allows users to simply assign the template onto their
constructor.

This is especially useful for TypeScript, which compiles "static
template = foo" to "MyClass.template = foo".
2018-08-09 16:57:27 -07:00
Steve Orvell 59405b57b3 Merge pull request #5261 from Polymer/double-properties-invocation
Ensure properties is only invoked once
2018-08-03 14:10:54 -07:00
Alexander Marks 6847cf4791 Make Polymer gestures library safe for Closure property renaming (take 2). (#5314)
Make Polymer gestures library safe for Closure property renaming.

The issue here was that we were assuming that the method for a given
gesture would always match the string name of that gesture, e.g. that if
the gesture name was "mousedown" that we could call
gestureDefinition.mousedown. In actuality, gestureDefinition.mousedown
could be renamed by Closure, which would throw with "undefined is not a
function".

The fix is to move the GesturesRecognizer type into our externs, which
prevents those methods from being renamed.
2018-08-02 14:58:07 -07:00
Tomek Wytrębowicz db2f3cc71c Make event notification handler read the value from currentTarget, (#5313)
instead of target which may not be bound to any data.

Fixes https://github.com/Polymer/polymer/issues/5308
2018-08-02 13:14:36 +02:00
Tim van der Lippe b94c28aa23 Merge branch 'master' into strict-template-policy 2018-08-02 11:25:25 +02:00
Tim van der Lippe 9576bef4d9 Merge branch 'master' into double-properties-invocation 2018-08-02 11:22:34 +02:00
Daniel Freedman 0bf1e60c15 [ci skip] update changelog 2018-07-30 16:06:01 -07:00
Daniel Freedman 1d26830098 3.0.5 v3.0.5 2018-07-30 16:03:52 -07:00
Daniel Freedman 93a1515575 Merge pull request #5311 from Polymer/all-the-types
Add more missing .d.ts files from being npm published.
2018-07-30 16:00:02 -07:00
Alexander Marks f372ea8992 Add more missing .d.ts files from being npm published. 2018-07-30 13:18:19 -07:00
Daniel Freedman 1a9e81c268 [ci skip] update changelog 2018-07-30 11:51:44 -07:00
Daniel Freedman 03357ab689 3.0.4 v3.0.4 2018-07-30 11:42:39 -07:00
Daniel Freedman 003b051870 Ensure generated interfaces.d.ts is included in npm package 2018-07-30 11:41:57 -07:00
Daniel Freedman 028a718cdb [ci skip] update changelog 2018-07-30 11:27:53 -07:00
Daniel Freedman 27792e64a8 3.0.3 v3.0.3 2018-07-30 11:26:24 -07:00
Daniel Freedman 95bbefd0c9 rebuild package-lock 2018-07-30 11:25:08 -07:00
Simon Fuhrmann e3b9d4e6a3 Upstream externs changes for DomRepeatEvent 2018-07-30 11:06:33 -07:00
Alexander Marks 5807ce0d05 Merge pull request #5306 from Polymer/publish-polymer-3-types
Add typings to Polymer 3
2018-07-27 12:37:44 -07:00
Alexander Marks 536030acfa Generate typings for Polymer 3.
- Publishing (actually packing) will now generate the typings and fail
  if they don't compile.
- Travis will now generate the typings and fail if they don't compile.
- Some minor tweaks to get typings compiling.
2018-07-26 18:28:22 -07:00
Alexander Marks 8f6a96254c Merge pull request #5305 from Polymer/aomarks-upstream
Upstream a bunch of g3 changes.
2018-07-26 18:27:54 -07:00
Alexander Marks ac6011e0e4 Revert Promise<void> changes. 2018-07-26 18:06:52 -07:00
Alexander Marks 73ae8b4dfa Lint fixes. 2018-07-26 17:39:05 -07:00
Alexander Marks 8b1e793470 Restore some externs. 2018-07-26 16:21:37 -07:00
Alexander Marks 3b8171922f Upstream a bunch of g3 changes. 2018-07-26 16:15:32 -07:00
Alexander Marks b2e47c4930 Merge pull request #5301 from Polymer/polymer-3-typescript
Updates to Polymer 3.x for latest type generator changes
2018-07-26 14:02:36 -07:00
Kevin Schaaf 10d657b388 Back to single template getter. Add more comments. 2018-07-25 16:19:11 -07:00
Kevin Schaaf c4b94a02d1 Revert to legacy template getter, update tests. 2018-07-24 11:48:02 -07:00
Kevin Schaaf f318661416 Merge branch 'master' into strict-template-policy 2018-07-23 22:55:01 -07:00
Kevin Schaaf 376f44c4d2 More updates based on code review. 2018-07-23 22:48:25 -07:00
Alexander Marks 745883ea8e Add no-unused-vars eslint suppressions. 2018-07-23 19:58:42 -07:00
Alexander Marks c96b4502e1 Annotate another two ephemeral classes. 2018-07-23 17:10:41 -07:00
Alexander Marks 8728287fdb Mark some ephemeral super classes as private. 2018-07-23 15:58:07 -07:00
Kevin Schaaf 367273794d Fix allowTemplateFromDomModule opt-in 2018-07-23 10:18:50 -07:00
Kevin Schaaf a199aa912e Fix lint warnings. 2018-07-23 09:48:04 -07:00