diff options
author | 2024-08-20 07:45:59 +0100 | |
---|---|---|
committer | 2024-08-20 07:45:59 +0100 | |
commit | 86a33915ff41b23ff6b35bcfb1805fefc0760ca7 (patch) | |
tree | 2f8d96a60cf821714b6c3cdb09e999a349ce6d68 | |
parent | fc81b01bcdd43646bcc615b16bf0400a646445c8 (diff) | |
download | astro-86a33915ff41b23ff6b35bcfb1805fefc0760ca7.tar.gz astro-86a33915ff41b23ff6b35bcfb1805fefc0760ca7.tar.zst astro-86a33915ff41b23ff6b35bcfb1805fefc0760ca7.zip |
fix: adapter features messaging (#11773)
* fix: adapter features messaging
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* Update .changeset/long-months-burn.md
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Yan <61414485+yanthomasdev@users.noreply.github.com>
-rw-r--r-- | .changeset/long-months-burn.md | 5 | ||||
-rw-r--r-- | packages/astro/src/integrations/features-validation.ts | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/.changeset/long-months-burn.md b/.changeset/long-months-burn.md new file mode 100644 index 000000000..4b11c58a1 --- /dev/null +++ b/.changeset/long-months-burn.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Changes messages logged when using unsupported, deprecated, or experimental adapter features for clarity diff --git a/packages/astro/src/integrations/features-validation.ts b/packages/astro/src/integrations/features-validation.ts index 87de3592b..bd08a876d 100644 --- a/packages/astro/src/integrations/features-validation.ts +++ b/packages/astro/src/integrations/features-validation.ts @@ -124,20 +124,20 @@ function validateSupportKind( } function featureIsUnsupported(adapterName: string, logger: Logger, featureName: string) { - logger.error('config', `The feature "${featureName}" is not supported (used by ${adapterName}).`); + logger.error('config', `The adapter ${adapterName} doesn't currently support the feature "${featureName}".`); } function featureIsExperimental(adapterName: string, logger: Logger, featureName: string) { logger.warn( 'config', - `The feature "${featureName}" is experimental and subject to change (used by ${adapterName}).`, + `The adapter ${adapterName} provides experimental support for "${featureName}". You may experience issues or breaking changes until this feature is fully supported by the adapter.`, ); } function featureIsDeprecated(adapterName: string, logger: Logger, featureName: string) { logger.warn( 'config', - `The feature "${featureName}" is deprecated and will be removed in the future (used by ${adapterName}).`, + `The adapter ${adapterName} has deprecated its support for "${featureName}", and future compatibility is not guaranteed. The adapter may completely remove support for this feature without warning.`, ); } |