-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
feat: update angular dependencies to V7 #1354
Conversation
Object.defineProperty(Array.prototype, 'unwantedField', { | ||
value: undefined, | ||
}); | ||
delete (Array.prototype as any).unwantedField; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to do this otherwise the integration router specs were failing.
Could the creation of this property on the array be left out?
TypeError: Cannot assign to read only property 'unwantedField' of object '[object Array]'
at new NodeList (C:\Users\tdeschryver\dev\platform\node_modules\domino\lib\NodeList.es6.js:8:44)
at Document.value (C:\Users\tdeschryver\dev\platform\node_modules\domino\lib\Document.js:726:33)
at DominoAdapter.BrowserDomAdapter.querySelectorAll (C:\Users\tdeschryver\dev\packages\platform-browser\src\browser\browser_adapter.ts:122:66)
at DOMTestComponentRenderer.insertRootElement (C:\Users\tdeschryver\packages\platform-browser-dynamic\testing\src\dom_test_component_renderer.ts:25:31)
at TestBedViewEngine.createComponent (C:\Users\tdeschryver\packages\core\testing\src\test_bed.ts:615:27)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its ok leave it here
Object.defineProperty(Array.prototype, 'unwantedField', { | ||
value: undefined, | ||
}); | ||
delete (Array.prototype as any).unwantedField; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
@@ -494,7 +494,7 @@ describe('integration spec', () => { | |||
}); | |||
}); | |||
|
|||
it('should support cancellation of initial navigation using canLoad guard', (done: any) => { | |||
xit('should support cancellation of initial navigation using canLoad guard', (done: any) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is failing, I don't know why yet.
(It timeouts because then((r: boolean) => {...})
isn't being invoked)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is a regression issue - angular/angular#26284
@@ -54,6 +54,13 @@ export function createTestModule( | |||
provide: 'CanLoadNext', | |||
useValue: opts.canLoad || (() => true), | |||
}, | |||
{ | |||
provide: Console, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overriding console logs, otherwise the console will be bloated with warnings that the router.navigate
runs outside Angular zone. angular/angular#24959
While the tests are green of the example app (and builds), there is something wrong with it. When you start it, it's stuck in an infinite loop because of |
1919da1
to
a3af33c
Compare
I've upgraded the deps to Angular 7. |
Same router issue? |
It's because of the Auth guard. The log prints out:
|
We'll need to look into that because I think it affects current users also. See #1373 |
I tested the example app without the router-store and it worked.
I haven't verified this tho. Will try to do so in the next days. |
There was an infinite loop because of
/ , we set this url when we are in a NavigationStart event. I'm not sure if there is a better way to prevent this.
The fix in commit 1c10f7d ignores navigation when it's triggered by |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll need to update the docs app dependencies also, but that can be done separately.
console.log('action', action); | ||
console.log('next state', result); | ||
console.groupEnd(); | ||
// console.groupCollapsed(action.type); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert
tools/defaults.bzl
Outdated
@@ -5,8 +5,8 @@ load("@build_bazel_rules_nodejs//:defs.bzl", | |||
_jasmine_node_test="jasmine_node_test", _npm_package="npm_package") | |||
|
|||
DEFAULT_TSCONFIG = "//:tsconfig.json" | |||
NG_VERSION = "^6.0.0" | |||
RXJS_VERSION = "^5.6.0-forward-compat.0 || ^6.0.0" | |||
NG_VERSION = "^7.0.0-rc.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to ^7.0.0
Object.defineProperty(Array.prototype, 'unwantedField', { | ||
value: undefined, | ||
}); | ||
delete (Array.prototype as any).unwantedField; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its ok leave it here
@timdeschryver will you update the commit message for the router-store fix? We may need to cherry pick for a 6.1.x bug fix in the meantime until 7.x is ready. |
@brandonroberts , is it possible to cherry pick the commits we want to release? Would it make things easier if I would create a separate PR for the router fix, because if that's the case I could do it that way. |
1febc09
to
e3038ce
Compare
@timdeschryver yes. I've created a |
e3038ce
to
86c00bd
Compare
@brandonroberts see #1379. |
Should I also at the migrations for |
We don't have any migrations for V7 currently. It should work by using |
tools/defaults.bzl
Outdated
NG_VERSION = "^6.0.0" | ||
RXJS_VERSION = "^5.6.0-forward-compat.0 || ^6.0.0" | ||
NG_VERSION = "^7.0.0" | ||
RXJS_VERSION = "^6.3.0" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave this pinned to ^6.0.0
instead for rxjs
Yea, but won't |
Today, yes. Once V7 is published, it will be tagged as latest so it will get picked up without us having to tweak any additional migration code. I believe migrations are only run if you specify the |
I'm not really sure of it. |
Bazel depends on the package.json for its dependency graph. ngrx-store-freeze implicitly depends on @ngrx/store, which is a package in this monorepo
2bb9123
to
bdd1a3d
Compare
c5e7a71
to
9b7a711
Compare
9b7a711
to
4b5c442
Compare
Any ETA of release? |
Work in progress do not merge.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Update to Angular 7.
Does this PR introduce a breaking change?
Other information