Skip to content

fix: [#967] Restore trusted keyword with auto-wrap semantics#968

Merged
milkyskies merged 1 commit intomainfrom
fix/967.restore-trusted
Apr 3, 2026
Merged

fix: [#967] Restore trusted keyword with auto-wrap semantics#968
milkyskies merged 1 commit intomainfrom
fix/967.restore-trusted

Conversation

@milkyskies
Copy link
Copy Markdown
Collaborator

closes #967

Summary

Reverts the throws keyword flip from #965 while keeping the try removal. npm imports are untrusted by default (auto-wrapped in Result<T, Error>). trusted marks safe imports.

import trusted { useState } from "react"    // direct call
import { fetchUser } from "some-lib"         // auto-wrapped in Result<T, Error>

Test plan

  • 1291 cargo tests pass
  • Clippy clean
  • Example apps pass floe fmt/check/build
  • Tree-sitter tests pass (42/42)

🤖 Generated with Claude Code

Revert the throws keyword flip from #965 while keeping the try removal.
npm imports are untrusted by default (auto-wrapped in Result<T, Error>).
trusted marks imports safe to call directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot added the fix label Apr 3, 2026
@milkyskies milkyskies merged commit 2748b3e into main Apr 3, 2026
4 checks passed
@milkyskies milkyskies deleted the fix/967.restore-trusted branch April 3, 2026 02:11
milkyskies pushed a commit that referenced this pull request Apr 3, 2026
🤖 I have created a release *beep* *boop*
---


## [0.3.0](v0.2.1...v0.3.0)
(2026-04-03)


### ⚠ BREAKING CHANGES

* [#963] [#964] Replace trusted with throws, remove try keyword
([#965](#965))

### Features

* [[#963](#963)]
[[#964](#964)] Replace trusted
with throws, remove try keyword
([#965](#965))
([87c41be](87c41be))


### Bug Fixes

* [[#967](#967)] Restore trusted
keyword with auto-wrap semantics
([#968](#968))
([2748b3e](2748b3e))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Restore trusted keyword with auto-wrap semantics (revert throws flip from #965)

1 participant