-
Notifications
You must be signed in to change notification settings - Fork 27
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
chore: deprecate flat
#165
chore: deprecate flat
#165
Conversation
Debating whether to merge this into the next minor or major version. 🤔 The SemVer spec states the following:
But, considering how VSCode does a "strike-through" of deprecated APIs, I wonder if saving deprecations for a major version isn't a more user-friendly policy. Any thoughts, @radashi-org/core? |
I prefer a minor release for the @deprecated in JSDOC and a major release for code remotion. |
…to ensure browser compatibility with `pnpm lint`.
Benchmark Results
Performance regressions of 30% or more should be investigated, unless they were anticipated. Smaller regressions may be due to normal variability, as we don't use dedicated CI infrastructure. |
A new beta version To install: pnpm add [email protected] The |
Note: I replaced the old But somehow, I read the benchmark results as a +75% improvement, so I merged prematurely. Sadly, using That's quite surprising, considering that I wonder if we should revert the deprecation or should we assume that (1) edit: I should note that the benchmark for |
I'm gonna have to revert this, because I thought eslint-plugin-compat would catch this, but it (sadly) doesn't actually check method usage: amilajack/eslint-plugin-compat#258 I'm in the process of updating our tsconfig.json to use |
What do you mean by keeping jsdoc saying that there is currently a native implementation in ES2019? |
@MarlonPassos-git That's a good idea! PR welcome :) |
Tip
The owner of this PR can publish a preview release by commenting
/publish
in this PR. Afterwards, anyone can try it out by runningpnpm add radashi@pr<PR_NUMBER>
.Summary
Update the JSDOC and documentation about the function being deprecated.
Related issue, if any:
https://github.com/orgs/radashi-org/discussions/84
For any code change,
Does this PR introduce a breaking change?
Yes
Bundle impact
src/array/flat.ts
Footnotes
Function size includes the
import
dependencies of the function. ↩