Skip to content

Commit 252c9e9

Browse files
authored
fix(sveltekit): Bump magicast to support satisfied keyword (#8254)
Bump `magicast` to the latest version, 0.2.8, which fixes auto instrumentation of files with `satisfies` keywords.
1 parent e95e574 commit 252c9e9

File tree

5 files changed

+36
-20
lines changed

5 files changed

+36
-20
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import type { PageServerLoad } from './$types';
2+
3+
export const load = (async _event => {
4+
return { name: 'building (server)' };
5+
}) satisfies PageServerLoad;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<h1>Check Build</h1>
2+
3+
<p>
4+
This route only exists to check that Typescript definitions
5+
and auto instrumentation are working when the project is built.
6+
</p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import type { PageLoad } from './$types';
2+
3+
export const load = (async _event => {
4+
return { name: 'building' };
5+
}) satisfies PageLoad;

packages/sveltekit/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@sentry/types": "7.53.1",
2929
"@sentry/utils": "7.53.1",
3030
"@sentry/vite-plugin": "^0.6.0",
31-
"magicast": "0.2.6",
31+
"magicast": "0.2.8",
3232
"sorcery": "0.11.0"
3333
},
3434
"devDependencies": {

yarn.lock

+19-19
Original file line numberDiff line numberDiff line change
@@ -1032,10 +1032,10 @@
10321032
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.20.15.tgz#eec9f36d8eaf0948bb88c87a46784b5ee9fd0c89"
10331033
integrity sha512-DI4a1oZuf8wC+oAJA9RW6ga3Zbe8RZFt7kD9i4qAspz3I/yHet1VvC3DiSy/fsUvv5pvJuNPh0LPOdCcqinDPg==
10341034

1035-
"@babel/parser@^7.21.8":
1036-
version "7.21.8"
1037-
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.21.8.tgz#642af7d0333eab9c0ad70b14ac5e76dbde7bfdf8"
1038-
integrity sha512-6zavDGdzG3gUqAdWvlLFfk+36RilI+Pwyuuh7HItyeScCWP3k6i8vKclAQ0bM/0y/Kz/xiwvxhMv9MgTJP5gmA==
1035+
"@babel/parser@^7.21.9":
1036+
version "7.22.4"
1037+
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.22.4.tgz#a770e98fd785c231af9d93f6459d36770993fb32"
1038+
integrity sha512-VLLsx06XkEYqBtE5YGPwfSGwfrjnyPP5oiGty3S8pQLFDFLaS8VwWSIxkTXpcvr5zeYLE6+MBNl2npl/YnfofA==
10391039

10401040
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.18.6":
10411041
version "7.18.6"
@@ -6584,10 +6584,10 @@ [email protected]:
65846584
dependencies:
65856585
tslib "^2.0.1"
65866586

6587-
ast-types@0.15.2:
6588-
version "0.15.2"
6589-
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.15.2.tgz#39ae4809393c4b16df751ee563411423e85fb49d"
6590-
integrity sha512-c27loCv9QkZinsa5ProX751khO9DJl/AcB5c2KNtA6NRvHKS0PgLfcftz72KVq504vB0Gku5s2kUZzDBvQWvHg==
6587+
ast-types@^0.16.1:
6588+
version "0.16.1"
6589+
resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.16.1.tgz#7a9da1617c9081bc121faafe91711b4c8bb81da2"
6590+
integrity sha512-6t10qk83GOG8p0vKmaCr8eiilZwO171AvbROMtvvNiwrTly62t+7XkA8RdIIVbpMhCASAsxgAzdRSwh6nw/5Dg==
65916591
dependencies:
65926592
tslib "^2.0.1"
65936593

@@ -17998,14 +17998,14 @@ magic-string@^0.30.0:
1799817998
dependencies:
1799917999
"@jridgewell/sourcemap-codec" "^1.4.13"
1800018000

18001-
18002-
version "0.2.6"
18003-
resolved "https://registry.yarnpkg.com/magicast/-/magicast-0.2.6.tgz#08c9f1900177ca1896e9c07981912171d4ed8ec1"
18004-
integrity sha512-6bX0nVjGrA41o+qHSv9Duiv3VuF7jUyjT7dIb3E61YW/5mucvCBMgyZssUznRc+xlUMPYyXZZluZjE1k5z+2yQ==
18001+
18002+
version "0.2.8"
18003+
resolved "https://registry.yarnpkg.com/magicast/-/magicast-0.2.8.tgz#02b298c65fbc5b7d1fce52ef779c59caf68cc9cf"
18004+
integrity sha512-zEnqeb3E6TfMKYXGyHv3utbuHNixr04o3/gVGviSzVQkbFiU46VZUd+Ea/1npKfvEsEWxBYuIksKzoztTDPg0A==
1800518005
dependencies:
18006-
"@babel/parser" "^7.21.8"
18006+
"@babel/parser" "^7.21.9"
1800718007
"@babel/types" "^7.21.5"
18008-
recast "^0.22.0"
18008+
recast "^0.23.2"
1800918009

1801018010
[email protected], make-dir@^3.0.0, make-dir@^3.0.2, make-dir@^3.1.0, make-dir@~3.1.0:
1801118011
version "3.1.0"
@@ -22937,13 +22937,13 @@ recast@^0.20.5:
2293722937
source-map "~0.6.1"
2293822938
tslib "^2.0.1"
2293922939

22940-
recast@^0.22.0:
22941-
version "0.22.0"
22942-
resolved "https://registry.yarnpkg.com/recast/-/recast-0.22.0.tgz#1dd3bf1b86e5eb810b044221a1a734234ed3e9c0"
22943-
integrity sha512-5AAx+mujtXijsEavc5lWXBPQqrM4+Dl5qNH96N2aNeuJFUzpiiToKPsxQD/zAIJHspz7zz0maX0PCtCTFVlixQ==
22940+
recast@^0.23.2:
22941+
version "0.23.2"
22942+
resolved "https://registry.yarnpkg.com/recast/-/recast-0.23.2.tgz#d3dda3e8f0a3366860d7508c00e34a338ac52b41"
22943+
integrity sha512-Qv6cPfVZyMOtPszK6PgW70pUgm7gPlFitAPf0Q69rlOA0zLw2XdDcNmPbVGYicFGT9O8I7TZ/0ryJD+6COvIPw==
2294422944
dependencies:
2294522945
assert "^2.0.0"
22946-
ast-types "0.15.2"
22946+
ast-types "^0.16.1"
2294722947
esprima "~4.0.0"
2294822948
source-map "~0.6.1"
2294922949
tslib "^2.0.1"

0 commit comments

Comments
 (0)