@astrojs/starlight 0.5.3 → 0.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @astrojs/starlight
2
2
 
3
+ ## 0.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#360](https://github.com/withastro/starlight/pull/360) [`8415df6`](https://github.com/withastro/starlight/commit/8415df63e502d517b68d7665d9257726e3dde246) Thanks [@HiDeoo](https://github.com/HiDeoo)! - Fix build warnings when using the TypeScript [`verbatimModuleSyntax`](https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax) compiler option
8
+
3
9
  ## 0.5.3
4
10
 
5
11
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  import config from 'virtual:starlight/user-config';
3
- import { SidebarEntry, getPrevNextLinks } from '../utils/navigation';
3
+ import { type SidebarEntry, getPrevNextLinks } from '../utils/navigation';
4
4
  import type { StarlightDocsEntry } from '../utils/routing';
5
5
  import type { LocaleData } from '../utils/slugs';
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrojs/starlight",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "Build beautiful, high-performance documentation websites with Astro",
5
5
  "keywords": [
6
6
  "docs",
@@ -30,8 +30,8 @@
30
30
  "astro": "^2.5.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "^18.15.11",
34
- "astro": "2.7.0"
33
+ "@types/node": "^18.16.19",
34
+ "astro": "^2.8.5"
35
35
  },
36
36
  "dependencies": {
37
37
  "@astrojs/mdx": "^0.19.7",
package/utils/head.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { HeadConfig, HeadConfigSchema, HeadUserConfig } from '../schemas/head';
1
+ import { type HeadConfig, HeadConfigSchema, type HeadUserConfig } from '../schemas/head';
2
2
 
3
3
  const HeadSchema = HeadConfigSchema();
4
4
 
@@ -2,7 +2,7 @@ import { basename, dirname } from 'node:path';
2
2
  import config from 'virtual:starlight/user-config';
3
3
  import { pathWithBase } from './base';
4
4
  import { pickLang } from './i18n';
5
- import { Route, getLocaleRoutes, routes } from './routing';
5
+ import { type Route, getLocaleRoutes, routes } from './routing';
6
6
  import { localeToLang, slugToPathname } from './slugs';
7
7
  import type {
8
8
  AutoSidebarGroup,
package/utils/routing.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  import type { GetStaticPathsItem } from 'astro';
2
- import { CollectionEntry, getCollection } from 'astro:content';
2
+ import { type CollectionEntry, getCollection } from 'astro:content';
3
3
  import config from 'virtual:starlight/user-config';
4
4
  import {
5
- LocaleData,
5
+ type LocaleData,
6
6
  localizedId,
7
7
  localizedSlug,
8
8
  slugToLocaleData,
@@ -1,4 +1,4 @@
1
- import { CollectionEntry, getCollection } from 'astro:content';
1
+ import { type CollectionEntry, getCollection } from 'astro:content';
2
2
  import config from 'virtual:starlight/user-config';
3
3
  import builtinTranslations from '../translations';
4
4
  import { localeToLang } from './slugs';