Comparing 9.1.8...9.1.9 · angular/angular · GitHub
Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: angular/angular
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9.1.8
Choose a base ref
...
head repository: angular/angular
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9.1.9
Choose a head ref
  • 20 commits
  • 10 files changed
  • 6 contributors

Commits on May 20, 2020

  1. Revert "fix(elements): do not break when the constructor of an Angula…

    …r Element is not called (#36114)"
    
    This reverts commit 87b9f08
    because it is causing the side effects test to break on the
    9.1.x branch.
    kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    12d8af5 View commit details
    Browse the repository at this point in the history
  2. Revert "fix(elements): capture input properties set before upgrading …

    …the element (#36114)"
    
    This reverts commit 1c8f179
    because it is causing the side effects test to break on the
    9.1.x branch.
    kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    6f3157f View commit details
    Browse the repository at this point in the history
  3. Revert "test(elements): clean up TestStrategy between tests (#36114)"

    This reverts commit d98d0db
    because it is causing the side effects test to break on the
    9.1.x branch.
    kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    cf48832 View commit details
    Browse the repository at this point in the history
  4. Revert "test(elements): only declare helpers if needed (#36114)"

    This reverts commit 7e56222
    because it is causing the side effects test to break on the
    9.1.x branch.
    kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    c8f0c3b View commit details
    Browse the repository at this point in the history
  5. Revert "refactor(elements): remove unused imports and properties (#36114

    )"
    
    This reverts commit 2ed66ac
    because it is causing the side effects test to break on the
    9.1.x branch.
    kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    2c4cfa6 View commit details
    Browse the repository at this point in the history
  6. Revert "refactor(elements): simplify accessing NgElementStrategy (#…

    …36114)"
    
    This reverts commit fa073ba
    because it is causing the side effects test to break on the
    9.1.x branch.
    kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    4e25002 View commit details
    Browse the repository at this point in the history
  7. Revert "fix(elements): correctly handle getting/setting properties be…

    …fore connecting the element (#36114)"
    
    This reverts commit 363f14c
    because it is causing the side effects test to break on the
    9.1.x branch.
    kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    19313f7 View commit details
    Browse the repository at this point in the history
  8. ci: testing folders in compiler-cli should not require fw-testingap…

    …proval (#37220)
    
    The `fw-testing` PullApprove group is really designed to
    capture the top level public testing API groups in packages
    like `common` and `router`.
    
    The compiler-cli also has some folders that contain the path
    segment `testing` but these should not require `fw-testing`
    PullApprove approval.
    
    This commit excludes the whole of `compiler-cli` package from
    the `fw-testing` group.
    
    PR Close #37220
    petebacondarwin authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    5bd1c7b View commit details
    Browse the repository at this point in the history
  9. fix(dev-infra): ignore dev-infra scope while checking for features …

    …in patch branch (#37210)
    
    This commit updates the script that checks master and patch branches to ignore features with `dev-infra` scope
     while verifying that there are no feature commits in patch branch. It's ok and in fact desirable for dev-infra features to be on the patch branch.
    
    PR Close #37210
    AndrewKushnir authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    a2393be View commit details
    Browse the repository at this point in the history
  10. feat(dev-infra): create logging utils with support for defined loggin…

    …g levels (#37192)
    
    Creates common logging functions at different levels. Allows for providing
    logging statements which are actually printed to the console based on the
    LOG_LEVEL environment variable.
    
    PR Close #37192
    josephperrott authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    468f4a3 View commit details
    Browse the repository at this point in the history
  11. build: complete removal of bazel format yarn commands (#37148)

    Remove bazel yarn format deprecation message to complete the removal of
    formatting bazel related files via yarn command command.
    
    PR Close #37148
    josephperrott authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    5c94fa9 View commit details
    Browse the repository at this point in the history
  12. docs: update docs for microbenchmarks (#37140)

    Update docs in the micro benchmarks to include:
    * How to run with no turbo inlining
    * Where to find the profiles in the DevTools
    * Best way to debug benchmarks (using the profile_in_browser rather than --inspect-brk)
    
    PR Close #37140
    atscott authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    3eee536 View commit details
    Browse the repository at this point in the history
  13. fix(elements): correctly handle getting/setting properties before con…

    …necting the element (#36114) (#37226)
    
    `createCustomElements()` creates some getters/setters for properties
    corresponding to component inputs that delegate to the
    `NgElementStrategy`. However, it is not guaranteed that the element's
    `NgElementStrategy` will have been created when these getters/setters
    are called, because some polyfills (e.g. `document-register-element`) do
    not call the constructor.
    
    Previously, trying to get/set input properties before connecting the
    element to the DOM (via `connectedCallback()`) would fail due to
    `NgElementStrategy` not being created.
    
    This commit ensures that the `NgElementStrategy` is always created
    before used inside the input property getters/setters (similar to how it
    is done for other methods of `NgElement`).
    
    Mentioned in https://github.com/angular/angular/pull/31416/files#r300326698.
    
    PR Close #36114
    
    PR Close #37226
    gkalpak authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    6ac0042 View commit details
    Browse the repository at this point in the history
  14. refactor(elements): simplify accessing NgElementStrategy (#36114) (#…

    …37226)
    
    Previously, we had to check whether `NgElementStrategy` had been
    instantiated before accessing it. This was tedious and error prone,
    since it was easy to forget to add the check in new call sites.
    
    This commit switches to using a getter, so that the check has to be
    performed in one place and is transparent to call sites (including any
    future ones).
    
    PR Close #36114
    
    PR Close #37226
    gkalpak authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    75ead94 View commit details
    Browse the repository at this point in the history
  15. refactor(elements): remove unused imports and properties (#36114) (#3…

    …7226)
    
    - Remove imports that are not used.
    - Remove private class properties that are not used outside of the
      constructor.
    
    PR Close #36114
    
    PR Close #37226
    gkalpak authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    dc210bc View commit details
    Browse the repository at this point in the history
  16. test(elements): only declare helpers if needed (#36114) (#37226)

    Previously, helper modules/components classes were declared even if the
    tests were not run (because the environment did not support Custom
    Elements for example).
    
    This commit moves the declaration of the helpers inside the `describe()`
    block, so they are not declared unnecessarily. This is in preparation of
    adding more helpers that need to access variables declared inside the
    `describe()` block.
    
    PR Close #36114
    
    PR Close #37226
    gkalpak authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    d837828 View commit details
    Browse the repository at this point in the history
  17. test(elements): clean up TestStrategy between tests (#36114) (#37226)

    Previously, the `TestStrategy` `NgElementStrategy` used in
    `createCustomElement()` tests was created once and re-used in each test
    (due to complications related to how `customElements.register()` works).
    As a result, the `TestStrategy` instance's state (e.g. inputs) could be
    polluted from previous tests and affect subsequent ones.
    
    This commit ensures the strategy instance is reset before each test.
    
    PR Close #36114
    
    PR Close #37226
    gkalpak authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    1202d17 View commit details
    Browse the repository at this point in the history
  18. fix(elements): capture input properties set before upgrading the elem…

    …ent (#36114) (#37226)
    
    Previously, if an element started out as a regular `HTMLElement` (not a
    Custom Element) and was later upgraded to a Custom Element, any
    properties corresponding to component inputs that were set on the
    element before upgrading it would not be captured correctly and thus not
    reflected on the instantiated component.
    
    This commit fixes it by ensuring that such properties are captured
    correctly.
    
    Jira issue: [FW-2006](https://angular-team.atlassian.net/browse/FW-2006)
    
    Fixes #30848
    Closes #31416
    
    PR Close #36114
    
    PR Close #37226
    gkalpak authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    a33cb2d View commit details
    Browse the repository at this point in the history
  19. fix(elements): do not break when the constructor of an Angular Elemen…

    …t is not called (#36114) (#37226)
    
    Previously, the correct behavior of Angular custom elements relied on
    the constructor being called (and thus the `injector` property being
    initialized). However, some polyfills (e.g. `document-register-element`)
    do not call the constructor of custom elements, which resulted in the
    `injector` property being undefined and the `NgElementStrategy` failing
    to be instantiated.
    
    This commit fixes it by being tolerant to the `injector` property being
    undefined and falling back to the injector passed to the
    `createCustomElement()` config.
    
    NOTE:
    We don't have proper tests exercising the situation where the
    constructor is not called. For now this is tested using a Google
    internal test suite (which is how this issue was caught).
    This commit also adds a rudimentary unit test to emulate this situation.
    
    PR Close #36114
    
    PR Close #37226
    gkalpak authored and kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    1465372 View commit details
    Browse the repository at this point in the history
  20. release: cut the v9.1.9 release

    kara committed May 20, 2020
    Configuration menu
    Copy the full SHA
    b797913 View commit details
    Browse the repository at this point in the history
Loading