Skip to content

chore: cleanup deno support#6405

Open
lishaduck wants to merge 4 commits into
Effect-TS:mainfrom
lishaduck:clean-deno
Open

chore: cleanup deno support#6405
lishaduck wants to merge 4 commits into
Effect-TS:mainfrom
lishaduck:clean-deno

Conversation

@lishaduck

@lishaduck lishaduck commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Type

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

Description

Remove some Deno-specific code that's no longer necessary, etc.

Related

Port of the prepping from Effect-TS/effect-smol#859 to the main Effect repository.

  • Related Issue #
  • Closes #

Summary by CodeRabbit

  • New Features

    • Improved Deno project integration via updated workspace coverage and editor Deno/TypeScript settings.
  • Bug Fixes

    • Improved compatibility when reading and updating Error.stackTraceLimit across runtimes.
    • Removed unnecessary global ErrorConstructor type augmentations to reduce TypeScript conflicts.
  • Tests

    • Refined runtime-specific test selection for Node, Bun, and Deno.
    • Increased persistence test timeouts and strengthened flaky-test timeout handling.

@github-project-automation github-project-automation Bot moved this to Discussion Ongoing in PR Backlog Jul 15, 2026
@changeset-bot

changeset-bot Bot commented Jul 15, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 84b1bbd

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@fubhy
fubhy requested a review from tim-smart July 15, 2026 05:26
@fubhy fubhy added the 4.0 label Jul 15, 2026

@fubhy fubhy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lishaduck This looks good to me and also works for me locally. Just waiting for @tim-smart to confirm that the issue he was seeing before in the effect-smol PR are resolved.

Can you fix the linting and test errors in the meantime?

@lishaduck

Copy link
Copy Markdown
Contributor Author

Just waiting for @tim-smart to confirm that the issue he was seeing before in the effect-smol PR are resolved.

That was in the actual Deno PR, this PR is just cleaning up the support added in Effect-TS/effect-smol#80 with a newer Deno version (reiterating from Discord, the "next" version of Deno should simplify this even more and remove the need for Deno-specific checks; this is kinda prepping for that as well).

@lishaduck

Copy link
Copy Markdown
Contributor Author

And it looks like the test was just a timeout, fixed the formatting.

@fubhy

fubhy commented Jul 16, 2026

Copy link
Copy Markdown
Member

@lishaduck Test is still timing out.

@lishaduck

Copy link
Copy Markdown
Contributor Author

@lishaduck Test is still timing out.

They all time out for me locally on Node.js & Deno 😅

I'll see if an agent can repro it but I haven't a clue.

Co-authored-by: Eli <elisha.dukes@gmail.com>
@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 796a25cc-91df-430d-ac33-2424f3c1ae32

📥 Commits

Reviewing files that changed from the base of the PR and between b743121 and 84b1bbd.

📒 Files selected for processing (1)
  • packages/effect/test/unstable/persistence/PersistedCacheTest.ts

📝 Walkthrough

Walkthrough

Updates Deno and Vitest environment configuration, removes stack-trace type augmentations, and increases persisted-cache test timeouts.

Changes

Environment configuration

Layer / File(s) Summary
Workspace and editor setup
.vscode/settings.json, deno.json
Deno integration settings and workspace entries are expanded for additional directories and package subtrees.
Runtime test selection
vitest.config.ts
Vitest derives an isNode flag and applies separate environment-specific project exclusions for Deno, Bun, and Node.

Stack trace type cleanup

Layer / File(s) Summary
Stack trace limit access
packages/effect/src/internal/stackTraceLimit.ts
Stack trace limit access uses direct Error.stackTraceLimit reads and a local structural cast for writes.
Global declarations and tests
packages/effect/src/unstable/reactivity/AtomHttpApi.ts, packages/effect/src/unstable/reactivity/AtomRpc.ts, packages/effect/test/StackTraceLimit.test.ts
Global ErrorConstructor augmentations are removed, and the test helper reads Error.stackTraceLimit directly.

Persistence test timing

Layer / File(s) Summary
Persisted cache test execution
packages/effect/test/unstable/persistence/PersistedCacheTest.ts
The suite timeout increases to 60 seconds and the flaky-test operation timeout increases to 45 seconds.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • Effect-TS/effect#6412: Directly overlaps the Deno/TypeScript configuration and stack-trace type changes.

Suggested labels: bug

Suggested reviewers: tim-smart

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly reflects the main change: cleaning up and simplifying Deno support across the repository.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot added the bug Something isn't working label Jul 19, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@packages/effect/test/unstable/persistence/PersistedCacheTest.ts`:
- Around line 69-71: In both pipelines in PersistedCacheTest.ts (anchor lines
69-71 and sibling lines 99-101), move flakyTest to be the outermost operator,
after Effect.catchFilter(...), so the 10-second timeout includes layer
provisioning while preserving the existing error handling.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro

Run ID: 30dc34d1-abb9-4062-a50a-fee15e386b63

📥 Commits

Reviewing files that changed from the base of the PR and between 80b539f and b743121.

📒 Files selected for processing (9)
  • .vscode/settings.json
  • deno.json
  • packages/effect/src/internal/stackTraceLimit.ts
  • packages/effect/src/internal/tracer.ts
  • packages/effect/src/unstable/reactivity/AtomHttpApi.ts
  • packages/effect/src/unstable/reactivity/AtomRpc.ts
  • packages/effect/test/StackTraceLimit.test.ts
  • packages/effect/test/unstable/persistence/PersistedCacheTest.ts
  • vitest.config.ts
💤 Files with no reviewable changes (3)
  • packages/effect/src/unstable/reactivity/AtomRpc.ts
  • packages/effect/src/internal/tracer.ts
  • packages/effect/src/unstable/reactivity/AtomHttpApi.ts

Comment thread packages/effect/test/unstable/persistence/PersistedCacheTest.ts Outdated
@github-project-automation github-project-automation Bot moved this from Discussion Ongoing to Waiting on Author in PR Backlog Jul 19, 2026
Co-authored-by: Eli <elisha.dukes@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Analysis

File Name Current Size Previous Size Difference
basic.ts 6.66 KB 6.66 KB 0.00 KB (0.00%)
batching.ts 9.26 KB 9.26 KB 0.00 KB (0.00%)
brand.ts 6.14 KB 6.14 KB 0.00 KB (0.00%)
cache.ts 9.90 KB 9.90 KB 0.00 KB (0.00%)
config.ts 18.88 KB 18.88 KB 0.00 KB (0.00%)
differ.ts 17.10 KB 17.10 KB 0.00 KB (0.00%)
http-client.ts 20.58 KB 20.58 KB 0.00 KB (0.00%)
logger.ts 10.25 KB 10.25 KB 0.00 KB (0.00%)
metric.ts 8.52 KB 8.52 KB 0.00 KB (0.00%)
optic.ts 7.35 KB 7.35 KB 0.00 KB (0.00%)
pubsub.ts 14.09 KB 14.09 KB 0.00 KB (0.00%)
queue.ts 11.09 KB 11.09 KB 0.00 KB (0.00%)
schedule.ts 10.29 KB 10.29 KB 0.00 KB (0.00%)
schema-class.ts 17.95 KB 17.95 KB 0.00 KB (0.00%)
schema-fromJsonSchemaDocument.ts 4.06 KB 4.06 KB 0.00 KB (0.00%)
schema-representation-roundtrip.ts 27.33 KB 27.33 KB 0.00 KB (0.00%)
schema-string-transformation.ts 12.62 KB 12.62 KB 0.00 KB (0.00%)
schema-string.ts 10.29 KB 10.29 KB 0.00 KB (0.00%)
schema-template-literal.ts 14.26 KB 14.26 KB 0.00 KB (0.00%)
schema-toArbitraryLazy.ts 20.73 KB 20.73 KB 0.00 KB (0.00%)
schema-toCodeDocument.ts 21.31 KB 21.31 KB 0.00 KB (0.00%)
schema-toCodecJson.ts 17.92 KB 17.92 KB 0.00 KB (0.00%)
schema-toEquivalence.ts 17.81 KB 17.81 KB 0.00 KB (0.00%)
schema-toFormatter.ts 17.64 KB 17.64 KB 0.00 KB (0.00%)
schema-toJsonSchemaDocument.ts 20.21 KB 20.21 KB 0.00 KB (0.00%)
schema-toRepresentation.ts 18.20 KB 18.20 KB 0.00 KB (0.00%)
schema.ts 17.23 KB 17.23 KB 0.00 KB (0.00%)
stm.ts 12.02 KB 12.02 KB 0.00 KB (0.00%)
stream.ts 9.29 KB 9.29 KB 0.00 KB (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0 bug Something isn't working

Projects

Status: Waiting on Author

Development

Successfully merging this pull request may close these issues.

4 participants