Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BREAKING(media-types): rename extensionsByType to allExtensions #5106

Merged

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Jun 21, 2024

This PR renames extensionsByType to allExtensions to align the naming convention to extension which takes the same arguments.

What's changed

extensionsByType has been renamed to allExtensions

Motivation

extension and extensionsByType take the same arguments (the content type), but named in an inconsistent way. This change align the naming of the latter to the former.

Migration

-import { extensionsByType } from "@std/media-types";
+import { allExtensions } from "@std/media-types";

@kt3k kt3k merged commit cf2aeeb into denoland:main Jun 21, 2024
13 checks passed
@kt3k kt3k deleted the breaking-rename-extensions-by-type-all-extensions branch June 21, 2024 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants