-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
feat(lib/esnext): add change array by copy types #51367
Conversation
I am not sure why the test is failing. I'd assume it's flaky because it doesn't seem related to changing the type lib? |
@microsoft-github-policy-service agree |
I grabbed this PR and merged main into it, this is the test result:
The former is because:
You need to add new libs to The latter test failure goes away once the above is fixed. However, is this supposed to be in ES2023 and not esnext? (I'm not an expert at that part.) |
Yes, ES2023 is the right place for something that's stage 4 and will be part of the standard published as ES2023. |
…eat/change-array-copy
…Script into feat/change-array-copy
Can't be too safe this late in the game! @typescript-bot test this |
Heya @DanielRosenwasser, I've started to run the diff-based top-repos suite on this PR at 0861e4c. You can monitor the build here. Update: The results are in! |
Heya @DanielRosenwasser, I've started to run the parallelized Definitely Typed test suite on this PR at 0861e4c. You can monitor the build here. |
Heya @DanielRosenwasser, I've started to run the perf test suite on this PR at 0861e4c. You can monitor the build here. Update: The results are in! |
Heya @DanielRosenwasser, I've started to run the diff-based user code test suite (tsserver) on this PR at 0861e4c. You can monitor the build here. Update: The results are in! |
Heya @DanielRosenwasser, I've started to run the diff-based user code test suite on this PR at 0861e4c. You can monitor the build here. Update: The results are in! |
Heya @DanielRosenwasser, I've started to run the extended test suite on this PR at 0861e4c. You can monitor the build here. |
@DanielRosenwasser Here are the results of running the user test suite comparing Something interesting changed - please have a look. Details
|
@DanielRosenwasser Here are the results of running the user test suite comparing Something interesting changed - please have a look. Detailscreate-react-app
|
@DanielRosenwasser Here they are:
CompilerComparison Report - main..51367
System
Hosts
Scenarios
TSServerComparison Report - main..51367
System
Hosts
Scenarios
StartupComparison Report - main..51367
System
Hosts
Scenarios
Developer Information: |
@DanielRosenwasser Here are the results of running the top-repos suite comparing Everything looks good! |
@DanielRosenwasser Here are the results of running the top-repos suite comparing Something interesting changed - please have a look. Detailsant-design/ant-design-pro
|
@DanielRosenwasser Here are some more interesting changes from running the top-repos suite Detailspnpm/pnpm
|
@DanielRosenwasser Here are some more interesting changes from running the top-repos suite Detailsvuejs/devtools
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of suggestions for the wording. Also, can you test this just with examples of usage in tests/cases/conformance/es2023/es2023ArrayByCopy.ts ? Looks like there are similar things in the es2022 folder.
Co-authored-by: Nathan Shively-Sanders <[email protected]>
Co-authored-by: Tim Buckley <[email protected]>
Co-authored-by: Nathan Shively-Sanders <[email protected]>
Co-authored-by: Nathan Shively-Sanders <[email protected]>
Co-authored-by: Nathan Shively-Sanders <[email protected]>
Co-authored-by: Nathan Shively-Sanders <[email protected]>
Co-authored-by: Nathan Shively-Sanders <[email protected]>
Hi, did you reach a consensus on the last standing issue? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, although I don't know if I want to ship this after the 5.1 beta.
@DanielRosenwasser I'm inclined to keep this until 5.2. Do you agree?
Co-authored-by: Albert Arvidsson <[email protected]>
Fixes #50333
Note: I decided to make
with
andtoSpliced
allow adding new types because I see the functions as the equivalent of creating array literals and spreading the original array:Prior art by Deno in denoland/deno#16499