Skip to content

Commit d63c54d

Browse files
feat: remove deprecated experimental errors
1 parent 049da87 commit d63c54d

File tree

1 file changed

+2
-49
lines changed

1 file changed

+2
-49
lines changed

packages/astro/src/core/errors/errors-data.ts

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,8 @@ export const CspNotEnabled = {
14271427
export const UnavailableAstroGlobal = {
14281428
name: 'UnavailableAstroGlobal',
14291429
title: 'Unavailable Astro global in getStaticPaths()',
1430-
message: (name: string) => `The Astro global is not available in this scope. Please remove "Astro.${name}" from your getStaticPaths() function.`,
1430+
message: (name: string) =>
1431+
`The Astro global is not available in this scope. Please remove "Astro.${name}" from your getStaticPaths() function.`,
14311432
} satisfies ErrorData;
14321433

14331434
/**
@@ -2087,54 +2088,6 @@ export const SessionStorageSaveError = {
20872088
hint: 'For more information, see https://docs.astro.build/en/guides/sessions/',
20882089
} satisfies ErrorData;
20892090

2090-
/**
2091-
* @docs
2092-
* @see
2093-
* - [Sessions](https://docs.astro.build/en/guides/sessions/)
2094-
* @deprecated This error was removed in Astro 5.7, when the Sessions feature stopped being experimental.
2095-
* @description
2096-
* Your adapter must support server output to use sessions.
2097-
*/
2098-
export const SessionWithoutSupportedAdapterOutputError = {
2099-
name: 'SessionWithoutSupportedAdapterOutputError',
2100-
title: "Sessions cannot be used with an adapter that doesn't support server output.",
2101-
message:
2102-
'Sessions require an adapter that supports server output. The adapter must set `"server"` in the `buildOutput` adapter feature.',
2103-
hint: 'Ensure your adapter supports `buildOutput: "server"`: https://docs.astro.build/en/reference/adapter-reference/#building-an-adapter',
2104-
} satisfies ErrorData;
2105-
/**
2106-
* @docs
2107-
* @message The `experimental.session` flag was set to `true`, but no storage was configured. Either configure the storage manually or use an adapter that provides session storage.
2108-
* @deprecated This error was removed in Astro 5.7, when the Sessions feature stopped being experimental.
2109-
* @see
2110-
* - [Sessions](https://docs.astro.build/en/guides/sessions/)
2111-
* @description
2112-
* Thrown when session storage is enabled but not configured.
2113-
*/
2114-
export const SessionConfigMissingError = {
2115-
name: 'SessionConfigMissingError',
2116-
title: 'Session storage was enabled but not configured.',
2117-
message:
2118-
'The `experimental.session` flag was set to `true`, but no storage was configured. Either configure the storage manually or use an adapter that provides session storage',
2119-
hint: 'For more information, see https://docs.astro.build/en/guides/sessions/',
2120-
} satisfies ErrorData;
2121-
2122-
/**
2123-
* @docs
2124-
* @message Session config was provided without enabling the `experimental.session` flag
2125-
* @deprecated This error was removed in Astro 5.7, when the Sessions feature stopped being experimental.
2126-
* @see
2127-
* - [Sessions](https://docs.astro.build/en/guides/sessions/)
2128-
* @description
2129-
* Thrown when session storage is configured but the `experimental.session` flag is not enabled.
2130-
*/
2131-
export const SessionConfigWithoutFlagError = {
2132-
name: 'SessionConfigWithoutFlagError',
2133-
title: 'Session flag not set',
2134-
message: 'Session config was provided without enabling the `experimental.session` flag',
2135-
hint: 'For more information, see https://docs.astro.build/en/guides/sessions/',
2136-
} satisfies ErrorData;
2137-
21382091
/*
21392092
* Adding an error? Follow these steps:
21402093
* 1. Determine in which category it belongs (Astro, Vite, CSS, Content Collections etc.)

0 commit comments

Comments
 (0)