Skip to content

Commit

Permalink
fix(assets): export again asset utilities (#13336)
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico authored Feb 28, 2025
1 parent 74ea511 commit 8f632ef
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/seven-coats-wink.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fixes a regression where some asset utilities were move across monorepo, and not re-exported anymore.
9 changes: 9 additions & 0 deletions packages/astro/src/assets/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,12 @@ export { getOrigQueryParams } from './queryParams.js';
export { hashTransform, propsToFilename } from './transformToPath.js';
export { inferRemoteSize } from './remoteProbe.js';
export { makeSvgComponent } from './svg.js';
export {
isRemoteAllowed,
matchHostname,
matchPathname,
matchPattern,
matchPort,
matchProtocol,
type RemotePattern,
} from './remotePattern.js';
13 changes: 13 additions & 0 deletions packages/astro/src/assets/utils/remotePattern.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {
isRemoteAllowed,
matchHostname,
matchPort,
matchPathname,
matchProtocol,
type RemotePattern,
matchPattern,
} from '@astrojs/internal-helpers/remote';

export { isRemoteAllowed, matchHostname, matchPort, matchPathname, matchProtocol, matchPattern };

export type { RemotePattern };

0 comments on commit 8f632ef

Please sign in to comment.