File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " astro-turnstile " : minor
3
+ ---
4
+
5
+ Refactored component imports for TurnstileWidget and TurnstileForm:
6
+ BREAKING: Direct package imports from 'astro-turnstile/components/TurnstileWidget' and 'astro-turnstile/components/TurnstileForm'.
7
+
8
+ ``` ts
9
+ // Previously
10
+ import {TurnstileForm } from ' astro-turnstile/components' ;
11
+ import {TurnstileWidget } from ' astro-turnstile/components' ;
12
+
13
+ // Virtual modules Before
14
+ import {TurnstileForm } from ' astro-turnstile:components' ;
15
+ import {TurnstileWidget } from ' astro-turnstile:components' ;
16
+
17
+ // Now
18
+ import TurnstileForm from ' astro-turnstile/components/TurnstileForm' ;
19
+ import TurnstileWidget from ' astro-turnstile/components/TurnstileWidget' ;
20
+
21
+ // Virtual modules now
22
+ import TurnstileForm from ' astro-turnstile:components/TurnstileForm' ;
23
+ import TurnstileWidget from ' astro-turnstile:components/TurnstileWidget' ;
24
+ ```
You can’t perform that action at this time.
0 commit comments