Skip to content
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

fix(ts): deprecate isClient, isServer, isStatic #5211

Merged
merged 1 commit into from Mar 14, 2019
Merged

Conversation

dhritzkiv
Copy link

Description

This follows the documentation on the context page and is supported by tslint.

I found this necessary as the current types were inconsistent with the documentation.

Checklist:

  • I have updated the documentation accordingly.

This follows the documentation on the [context page](https://nuxtjs.org/api/context) and is supported by tslint
@galvez galvez changed the title Add deprecation documentation for context isClient, isServer, isStatic feat(ts): deprecation docs for isClient, isServer, isStatic Mar 12, 2019
@galvez galvez requested a review from kevinmarrec March 12, 2019 17:23
@manniL
Copy link
Member

manniL commented Mar 12, 2019

CI is failing @dhritzkiv 🤔

@dhritzkiv
Copy link
Author

@manniL Could someone help me understand the failures? They seem unrelated to this:

audit:

503 Service Unavailable

build:

TypeError: Cannot assign to read only property 'Symbol(Symbol.toStringTag)' of object '#<process>'

@manniL
Copy link
Member

manniL commented Mar 12, 2019

@dhritzkiv you can ignore the audit issue. the build issue seems to be related though

jestjs/jest#8050

Copy link
Contributor

@kevinmarrec kevinmarrec left a comment

Choose a reason for hiding this comment

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

Thanks @dhritzkiv ! Even if tslint is gonna be deprecated itself and be replaced by eslint (https://eslint.org/blog/2019/01/future-typescript-eslint / https://medium.com/palantir/tslint-in-2019-1a144c2317a9), it seems to also be understood by JSDocs so that's pretty standard, let's merge it :)

@pi0 pi0 merged commit 08287eb into nuxt:master Mar 14, 2019
@pi0 pi0 changed the title feat(ts): deprecation docs for isClient, isServer, isStatic fix(ts): deprecate isClient, isServer, isStatic Mar 14, 2019
pi0 pushed a commit that referenced this pull request Mar 14, 2019
@pi0
Copy link
Member

pi0 commented Mar 14, 2019

PR was targeting master :)) Cherry-picked into dev by 29c3c42

@pi0 pi0 mentioned this pull request Mar 14, 2019
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants