Skip to content

Commit 508f6ad

Browse files
committed
Changelog updates
1 parent 16ae506 commit 508f6ad

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.changeset/green-mails-report.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
```

0 commit comments

Comments
 (0)