Skip to content
This repository was archived by the owner on Sep 16, 2022. It is now read-only.

2020/05/14 sync tweaks#1898

Merged
kevmoo merged 30 commits into
angulardart:masterfrom
lukaszkolodziejczyk:2020_05_14_sync_tweaks
Jul 30, 2020
Merged

2020/05/14 sync tweaks#1898
kevmoo merged 30 commits into
angulardart:masterfrom
lukaszkolodziejczyk:2020_05_14_sync_tweaks

Conversation

@lukaszkolodziejczyk

Copy link
Copy Markdown

No description provided.

PiperOrigin-RevId: 311549333
@googlebot

Copy link
Copy Markdown

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@lukaszkolodziejczyk lukaszkolodziejczyk marked this pull request as ready for review July 15, 2020 18:36
@lukaszkolodziejczyk lukaszkolodziejczyk changed the base branch from 82A631C974191BF08D860B6FD6B36F61 to master July 15, 2020 18:41
@googlebot

Copy link
Copy Markdown

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google.
In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

@lukaszkolodziejczyk lukaszkolodziejczyk force-pushed the 2020_05_14_sync_tweaks branch 7 times, most recently from 6dd6480 to 0ef6faa Compare July 21, 2020 18:04
kevmoo and others added 15 commits July 22, 2020 10:32
Using code_builder version 3.3.0+ breaks the test
"should handle relative paths in a test directory"
(reflector_test.dart).

Every code_builder version 3.0.1+ emits two imports during this test,
but starting from version 3.3.0, the imports are emitted in a different order.
Since AngularDart 6.0.0, map and list literals are no longer supported
inside templates and cause compilation errors.
During instantiation of NgTestBed, generic type is not specialized:
var testBed = NgTestBed.forComponent(...);

The way methods of NgTestBed are currently invoked violate analyzer's
'argument_type_not_assignable' rule (see below for reference).
await fixture.update((AccessorTestComponent c) { ... });

The appropriate with respect to analuzer rules invocation is the
following:
await fixture.update((c) { ... });
During instantiation of NgTestBed, generic type is not specialized:
var testBed = NgTestBed.forComponent(...);

The way methods of NgTestBed are currently invoked violate analyzer's
'argument_type_not_assignable' rule (see below for reference).
await fixture.update((AccessorTestComponent c) { ... });

The appropriate with respect to analuzer rules invocation is the
following:
await fixture.update((c) { ... });
As the result of this commit, more tests for PKG="_tests" are passing.

PiperOrigin-RevId: 312745372
safe_html package is unavailable so the following does not compile:
SafeHtml get content => SafeHtml.sanitize(comment['content']);

Apply alternative approach using angular.security:
SafeHtml get content => _sanitizer.bypassSecurityTrustHtml(comment['content']);
Lukasz Kolodziejczyk added 5 commits July 22, 2020 10:32
PiperOrigin-RevId: 312350039
Used `dart tool/update.dart`
Url sanitizer takes an unsafe_url and turns it into
'unsafe:$unsafe_url'.
See implementation: angular/lib/src/security/url_sanitizer.dart#L35
Sanitization implementation completely removes iframe's srcdoc if it
contains unsafe HTML.
@lukaszkolodziejczyk lukaszkolodziejczyk force-pushed the 2020_05_14_sync_tweaks branch 6 times, most recently from 57c9668 to 6ae1889 Compare July 27, 2020 12:19
API changes introduced to analyzer 0.39.15 broke angular_analyzer_plugin
build.

@kevmoo kevmoo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

until we're ready to publish, we should keep -dev postfixes on versions

Comment thread angular/pubspec.yaml Outdated
Comment thread angular/tools/analyzer_plugin/pubspec.yaml Outdated
Comment thread angular_ast/pubspec.yaml Outdated
Comment thread angular_compiler/pubspec.yaml Outdated
Comment thread angular_forms/pubspec.yaml Outdated
Comment thread angular_router/pubspec.yaml Outdated
Comment thread angular_test/pubspec.yaml Outdated
Lukasz Kolodziejczyk added 8 commits July 29, 2020 10:22
* Bump version to 0.6.0-dev
* Add CHANGELOG.md
* Bump version to 0.5.0-dev
* Add CHANGELOG.md
* Add missing deps to pubspec.yaml
   - angular_ast: ^0.6.0
   - csslib: ^0.16.1
* Bump version to 6.0.0
* Add CHANGELOG.md
* Bump angular_ast and angular_compiler versions in pubspec.yaml
   - angular_ast: 0.6.0
   - angular_compiler: 0.5.0
* Bump version to 1.0.0-dev
* Add CHANGELOG.md
* Modify pubspec.yaml
   - angular_ast: ^0.6.0
   - add 'matcher: ^0.12.9' to dev deps
* Bump version to 1.0.0-dev
* Modify pubspec.yaml
   - angular_analyzer_plugin: '1.0.0'
* Bump version to 3.0.0-dev
* Add CHANGELOG.md
* Modify pubspec.yaml
   - angular: ^6.0.0
* Bump version to 3.0.0-dev
* Add CHANGELOG.md
* Modify pubspec.yaml
   - angular: ^6.0.0
   - angular_test: ^3.0.0
* Bump version to 2.0.0-dev
* Add CHANGELOG.md
* Modify pubspec.yaml
   - angular: ^6.0.0
   - angular_test: ^3.0.0
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants