@lunariajs/core
Advanced tools
Comparing version 0.0.25 to 0.0.26
# @lunariajs/core | ||
## 0.0.26 | ||
### Patch Changes | ||
- 8c09b43: Change `cloneDir` default | ||
- c462f75: Improve renderer components types | ||
- 9c325ae: Add lunaria sync command | ||
- b804110: Improve types and status signature | ||
- ff3be57: Simplify component system and dashboard generation | ||
- 7838358: Update tracker directive names | ||
- cbdb059: Improve generated `gitHostingLinks.history()` | ||
## 0.0.25 | ||
@@ -4,0 +16,0 @@ |
@@ -213,43 +213,6 @@ { | ||
"hosting": { | ||
"anyOf": [ | ||
{ | ||
"type": "string", | ||
"enum": [ | ||
"github", | ||
"gitlab" | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"create": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"source": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"history": { | ||
"type": [ | ||
"string", | ||
"null" | ||
] | ||
}, | ||
"clone": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"create", | ||
"source", | ||
"history", | ||
"clone" | ||
], | ||
"additionalProperties": false | ||
} | ||
"type": "string", | ||
"enum": [ | ||
"github", | ||
"gitlab" | ||
], | ||
@@ -309,46 +272,69 @@ "default": "github", | ||
"items": { | ||
"type": "object", | ||
"properties": { | ||
"location": { | ||
"type": "string", | ||
"description": "The glob pattern of where your content including the file type(s) is, e.g. `\"src/content/docs/**/*.mdx\"`" | ||
}, | ||
"ignore": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
"anyOf": [ | ||
{ | ||
"type": "object", | ||
"properties": { | ||
"location": { | ||
"type": "string", | ||
"description": "The glob pattern of where your content including the file type(s) is, e.g. `\"src/content/docs/**/*.mdx\"`" | ||
}, | ||
"ignore": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"default": [], | ||
"description": "Array of glob patterns to be ignored from matching" | ||
}, | ||
"pattern": { | ||
"type": "string", | ||
"description": "A path-to-regexp-like pattern describing your content paths" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"const": "universal" | ||
} | ||
}, | ||
"default": [], | ||
"description": "Array of glob patterns to be ignored from matching" | ||
}, | ||
"pattern": { | ||
"type": "string", | ||
"description": "A path-to-regexp-like pattern describing your content paths" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"enum": [ | ||
"universal", | ||
"dictionary" | ||
"required": [ | ||
"location", | ||
"pattern", | ||
"type" | ||
], | ||
"default": "universal", | ||
"description": "The desired type of tracking for this content" | ||
"additionalProperties": false | ||
}, | ||
"optionalKeys": { | ||
{ | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
"properties": { | ||
"location": { | ||
"$ref": "#/definitions/LunariaConfigSchema/properties/files/items/anyOf/0/properties/location" | ||
}, | ||
"minItems": 1 | ||
"ignore": { | ||
"$ref": "#/definitions/LunariaConfigSchema/properties/files/items/anyOf/0/properties/ignore" | ||
}, | ||
"pattern": { | ||
"$ref": "#/definitions/LunariaConfigSchema/properties/files/items/anyOf/0/properties/pattern" | ||
}, | ||
"type": { | ||
"type": "string", | ||
"const": "dictionary" | ||
}, | ||
"optionalKeys": { | ||
"type": "object", | ||
"additionalProperties": { | ||
"type": "array", | ||
"items": { | ||
"type": "string" | ||
} | ||
}, | ||
"description": "Record of dictionary shared paths whose values are an array of dictionary keys to be marked as optional" | ||
} | ||
}, | ||
"description": "Record of dictionary shared paths whose values are an array of dictionary keys to be marked as optional" | ||
"required": [ | ||
"location", | ||
"pattern", | ||
"type" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"required": [ | ||
"location", | ||
"pattern" | ||
], | ||
"additionalProperties": false | ||
] | ||
}, | ||
@@ -380,3 +366,3 @@ "minItems": 1, | ||
"type": "string", | ||
"default": "./dist/lunaria/history", | ||
"default": "./node_modules/.cache/lunaria/history", | ||
"description": "The relative directory path of your git history clone, exclusively made when running on a shallow repository, e.g. `\"./dist/lunaria/history\"`" | ||
@@ -383,0 +369,0 @@ }, |
@@ -1,26 +0,22 @@ | ||
import { TemplateResult } from 'lit'; | ||
import { j as LunariaConfig, k as LunariaRendererConfig, a as LocalizationStatus, m as Dashboard, i as Locale, d as FileStatus, S as Status } from '../shared/core.4f02877d.js'; | ||
import { L as LunariaConfig, a as LunariaRendererConfig, b as LocalizationStatus, D as Dashboard, c as Locale, S as Status } from '../shared/core.814dd2f1.js'; | ||
import 'zod'; | ||
import 'path-to-regexp'; | ||
declare const Page: (config: LunariaConfig, rendererConfig: LunariaRendererConfig | undefined, status: LocalizationStatus[]) => TemplateResult; | ||
declare const Meta: (dashboard: Dashboard) => TemplateResult; | ||
declare const Favicon: (dashboard: Dashboard) => TemplateResult; | ||
declare const Body: (config: LunariaConfig, rendererConfig: LunariaRendererConfig | undefined, status: LocalizationStatus[]) => TemplateResult; | ||
declare const StatusByLocale: (config: LunariaConfig, status: LocalizationStatus[]) => TemplateResult; | ||
declare const LocaleDetails: (status: LocalizationStatus[], dashboard: Dashboard, locale: Locale) => TemplateResult; | ||
declare const OutdatedFiles: (outdatedFiles: LocalizationStatus[], lang: string, dashboard: Dashboard) => TemplateResult; | ||
declare const StatusByFile: (config: LunariaConfig, status: LocalizationStatus[]) => TemplateResult; | ||
declare const TableBody: (status: LocalizationStatus[], locales: Locale[], dashboard: Dashboard) => TemplateResult; | ||
declare const TableContentStatus: (localizations: { | ||
[locale: string]: FileStatus; | ||
}, lang: string, dashboard: Dashboard) => TemplateResult; | ||
declare const ContentDetailsLinks: (fileStatus: LocalizationStatus, lang: string, dashboard: Dashboard) => TemplateResult; | ||
declare const EmojiFileLink: (ui: Dashboard['ui'], href: string | null, type: Status) => TemplateResult; | ||
declare const Link: (href: string, text: string) => TemplateResult; | ||
declare const CreateFileLink: (href: string, text: string) => TemplateResult; | ||
declare const Page: (config: LunariaConfig, rendererConfig: LunariaRendererConfig | undefined, status: LocalizationStatus[]) => string; | ||
declare const Meta: (dashboard: Dashboard) => string; | ||
declare const Favicon: (dashboard: Dashboard) => string; | ||
declare const Body: (config: LunariaConfig, rendererConfig: LunariaRendererConfig | undefined, status: LocalizationStatus[]) => string; | ||
declare const StatusByLocale: (config: LunariaConfig, status: LocalizationStatus[]) => string; | ||
declare const LocaleDetails: (status: LocalizationStatus[], dashboard: Dashboard, locale: Locale) => string; | ||
declare const OutdatedFiles: (outdatedFiles: LocalizationStatus[], lang: string, dashboard: Dashboard) => string; | ||
declare const StatusByFile: (config: LunariaConfig, status: LocalizationStatus[]) => string; | ||
declare const TableBody: (status: LocalizationStatus[], locales: Locale[], dashboard: Dashboard) => string; | ||
declare const TableContentStatus: (localizations: LocalizationStatus['localizations'], lang: string, dashboard: Dashboard) => string; | ||
declare const ContentDetailsLinks: (fileStatus: LocalizationStatus, lang: string, dashboard: Dashboard) => string; | ||
declare const EmojiFileLink: (ui: Dashboard['ui'], href: string | null, type: Status) => string; | ||
declare const Link: (href: string, text: string) => string; | ||
declare const CreateFileLink: (href: string, text: string) => string; | ||
declare const ProgressBar: (total: number, outdated: number, missing: number, { size }?: { | ||
size?: number | undefined; | ||
}) => TemplateResult; | ||
}) => string; | ||
export { Body, ContentDetailsLinks, CreateFileLink, EmojiFileLink, Favicon, Link, LocaleDetails, Meta, OutdatedFiles, Page, ProgressBar, StatusByFile, StatusByLocale, TableBody, TableContentStatus }; |
@@ -1,10 +0,9 @@ | ||
import { D as Dictionary, L as LunariaUserConfig, a as LocalizationStatus, b as LunariaUserRendererConfig } from './shared/core.4f02877d.js'; | ||
export { A as AugmentedFileData, C as ContentIndex, e as CustomComponent, f as CustomStatusComponent, m as Dashboard, l as DashboardSchema, c as FileData, F as FileMeta, d as FileStatus, G as GitHostingURL, I as IndexData, i as Locale, j as LunariaConfig, g as LunariaConfigSchema, k as LunariaRendererConfig, h as LunariaRendererConfigSchema, O as OptionalKeys, R as RegExpGroups, S as Status } from './shared/core.4f02877d.js'; | ||
export { nothing } from 'lit'; | ||
export { html, svg, unsafeStatic } from 'lit/static-html.js'; | ||
import { d as Dictionary, e as LunariaUserConfig, b as LocalizationStatus, f as LunariaUserRendererConfig } from './shared/core.814dd2f1.js'; | ||
export { D as Dashboard, q as DashboardSchema, p as File, F as FileData, h as FileIndex, G as GitHistory, g as GitHosting, I as IndexEntry, c as Locale, l as LocalizationFileData, k as LocalizationFileMeta, L as LunariaConfig, m as LunariaConfigSchema, a as LunariaRendererConfig, n as LunariaRendererConfigSchema, o as OptionalKeys, O as OptionalKeysSchema, R as RegExpGroups, j as SourceFileData, i as SourceFileMeta, S as Status } from './shared/core.814dd2f1.js'; | ||
import { z } from 'zod'; | ||
import 'path-to-regexp'; | ||
declare const DictionaryContentSchema: z.ZodType<Dictionary>; | ||
declare function html(strings: TemplateStringsArray, ...values: (string | string[])[]): string; | ||
/** | ||
@@ -19,2 +18,2 @@ * Returns Lunaria's localization status for your project according to the specified configuration. | ||
export { Dictionary, DictionaryContentSchema, LocalizationStatus, LunariaUserConfig, LunariaUserRendererConfig, defineRendererConfig, lunaria }; | ||
export { Dictionary, DictionaryContentSchema, LocalizationStatus, LunariaUserConfig, LunariaUserRendererConfig, defineRendererConfig, html, lunaria }; |
{ | ||
"name": "@lunariajs/core", | ||
"type": "module", | ||
"version": "0.0.25", | ||
"version": "0.0.26", | ||
"description": "Localization management system for open-source projects", | ||
@@ -51,12 +51,8 @@ "types": "./dist/index.d.ts", | ||
"dependencies": { | ||
"@lit-labs/ssr": "^3.2.0", | ||
"@clack/core": "^0.3.3", | ||
"fast-glob": "^3.3.1", | ||
"jiti": "^1.21.0", | ||
"lit": "^3.1.0", | ||
"micromatch": "^4.0.5", | ||
"path-to-regexp": "^6.2.1", | ||
"picocolors": "^1.0.0", | ||
"redent": "^4.0.0", | ||
"rehype": "^13.0.1", | ||
"rehype-format": "^5.0.0", | ||
"simple-git": "^3.20.0", | ||
@@ -63,0 +59,0 @@ "ufo": "^1.3.1", |
@@ -38,3 +38,4 @@ # `@lunariajs/core` | ||
"location": "content/**/*.md", | ||
"pattern": "content/@lang/@path" | ||
"pattern": "content/@lang/@path", | ||
"type": "universal" | ||
} | ||
@@ -41,0 +42,0 @@ ], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
11
22
71
157076
1967
+ Added@clack/core@^0.3.3
+ Added@clack/core@0.3.5(transitive)
+ Addedsisteransi@1.0.5(transitive)
- Removed@lit-labs/ssr@^3.2.0
- Removedlit@^3.1.0
- Removedredent@^4.0.0
- Removedrehype@^13.0.1
- Removedrehype-format@^5.0.0
- Removed@lit-labs/ssr@3.3.1(transitive)
- Removed@lit-labs/ssr-client@1.1.7(transitive)
- Removed@lit-labs/ssr-dom-shim@1.3.0(transitive)
- Removed@lit/reactive-element@2.0.4(transitive)
- Removed@parse5/tools@0.3.0(transitive)
- Removed@types/hast@3.0.4(transitive)
- Removed@types/mdast@4.0.4(transitive)
- Removed@types/node@16.18.126(transitive)
- Removed@types/trusted-types@2.0.7(transitive)
- Removed@types/unist@3.0.3(transitive)
- Removed@ungap/structured-clone@1.3.0(transitive)
- Removedbail@2.0.2(transitive)
- Removedccount@2.0.1(transitive)
- Removedcharacter-entities-html4@2.1.0(transitive)
- Removedcharacter-entities-legacy@3.0.0(transitive)
- Removedcomma-separated-tokens@2.0.3(transitive)
- Removeddata-uri-to-buffer@4.0.1(transitive)
- Removeddequal@2.0.3(transitive)
- Removeddevlop@1.1.0(transitive)
- Removedenhanced-resolve@5.18.1(transitive)
- Removedentities@4.5.0(transitive)
- Removedextend@3.0.2(transitive)
- Removedfetch-blob@3.2.0(transitive)
- Removedformdata-polyfill@4.0.10(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removedhast-util-embedded@3.0.0(transitive)
- Removedhast-util-format@1.1.0(transitive)
- Removedhast-util-from-html@2.0.3(transitive)
- Removedhast-util-from-parse5@8.0.3(transitive)
- Removedhast-util-has-property@3.0.0(transitive)
- Removedhast-util-is-body-ok-link@3.0.1(transitive)
- Removedhast-util-is-element@3.0.0(transitive)
- Removedhast-util-minify-whitespace@1.0.1(transitive)
- Removedhast-util-parse-selector@4.0.0(transitive)
- Removedhast-util-phrasing@3.0.1(transitive)
- Removedhast-util-to-html@9.0.5(transitive)
- Removedhast-util-whitespace@3.0.0(transitive)
- Removedhastscript@9.0.1(transitive)
- Removedhtml-void-elements@3.0.0(transitive)
- Removedhtml-whitespace-sensitive-tag-names@3.0.1(transitive)
- Removedindent-string@5.0.0(transitive)
- Removedis-plain-obj@4.1.0(transitive)
- Removedlit@3.2.1(transitive)
- Removedlit-element@4.1.1(transitive)
- Removedlit-html@3.2.1(transitive)
- Removedmdast-util-to-hast@13.2.0(transitive)
- Removedmicromark-util-character@2.1.1(transitive)
- Removedmicromark-util-encode@2.0.1(transitive)
- Removedmicromark-util-sanitize-uri@2.0.1(transitive)
- Removedmicromark-util-symbol@2.0.1(transitive)
- Removedmicromark-util-types@2.0.2(transitive)
- Removedmin-indent@1.0.1(transitive)
- Removednode-domexception@1.0.0(transitive)
- Removednode-fetch@3.3.2(transitive)
- Removedparse5@7.2.1(transitive)
- Removedproperty-information@7.0.0(transitive)
- Removedredent@4.0.0(transitive)
- Removedrehype@13.0.2(transitive)
- Removedrehype-format@5.0.1(transitive)
- Removedrehype-parse@9.0.1(transitive)
- Removedrehype-stringify@10.0.1(transitive)
- Removedspace-separated-tokens@2.0.2(transitive)
- Removedstringify-entities@4.0.4(transitive)
- Removedstrip-indent@4.0.0(transitive)
- Removedtapable@2.2.1(transitive)
- Removedtrim-lines@3.0.1(transitive)
- Removedtrough@2.2.0(transitive)
- Removedunified@11.0.5(transitive)
- Removedunist-util-is@6.0.0(transitive)
- Removedunist-util-position@5.0.0(transitive)
- Removedunist-util-stringify-position@4.0.0(transitive)
- Removedunist-util-visit@5.0.0(transitive)
- Removedunist-util-visit-parents@6.0.1(transitive)
- Removedvfile@6.0.3(transitive)
- Removedvfile-location@5.0.3(transitive)
- Removedvfile-message@4.0.2(transitive)
- Removedweb-namespaces@2.0.1(transitive)
- Removedweb-streams-polyfill@3.3.3(transitive)
- Removedzwitch@2.0.4(transitive)