-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Generate types rather than relying on type-fest
#209
Generate types rather than relying on type-fest
#209
Conversation
@sindresorhus Done ✔️ Also, I see that there's an |
I think that's a mistake. It should run |
Got tsd running, and that was good as that uncovered what would had been a regression, now fixed the generated types to look more like the old ones |
Now... I'm way to trigger-happy today, sorry |
Only breaking change is the dropping of old Node.js versions but it still support all versions that `@eslint/eslintrc` supports. The one impactful thing it does though is that it removes the only dependency – replacing an outdated `type-fest` module with built-in types – making it so that everyone that installs `eslint` doesn't also get an outdated `type-fest` and thus doesn't have to contend with it in their `npm` deduping and hoisting. Relevant PR: sindresorhus/globals#209
Maintenance update of `globals` to `v14` Only breaking change is the dropping of old Node.js versions but it still support all versions that `@eslint/eslintrc` supports. The one impactful thing it does though is that it removes the only dependency – replacing an outdated `type-fest` module with built-in types – making it so that everyone that installs `eslint` doesn't also get an outdated `type-fest` and thus doesn't have to contend with it in their `npm` deduping and hoisting. Relevant PR: sindresorhus/globals#209
I was first going to update this repository to use the latest
type-fest
(^4.10.2
) instead of the old^0.20.2
, but then I thought: Why doReadonlyDeep<>
on the fly, with input from a JSON-file, when we can just as well generate it up front instead?So I threw together a quick script that generates a
readonly
structure usinginterface
:s.Should probably do something that automates this generation, any specific way you would prefer?
(Found this as I found that ESLint is relying on this module and thus that an old
type-fest
is pulled in to all of my projects)Fixes #208