You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Astro 5.x, some internals were exported from `astro:transitions` and `astro:transitions/client` that were not meant to be exposed for public use.
204
+
205
+
Astro 6.0 removes the following functions and types as exports from the `astro:transitions` and `astro:transitions/client` virtual modules. These can no longer be imported in your project files:
206
+
207
+
-`createAnimationScope()`
208
+
-`isTransitionBeforePreparationEvent()`
209
+
-`isTransitionBeforeSwapEvent()`
210
+
-`TRANSITION_BEFORE_PREPARATION`
211
+
-`TRANSITION_AFTER_PREPARATION`
212
+
-`TRANSITION_BEFORE_SWAP`
213
+
-`TRANSITION_AFTER_SWAP`
214
+
-`TRANSITION_PAGE_LOAD`
215
+
216
+
#### What should I do?
217
+
218
+
Remove any occurrences of `createAnimationScope()`:
<ReadMore>Learn more about all utilities available in the [View Transitions Router API Reference](/en/reference/modules/astro-transitions/).</ReadMore>
240
+
197
241
## Removed
198
242
199
243
The following features have now been entirely removed from the code base and can no longer be used. Some of these features may have continued to work in your project even after deprecation. Others may have silently had no effect.
Copy file name to clipboardExpand all lines: src/content/docs/en/reference/modules/astro-transitions.mdx
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -306,7 +306,7 @@ Replaces the old body with the new body. Then, goes through every element in the
306
306
307
307
### Deprecated imports
308
308
309
-
The following imports are scheduled for deprecation in v6. You can still use them in your project, but you may prefer to update your code now.
309
+
The following imports are deprecated in v6 and will be removed in v7. You can still use them in your project, but you may prefer to update your code now. [See how to upgrade](/en/guides/upgrade-to/v6/#deprecated-exposed-astrotransitions-internals).
310
310
311
311
<h4>`isTransitionBeforePreparationEvent()`</h4>
312
312
@@ -316,8 +316,8 @@ The following imports are scheduled for deprecation in v6. You can still use the
316
316
<Sincev="3.6.0" />
317
317
</p>
318
318
319
-
:::caution[Scheduled for deprecation]
320
-
This function is scheduled for deprecation in v6. You can still use it in your project, but you may prefer to update your code now.
319
+
:::caution[Deprecated]
320
+
This function is deprecated in v6 and will be removed in v7. You can still use it in your project, but you may prefer to update your code now.
321
321
:::
322
322
323
323
Determines whether the given value matches a [`TransitionBeforePreparationEvent`](#transitionbeforepreparationevent). This can be useful when you need to narrow the type of an event in an event listener.
@@ -349,8 +349,8 @@ Determines whether the given value matches a [`TransitionBeforePreparationEvent`
349
349
<Sincev="3.6.0" />
350
350
</p>
351
351
352
-
:::caution[Scheduled for deprecation]
353
-
This function is scheduled for deprecation in v6. You can still use it in your project, but you may prefer to update your code now.
352
+
:::caution[Deprecated]
353
+
This function is deprecated in v6 and will be removed in v7. You can still use it in your project, but you may prefer to update your code now.
354
354
:::
355
355
356
356
Determines whether the given value matches a [`TransitionBeforeSwapEvent`](#transitionbeforeswapevent). This can be useful when you need to narrow the type of an event in an event listener.
@@ -382,8 +382,8 @@ Determines whether the given value matches a [`TransitionBeforeSwapEvent`](#tran
382
382
<Sincev="3.6.0" />
383
383
</p>
384
384
385
-
:::caution[Scheduled for deprecation]
386
-
This constant is scheduled for deprecation in v6. You can still use it in your project, but you may prefer to update your code now.
385
+
:::caution[Deprecated]
386
+
This constant is deprecated in v6 and will be removed in v7. You can still use it in your project, but you may prefer to update your code now.
387
387
:::
388
388
389
389
A constant to avoid writing the `astro:before-preparation` event name in plain text when you define an event.
@@ -409,8 +409,8 @@ A constant to avoid writing the `astro:before-preparation` event name in plain t
409
409
<Sincev="3.6.0" />
410
410
</p>
411
411
412
-
:::caution[Scheduled for deprecation]
413
-
This constant is scheduled for deprecation in v6. You can still use it in your project, but you may prefer to update your code now.
412
+
:::caution[Deprecated]
413
+
This constant is deprecated in v6 and will be removed in v7. You can still use it in your project, but you may prefer to update your code now.
414
414
:::
415
415
416
416
A constant to avoid writing the `astro:after-preparation` event name in plain text when you define an event.
@@ -436,8 +436,8 @@ A constant to avoid writing the `astro:after-preparation` event name in plain te
436
436
<Sincev="3.6.0" />
437
437
</p>
438
438
439
-
:::caution[Scheduled for deprecation]
440
-
This constant is scheduled for deprecation in v6. You can still use it in your project, but you may prefer to update your code now.
439
+
:::caution[Deprecated]
440
+
This constant is deprecated in v6 and will be removed in v7. You can still use it in your project, but you may prefer to update your code now.
441
441
:::
442
442
443
443
A constant to avoid writing the `astro:before-swap` event name in plain text when you define an event.
@@ -463,8 +463,8 @@ A constant to avoid writing the `astro:before-swap` event name in plain text whe
463
463
<Sincev="3.6.0" />
464
464
</p>
465
465
466
-
:::caution[Scheduled for deprecation]
467
-
This constant is scheduled for deprecation in v6. You can still use it in your project, but you may prefer to update your code now.
466
+
:::caution[Deprecated]
467
+
This constant is deprecated in v6 and will be removed in v7. You can still use it in your project, but you may prefer to update your code now.
468
468
:::
469
469
470
470
A constant to avoid writing the `astro:after-swap` event name in plain text when you define an event.
@@ -490,8 +490,8 @@ A constant to avoid writing the `astro:after-swap` event name in plain text when
490
490
<Sincev="3.6.0" />
491
491
</p>
492
492
493
-
:::caution[Scheduled for deprecation]
494
-
This constant is scheduled for deprecation in v6. You can still use it in your project, but you may prefer to update your code now.
493
+
:::caution[Deprecated]
494
+
This constant is deprecated in v6 and will be removed in v7. You can still use it in your project, but you may prefer to update your code now.
495
495
:::
496
496
497
497
A constant to avoid writing the `astro:page-load` event name in plain text when you define an event.
0 commit comments