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 for possible stack overflow issues due to Array.push in combination with spread operator #2057

Merged

Conversation

joepjoosten
Copy link
Contributor

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

Related

Copy link

changeset-bot bot commented Feb 6, 2024

🦋 Changeset detected

Latest commit: 41280d3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 17 packages
Name Type
effect Patch
@effect/platform Patch
@effect/schema Patch
@effect/cli Patch
@effect/experimental Patch
@effect/opentelemetry Patch
@effect/platform-browser Patch
@effect/platform-bun Patch
@effect/platform-node Patch
@effect/printer-ansi Patch
@effect/printer Patch
@effect/rpc-http-node Patch
@effect/rpc-http Patch
@effect/rpc-nextjs Patch
@effect/rpc-workers Patch
@effect/rpc Patch
@effect/typeclass Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mikearnaldi
Copy link
Member

Looks good, would you mind adding a changeset with patch level and a description of the change pls, you can generate one using pnpm changeset and following the wizard

.eslintrc.cjs Outdated Show resolved Hide resolved
@github-actions github-actions bot changed the base branch from main to next-minor February 6, 2024 13:18
Indeed!

Co-authored-by: Corentin Leruth <corentin.leruth@gmail.com>
@mikearnaldi
Copy link
Member

The changeset is set at minor, should be set at patch

@mikearnaldi mikearnaldi changed the base branch from next-minor to main February 6, 2024 16:56
@mikearnaldi
Copy link
Member

Seems like linter suggests two other places where spread is used

@tim-smart
Copy link
Member

Does array.push.apply(array, otherArray) have the same issue?

@tim-smart
Copy link
Member

Does array.push.apply(array, otherArray) have the same issue?

The answer is yes.

@joepjoosten
Copy link
Contributor Author

Seems like linter suggests two other places where spread is used

When running lint locally, it doesn't complain, and i can't find the push it is complaining about...? Strange?

@mikearnaldi
Copy link
Member

Very strange...

@tim-smart tim-smart merged commit 6928a2b into Effect-TS:main Feb 7, 2024
12 checks passed
@github-actions github-actions bot mentioned this pull request Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

ReadOnly Array flatMap stack overflow
4 participants