Skip to content

Commit

Permalink
feat(platform-server): update domino to v2.1.0 (#25564)
Browse files Browse the repository at this point in the history
PR Close #25564
  • Loading branch information
CaerusKaru authored and kara committed Sep 19, 2018
1 parent 8f0fcc3 commit 3fb0da2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -80,7 +80,7 @@
"cors": "2.8.4",
"dependency-graph": "^0.7.2",
"diff": "^3.5.0",
"domino": "2.0.1",
"domino": "2.1.0",
"entities": "1.1.1",
"firefox-profile": "1.0.3",
"fs-extra": "4.0.2",
Expand Down
Expand Up @@ -309,7 +309,11 @@ describe('elements', () => {
}

const comp = renderComponent(MyComponent);
expect(toHtml(comp)).toEqual('<div></div>');

// This is a fix for a change in how Domino renders this on the server in v2.1.0
const source = toHtml(comp);
const matches = source === '<div></div>' || source === '<div class=""></div>';
expect(matches).toBeTruthy();

comp.someFlag = true;
$r3$.ɵdetectChanges(comp);
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-server/package.json
Expand Up @@ -21,7 +21,7 @@
"@angular/platform-browser-dynamic": "0.0.0-PLACEHOLDER"
},
"dependencies": {
"domino": "^2.0.1",
"domino": "^2.1.0",
"tslib": "^1.9.0",
"xhr2": "^0.1.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-server/test/integration_spec.ts
Expand Up @@ -588,7 +588,7 @@ class HiddenModule {
expect(output).toContain('Works!');
expect(output).toContain('ng-trigger-myAnimation');
expect(output).toContain('opacity:1;');
expect(output).toContain('transform:translate3d(0, 0, 0);');
expect(output).toContain('transform:translate3d(0 , 0 , 0);');
expect(output).toContain('font-weight:bold;');
called = true;
});
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Expand Up @@ -1894,9 +1894,9 @@ domain-browser@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/domain-browser/-/domain-browser-1.2.0.tgz#3d31f50191a6749dd1375a7f522e823d42e54eda"

domino@2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/domino/-/domino-2.0.1.tgz#9e1d63215d0fe8dcb8202bff07effa1a216db504"
domino@2.1.0:
version "2.1.0"
resolved "https://registry.yarnpkg.com/domino/-/domino-2.1.0.tgz#653ba7d331441113b42e40ba05f24253ec86e02e"

dot-prop@^3.0.0:
version "3.0.0"
Expand Down

0 comments on commit 3fb0da2

Please sign in to comment.