Releases: astrolicious/astro-theme-provider
astro-theme-provider@0.7.0
Minor Changes
- e169ab8: Re-release 0.6.2 as a minor due to compatibility issues with Astro 4.0
astro-theme-provider@0.6.2
Patch Changes
-
52e2a61: Upgrade to Astro 5.0
- Fix automatic resolution of theme entrypoint
astro-theme-provider@0.6.1
Patch Changes
- cb2bbd3: Fix error for theme's that do not have a
public
directory
astro-theme-provider@0.6.0
Minor Changes
-
0d49101: Fixed circular import case when overriding components, for example:
// src/CustomButton.astro --- import { Button } from 'my-theme:components'; --- <Button> I am custon text </Button>
import { defineConfig } from "astro/config"; import myTheme from "my-theme"; export default defineConfig({ integrations: [ myTheme({ overrides: { components: { Button: "./src/CustomButton.astro", }, }, }), ], });
-
0d49101: Simplified generated types and removed extra types that are not being used internally.
-
8ecb96d: Change type for theme integrations from
AstroDbIntegration
toAstroIntegration
-
f604446: Added the ability for theme authors to toggle the public directory off:
defineTheme({ name: "my-theme", publicDir: false, });
astro-theme-provider@0.5.0
Minor Changes
-
5188e12: Added a user facing API for disabling integrations injected by a theme
import { defineConfig } from "astro/config"; import myTheme from "my-theme"; export default defineConfig({ integrations: [ myTheme({ integrations: { "@astrojs/sitemap": false, }, }), ], });
-
5188e12: Updated the type of the user config to
z.input
instead ofz.infer
for proper typing -
cfcdca1: Added a utility to query the final path of a page:
--- import { pages } from 'my-theme:context' --- { pages.has('/blog') && <a href={pages.get('/blog')}>Blog</a> }
-
5188e12: Added a built in virtual module for theme utilities
<name>:context
.This name is now reserved, authors can no longer create custom virtual modules with this name, example:
defineTheme({ imports: { - context: { + options: { // ... } } })
-
5188e12: Added a utility to query what integrations are inside the project:
--- import { integrations } from 'my-theme:context' if (integrations.has('@inox-tools/sitemap-ext')) { import('sitemap-ext:config').then((sitemap) => { sitemap.default(true) }) } ---
astro-theme-provider@0.4.0
astro-theme-provider@0.2.0
Minor Changes
-
1a40dfd: Fixed typing for theme integrations,
name
property is now required again -
9655a45: Added a
log
option for theme authorsfalse
: No logging"minimal" | true
: Default logging, includes warnings"verbose"
: Log everything, including debug information like page injection and static asset handling
Fixed warnings for a missing README throwing errors if README did not exist
-
ca1f3b3: Updated root directory for glob modules, glob patterns are now relative to a theme's
srcDir
imports: { - css: '**.css' + css: 'css/**.css' }
-
12b5819: Moved the default location of the public dir to the root of a theme
package/ + ├── public ├── src/ - │ ├── public │ └── ... └── ...
Patch Changes
- b503fed: Upgrade to
astro-integration-kit
0.11.0, package HMR is now only applied inside the playground