summaryrefslogtreecommitdiff
path: root/.changeset/long-months-rule.md
diff options
context:
space:
mode:
Diffstat (limited to '.changeset/long-months-rule.md')
-rw-r--r--.changeset/long-months-rule.md19
1 files changed, 0 insertions, 19 deletions
diff --git a/.changeset/long-months-rule.md b/.changeset/long-months-rule.md
deleted file mode 100644
index 2e44f0793..000000000
--- a/.changeset/long-months-rule.md
+++ /dev/null
@@ -1,19 +0,0 @@
----
-'astro': major
----
-
-Deprecate Astro.glob
-
-The `Astro.glob` function has been deprecated in favor of Content Collections and `import.meta.glob`.
-
-- If you want to query for markdown and MDX in your project, use Content Collections.
-- If you want to query source files in your project, use `import.meta.glob`(https://vitejs.dev/guide/features.html#glob-import).
-
-Also consider using glob packages from npm, like [fast-glob](https://www.npmjs.com/package/fast-glob), especially if statically generating your site, as it is faster for most use-cases.
-
-The easiest path is to migrate to `import.meta.glob` like so:
-
-```diff
-- const posts = Astro.glob('./posts/*.md');
-+ const posts = Object.values(import.meta.glob('./posts/*.md', { eager: true }));
-```