diff --git a/.ci/lint-commit-message.ts b/.ci/lint-commit-message.ts index 81da987a7e..1aeaaad944 100644 --- a/.ci/lint-commit-message.ts +++ b/.ci/lint-commit-message.ts @@ -35,7 +35,7 @@ if (!commitTitle) { if (!commitTitle.startsWith('[') || !commitTitle.includes(']')) { outputError( - `Should be in format "[scope] change description"${pc.gray( + `Should be in format "[scope] change description" or "[xxxxxxxxx][scope] change description"${pc.gray( ', e.g. "[button] added blockchain support"]', )}`, ); @@ -45,8 +45,25 @@ if (!commitTitle.includes('] ')) { outputError(`Missing in "] " in message of format "[scope${pc.red('] ')}change description" `); } -const scope = commitTitle.substring(1, commitTitle.indexOf('] ')); -const description = commitTitle.substring(commitTitle.indexOf('] ') + 3); +let taskId: null | string = null; +let scope: null | string = null; +let description: null | string = null; + +if (commitTitle.includes('][')) { + taskId = commitTitle.substring(1, commitTitle.indexOf('][')); + scope = commitTitle.substring( + commitTitle.indexOf('][') + 2, + commitTitle.indexOf('] ', commitTitle.indexOf('][')), + ); + description = commitTitle.substring(commitTitle.indexOf('] ', commitTitle.indexOf('][')) + 2); +} else { + scope = commitTitle.substring(1, commitTitle.indexOf('] ')); + description = commitTitle.substring(commitTitle.indexOf('] ') + 3); +} + +if (taskId && taskId.length !== 9) { + outputError(`Got task id "${taskId}" in message while it's expected to be 9 characters long`); +} if (!scope) { outputError('Got empty scope in message of format "[scope] change description"'); diff --git a/semcore/d3-chart/CHANGELOG.md b/semcore/d3-chart/CHANGELOG.md index f91304bee0..2eba2c70c7 100644 --- a/semcore/d3-chart/CHANGELOG.md +++ b/semcore/d3-chart/CHANGELOG.md @@ -2,6 +2,12 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/). +## [3.40.1] - 2024-05-14 + +### Fixed + +- Exporting from `@semcore/ui` package. + ## [3.40.0] - 2024-05-10 ### Changed diff --git a/semcore/ui/generate-reexport.ts b/semcore/ui/generate-reexport.ts index c039e32cb4..2338d6b7a1 100644 --- a/semcore/ui/generate-reexport.ts +++ b/semcore/ui/generate-reexport.ts @@ -9,7 +9,7 @@ const dirname = path.resolve(filename, '..'); const components = fs.readJSONSync(path.resolve(dirname, './components.json')); -const EXPORT_DEFAULT_REG = /export ({ default|default)/gm; +const EXPORT_DEFAULT_REG = /export ({ default }|default)/gm; const hasExportDefault = async (dependency: string) => { const require = createRequire(import.meta.url);