Skip to content

Commit

Permalink
chore: update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Col0ring committed Dec 23, 2024
1 parent ec664eb commit dc92d50
Show file tree
Hide file tree
Showing 33 changed files with 110 additions and 43 deletions.
5 changes: 0 additions & 5 deletions .changeset/blue-chicken-sin.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/soft-goats-thank.md

This file was deleted.

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# modelscope_studio

## 1.0.1

### Features

- [#39](https://github.com/modelscope/modelscope-studio/pull/39) [`caa6270`](https://github.com/modelscope/modelscope-studio/commit/caa6270834574eff71568f757a26b9c35eb3b9d7) - add assertions to the Application component. Thanks [@Col0ring](https://github.com/Col0ring)!

### Fixes

- [#40](https://github.com/modelscope/modelscope-studio/pull/40) [`ec664eb`](https://github.com/modelscope/modelscope-studio/commit/ec664eb9659f43cdd016622f025b8240db446a20) - layout compatibility. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion backend/modelscope_studio/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.0.0"
__version__ = "1.0.1"
4 changes: 4 additions & 0 deletions config/changelog/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/changelog

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion config/changelog/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/changelog",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Studio Changelog",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
48 changes: 33 additions & 15 deletions config/changelog/src/fix-changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,39 @@ ${current_changelog.replace(`# ${pkg_name}`, '').trim()}
`.trim();
writeFileSync(join(dir, 'CHANGELOG.md'), new_changelog);
}
const version_path = join(
pkg_meta.rootDir,
'backend/modelscope_studio/version.py'
);
const versionPy = readFileSync(version_path, 'utf-8');
writeFileSync(
version_path,
versionPy.replace(/__version__ = ".+"/, `__version__ = "${newVersion}"`)
);
const pyproject_path = join(pkg_meta.rootDir, 'pyproject.toml');
const pyproject = readFileSync(pyproject_path, 'utf-8');
writeFileSync(
pyproject_path,
pyproject.replace(/version = ".+"/, `version = "${newVersion}"`)
);
const version_paths = [
{
path: join(pkg_meta.rootDir, 'backend/modelscope_studio/version.py'),
replacer: (content: string) =>
content.replace(
/__version__ = ".+"/,
`__version__ = "${newVersion}"`
),
},
{
path: join(pkg_meta.rootDir, 'pyproject.toml'),
replacer: (content: string) =>
content.replace(/version = ".+"/, `version = "${newVersion}"`),
},
{
path: join(pkg_meta.rootDir, 'docs/src/pyproject.toml'),
replacer: (content: string) =>
content.replace(/version = ".+"/, `version = "${newVersion}"`),
},
{
path: join(pkg_meta.rootDir, 'docs/requirements.txt'),
replacer: (content: string) =>
content.replace(
/modelscope_studio==.+/,
`modelscope_studio==${newVersion}`
),
},
];

version_paths.forEach(({ path, replacer }) => {
const content = readFileSync(path, 'utf-8');
writeFileSync(path, replacer(content));
});
}
}

Expand Down
4 changes: 4 additions & 0 deletions config/lint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/lint-config

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion config/lint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/lint-config",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Studio Lint Config",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
modelscope_studio==1.0.0
modelscope_studio==1.0.1
2 changes: 1 addition & 1 deletion docs/src/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "hatchling.build"

[project]
name = "modelscope_studio"
version = "1.0.0"
version = "1.0.1"
description = "A third-party component library based on Gradio."
readme = "README.md"
license = "Apache-2.0"
Expand Down
4 changes: 4 additions & 0 deletions frontend/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/frontend

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
6 changes: 6 additions & 0 deletions frontend/antd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @modelscope-studio/antd

## 1.0.1

### Fixes

- [#40](https://github.com/modelscope/modelscope-studio/pull/40) [`ec664eb`](https://github.com/modelscope/modelscope-studio/commit/ec664eb9659f43cdd016622f025b8240db446a20) - layout compatibility. Thanks [@Col0ring](https://github.com/Col0ring)!

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/antd/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@modelscope-studio/antd",
"version": "1.0.0",
"version": "1.0.1",
"type": "module"
}
4 changes: 4 additions & 0 deletions frontend/base/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/base

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/base/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@modelscope-studio/base",
"version": "1.0.0",
"version": "1.0.1",
"type": "module"
}
4 changes: 4 additions & 0 deletions frontend/legacy/Chatbot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/legacy-chatbot

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/Chatbot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-chatbot",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
4 changes: 4 additions & 0 deletions frontend/legacy/Flow/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/legacy-flow

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/Flow/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-flow",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
4 changes: 4 additions & 0 deletions frontend/legacy/Lifecycle/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/legacy-lifecycle

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/Lifecycle/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-lifecycle",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
4 changes: 4 additions & 0 deletions frontend/legacy/Markdown/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/legacy-markdown

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/Markdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-markdown",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
4 changes: 4 additions & 0 deletions frontend/legacy/MultimodalInput/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/legacy-multimodal-input

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/MultimodalInput/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-multimodal-input",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
4 changes: 4 additions & 0 deletions frontend/legacy/WaterfallGallery/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/legacy-waterfall-gallery

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/WaterfallGallery/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-waterfall-gallery",
"version": "1.0.0",
"version": "1.0.1",
"description": "ModelScope Gradio Components",
"repository": "git@github.com:modelscope/modelscope-studio.git",
"license": "Apache-2.0",
Expand Down
4 changes: 4 additions & 0 deletions frontend/legacy/compiled/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# @modelscope-studio/legacy-compiled

## 1.0.1

No significant changes to this package were made in this release.

## 1.0.0

### Features
Expand Down
2 changes: 1 addition & 1 deletion frontend/legacy/compiled/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/legacy-compiled",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Gradio Components",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@modelscope-studio/frontend",
"version": "1.0.0",
"version": "1.0.1",
"private": false,
"description": "ModelScope Gradio Components",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modelscope_studio",
"version": "1.0.0",
"version": "1.0.1",
"private": true,
"description": "ModelScope Gradio Components",
"repository": "git@github.com:modelscope/modelscope-studio.git",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "hatchling.build"

[project]
name = "modelscope_studio"
version = "1.0.0"
version = "1.0.1"
description = "A third-party component library based on Gradio."
readme = "README.md"
license = "Apache-2.0"
Expand Down

0 comments on commit dc92d50

Please sign in to comment.