Skip to content

Commit 2ddb6b9

Browse files
MoienTajik0xdhrvraycastbot
authored
Update qr-code-scanner extension (#26336)
* Fix: use Raycast open API instead of npm open package for correct URL dispatch * feat(qr-code-scanner): add option to open URL after scan - Introduced a new preference to automatically open decoded URLs after scanning. - Updated dependencies for improved functionality and security. - Refactored QR code decoding to use async/await for better error handling. - Added ESLint configuration for consistent code quality. * Update CHANGELOG.md --------- Co-authored-by: Dhruv Suthar <git@dhrv.pw> Co-authored-by: raycastbot <bot@raycast.com>
1 parent 81d5254 commit 2ddb6b9

File tree

8 files changed

+1879
-2366
lines changed

8 files changed

+1879
-2366
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"version": 1,
3+
"lastRunAtMs": 0,
4+
"turnsSinceLastRun": 1,
5+
"lastTranscriptMtimeMs": null,
6+
"lastProcessedGenerationId": "2ca4c0bb-8830-45d1-8203-2902c56c492e",
7+
"trialStartedAtMs": null
8+
}

extensions/qr-code-scanner/.eslintrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# Raycast specific files
7+
raycast-env.d.ts
8+
.raycast-swift-build
9+
.swiftpm
10+
compiled_raycast_swift
11+
compiled_raycast_rust
12+
13+
# misc
14+
.DS_Store

extensions/qr-code-scanner/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# QR Code Scanner Changelog
22

3+
## [Fix] - 2026-03-30
4+
5+
- Replaced the npm `open` package with Raycast's built-in `open` from `@raycast/api` for URL handling. The npm package bypassed macOS's native URL dispatch, causing all URLs to open in the browser instead of their registered app handlers (deep-links). Using Raycast's `open` correctly delegates to macOS's `open` command, which respects universal links and custom URL scheme registrations.
6+
- Removed the "Open in Browser?" confirmation dialog — URLs now open immediately in the correct app without an extra prompt.
7+
38
## [Fix] - 2024-03-19
49

510
- Fixed a bug that the extension doesn't work when user set `Pop to Root Search` to `Immediately`.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import { defineConfig } from "eslint/config";
2+
import raycast from "@raycast/eslint-config";
3+
4+
export default defineConfig([...raycast]);

0 commit comments

Comments
 (0)