Skip to content

[pull] master from angular:master#35

Merged
pull[bot] merged 17 commits intoPandinosaurus:masterfrom
angular:master
May 16, 2019
Merged

[pull] master from angular:master#35
pull[bot] merged 17 commits intoPandinosaurus:masterfrom
angular:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented May 16, 2019

See Commits and Changes for more details.


Created by pull[bot]

filipesilva and others added 17 commits May 16, 2019 12:08
This new tests keeps track of the known side effects for Angular ES modules.

PR Close #29329
…rts` (#25445)

Previously we were just checking that the object was "any" object but now
we check that it is the file object that we expected.

PR Close #25445
…25445)

Previously we were using an anonymous type `{specifier: string; qualifier: string;}`
throughout the code base. This commit gives this type a name and ensures it
is only defined in one place.

PR Close #25445
The `getDeclaration()` function now searches down into the AST for
matching nodes, which is needed for UMD testing.

PR Close #25445
In UMD formats, imports are always namespaced. This commit makes
ngcc more tolerant of such structures.

PR Close #25445
…5445)

Previously these fake files were full TypeScript source
files (`.ts`) but this is not necessary as we only need the
typings not the implementation.

PR Close #25445
In some cases the `forwardRef` helper has been imported via a namespace,
e.g. `core.forwardRef(...)`.

This commit adds support for unwrapping such namespaced imports when
ngtsc is statically evaluating code.

PR Close #25445
Previously the same `Renderer` was used to render typings (.d.ts)
files. But the new `UmdRenderer` is not able to render typings files
correctly.

This commit splits out the typings rendering from the src rendering.
To achieve this the previous renderers have been refactored from
sub-classes of the abstract `Renderer` class to  classes that implement
the `RenderingFormatter` interface, which are then passed to the
`Renderer` and `DtsRenderer` to modify its rendering behaviour.

Along the way a few utility interfaces and classes have been moved
around and renamed for clarity.

PR Close #25445
The dependency resolution that works out the order in which
to process entry-points must also understand UMD formats.

PR Close #25445
Previously we were relying upon the `.get()` method to return `undefined`
but it is clearer and safer to always check with `.has()` first.

PR Close #25445
@pull pull bot added the ⤵️ pull label May 16, 2019
@pull pull bot merged commit 757d4c3 into Pandinosaurus:master May 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants