Skip to content

Remove 'prerender' from document VisibilityState - #732

Merged
Nathan Shively-Sanders (sandersn) merged 1 commit into
microsoft:masterfrom
kripod:patch-1
Sep 23, 2019
Merged

Remove 'prerender' from document VisibilityState#732
Nathan Shively-Sanders (sandersn) merged 1 commit into
microsoft:masterfrom
kripod:patch-1

Conversation

@kripod

Copy link
Copy Markdown
Contributor

@saschanaz

Copy link
Copy Markdown
Contributor

npm run build && npm run baseline-accept should be done to fix the test.

@kripod

Copy link
Copy Markdown
Contributor Author

Kagami Sascha Rosylight (@saschanaz) Unfortunately, I get the following issues when running those commands:

> npm run build && npm run baseline-accept

> tsjs-lib-generator@ build D:\Development\Projects\TSJS-lib-generator
> tsc --p ./tsconfig.json && node ./lib/index.js

node_modules/@types/node/index.d.ts:74:11 - error TS2300: Duplicate identifier 'IteratorResult'.

74 interface IteratorResult<T> { }
             ~~~~~~~~~~~~~~

  node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6
    41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
            ~~~~~~~~~~~~~~
    'IteratorResult' was also declared here.

node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6 - error TS2300: Duplicate identifier 'IteratorResult'.

41 type IteratorResult<T, TReturn = any> = IteratorYieldResult<T> | IteratorReturnResult<TReturn>;
        ~~~~~~~~~~~~~~

  node_modules/@types/node/index.d.ts:74:11
    74 interface IteratorResult<T> { }
                 ~~~~~~~~~~~~~~
    'IteratorResult' was also declared here.

@saschanaz

Copy link
Copy Markdown
Contributor

Try rebasing + npm i and do it again, as it's fixed in #737.

@kripod

Copy link
Copy Markdown
Contributor Author

Kagami Sascha Rosylight (@saschanaz) Thanks for the tip, everything seems to work now.

@saschanaz

Copy link
Copy Markdown
Contributor

Tests pass, great! But I'm afraid that something is broken when merging and now this PR has some duplicated commits from the master branch. Would you try git merge again?

@kripod

Copy link
Copy Markdown
Contributor Author

Kagami Sascha Rosylight (@saschanaz) I just recreated the entire PR with a force push to avoid issues.

@kripod

Copy link
Copy Markdown
Contributor Author

Kagami Sascha Rosylight (@saschanaz) Sorry for interrupting, but may I ask if there is anything I may help with to get this PR merged?

@saschanaz

Copy link
Copy Markdown
Contributor

Pinging Nathan Shively-Sanders (@sandersn)

@kripod

Copy link
Copy Markdown
Contributor Author

Kagami Sascha Rosylight (@saschanaz) Nathan Shively-Sanders (@sandersn) I'm sorry to disturb again, but may I ask if there are any blocking factors to resolve regarding this PR?

@saschanaz

Kagami Sascha Rosylight (saschanaz) commented Sep 19, 2019 via email

Copy link
Copy Markdown
Contributor

@sandersn

Copy link
Copy Markdown
Member

Thanks for your patience! It's been a busy release.

@qinyuhang

Copy link
Copy Markdown

I'm sorry but I failed to see why U remove prerender, It's still on in MDN https://developer.mozilla.org/en-US/docs/Web/API/Document/visibilityState

@kripod

Copy link
Copy Markdown
Contributor Author

秦宇航 (@qinyuhang) It’s marked as deprecated and has already been removed from the corresponding spec.

@HolgerJeromin

Copy link
Copy Markdown
Contributor

I marked it as deprecated in MDN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove 'prerender' value from VisibilityState

5 participants