From bcee114c1c7849836767bccfaf95392da9cb053a Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Wed, 28 Aug 2024 15:04:58 +0100 Subject: [PATCH] changes to changeset from review --- .changeset/chilled-timers-shave.md | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.changeset/chilled-timers-shave.md b/.changeset/chilled-timers-shave.md index a3f9f248a772..1866eab85bfb 100644 --- a/.changeset/chilled-timers-shave.md +++ b/.changeset/chilled-timers-shave.md @@ -8,28 +8,19 @@ Passes `AstroConfig` instead of `AstroSettings` object to content layer loaders. This will not affect you unless you have created a loader that uses the `settings` object. If you have, you will need to update your loader to use the `config` object instead. -```js -// Before +```diff export default function myLoader() { return { name: 'my-loader' - async load({ settings }) { - const base = settings.config.base; +- async load({ settings }) { +- const base = settings.config.base; ++ async load({ config }) { ++ const base = config.base; // ... } } } -// After -export default function myLoader() { - return { - name: 'my-loader' - async load({ config }) { - const base = config.base; - // ... - } - } -} ``` Other properties of the settings object are private internals, and should not be accessed directly. If you think you need access to other properties, please open an issue to discuss your use case.