8 Commits

Author SHA1 Message Date
59a7cb6b8c New translations dcr-toml.mdx (Ukrainian)
[ci skip]
2026-08-08 15:03:14 +08:00
e90eda5fa8 New translations dcr-toml.mdx (Russian)
[ci skip]
2026-08-08 15:03:11 +08:00
820114d7d8 New translations dcr-toml.mdx (Polish)
[ci skip]
2026-08-08 15:03:08 +08:00
46c7607b62 New translations dcr-toml.mdx (German)
[ci skip]
2026-08-08 15:03:06 +08:00
ffcc245cec New translations changelog.mdx (Ukrainian)
[ci skip]
2026-08-08 15:03:03 +08:00
f0a0da18b0 New translations changelog.mdx (Russian)
[ci skip]
2026-08-08 15:02:59 +08:00
7a64c2e944 New translations changelog.mdx (Polish)
[ci skip]
2026-08-08 15:02:56 +08:00
098724a1ea New translations changelog.mdx (German)
[ci skip]
2026-08-08 15:02:53 +08:00
8 changed files with 132 additions and 28 deletions

View File

@@ -4,6 +4,16 @@ sidebar_label: Changelog
# Changelog # Changelog
## 0.8.5 (2026-08-08)
* **`package.dcr-version`** — optional CLI version pin in `dcr.toml`.
`dcr new` / `dcr init` write the current version. On config load:
* missing / empty pin → warn "add dcr-version";
* dcr older than pin → warn "update dcr";
* dcr newer than pin → warn "check changelog, update pin";
* equal → silent.
Commands do not fail, warning only (once per path per process).
## 0.8.4 (2026-08-04) ## 0.8.4 (2026-08-04)
**Added:** **Added:**

View File

@@ -40,23 +40,39 @@ Main project configuration file. Located at the project root.
## [package] ## [package]
| Field | Required | Description | | Field | Required | Description |
| --------- | -------- | ------------------------------------------- | | ------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
| `name` | yes | Project name | | `name` | yes | Project name |
| `version` | yes | Semantic version | | `version` | yes | Semantic version of the **project** |
| `type` | no | `app`, `lib`, `none` (defaults to `"none"`) | | `dcr-version` | no | Semver of the **dcr tool** this project targets. Written by `dcr new` / `dcr init` to the current tool version. |
| `license` | no | SPDX license identifier | | `type` | no | `app`, `lib`, `none` (defaults to `"none"`) |
| `author` | no | Author | | `license` | no | SPDX license identifier |
| `author` | no | Author |
```toml ```toml
[package] [package]
name = "my-app" name = "my-app"
version = "0.1.0" version = "0.1.0"
dcr-version = "0.8.4"
type = "app" type = "app"
license = "MIT" license = "MIT"
author = "John Doe" author = "John Doe"
``` ```
### `package.dcr-version`
Optional pin of the DCR CLI the project was written for. On every `dcr.toml` load:
| Situation | Behaviour |
| ------------------------------ | ---------------------------------------------------------- |
| Field missing / empty | Warning: add `dcr-version` (set by `dcr new` / `dcr init`) |
| Running dcr **older** than pin | Warning: upgrade dcr (`dcr --update`) |
| Running dcr **newer** than pin | Warning: review changelog, bump the pin when ready |
| Equal | Silent |
| Invalid semver | Warning once, field ignored |
Never fails the command — warnings only. Pre-release suffixes (`1.0.0-dev`) are ignored for comparison (`1.0.0-dev` ≡ `1.0.0`).
## [build] ## [build]
... ...

View File

@@ -4,6 +4,16 @@ sidebar_label: Changelog
# Changelog # Changelog
## 0.8.5 (2026-08-08)
* **`package.dcr-version`** — optional CLI version pin in `dcr.toml`.
`dcr new` / `dcr init` write the current version. On config load:
* missing / empty pin → warn "add dcr-version";
* dcr older than pin → warn "update dcr";
* dcr newer than pin → warn "check changelog, update pin";
* equal → silent.
Commands do not fail, warning only (once per path per process).
## 0.8.4 (2026-08-04) ## 0.8.4 (2026-08-04)
**Added:** **Added:**

View File

@@ -40,23 +40,39 @@ Main project configuration file. Located at the project root.
## [package] ## [package]
| Field | Required | Description | | Field | Required | Description |
| --------- | -------- | ------------------------------------------- | | ------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
| `name` | yes | Project name | | `name` | yes | Project name |
| `version` | yes | Semantic version | | `version` | yes | Semantic version of the **project** |
| `type` | no | `app`, `lib`, `none` (defaults to `"none"`) | | `dcr-version` | no | Semver of the **dcr tool** this project targets. Written by `dcr new` / `dcr init` to the current tool version. |
| `license` | no | SPDX license identifier | | `type` | no | `app`, `lib`, `none` (defaults to `"none"`) |
| `author` | no | Author | | `license` | no | SPDX license identifier |
| `author` | no | Author |
```toml ```toml
[package] [package]
name = "my-app" name = "my-app"
version = "0.1.0" version = "0.1.0"
dcr-version = "0.8.4"
type = "app" type = "app"
license = "MIT" license = "MIT"
author = "John Doe" author = "John Doe"
``` ```
### `package.dcr-version`
Optional pin of the DCR CLI the project was written for. On every `dcr.toml` load:
| Situation | Behaviour |
| ------------------------------ | ---------------------------------------------------------- |
| Field missing / empty | Warning: add `dcr-version` (set by `dcr new` / `dcr init`) |
| Running dcr **older** than pin | Warning: upgrade dcr (`dcr --update`) |
| Running dcr **newer** than pin | Warning: review changelog, bump the pin when ready |
| Equal | Silent |
| Invalid semver | Warning once, field ignored |
Never fails the command — warnings only. Pre-release suffixes (`1.0.0-dev`) are ignored for comparison (`1.0.0-dev` ≡ `1.0.0`).
## [build] ## [build]
... ...

View File

@@ -4,6 +4,16 @@ sidebar_label: Список изменений
# Список изменений # Список изменений
## 0.8.5 (2026-08-08)
* **`package.dcr-version`** — optional CLI version pin in `dcr.toml`.
`dcr new` / `dcr init` write the current version. On config load:
* missing / empty pin → warn "add dcr-version";
* dcr older than pin → warn "update dcr";
* dcr newer than pin → warn "check changelog, update pin";
* equal → silent.
Commands do not fail, warning only (once per path per process).
## 0.8.4 (2026-08-04) ## 0.8.4 (2026-08-04)
**Added:** **Added:**

View File

@@ -40,23 +40,39 @@ sidebar_label: Обзор dcr.toml
## [пакет] ## [пакет]
| Поле | Обязательное | Описание | | Поле | Обязательное | Описание |
| ---------- | ------------ | ------------------------------------------- | | ------------- | ------------ | --------------------------------------------------------------------------------------------------------------- |
| `имя` | да | Имя проекта | | `имя` | да | Имя проекта |
| `версия` | да | Семантическая версия | | `версия` | да | Semantic version of the **project** |
| `тип` | no | `app`, `lib`, `none` (defaults to `"none"`) | | `dcr-version` | no | Semver of the **dcr tool** this project targets. Written by `dcr new` / `dcr init` to the current tool version. |
| `лицензия` | нет | SPDX-идентификатор лицензии | | `тип` | нет | `app`, `lib`, `none` (defaults to `"none"`) |
| `автор` | нет | Автор | | `лицензия` | нет | SPDX-идентификатор лицензии |
| `автор` | no | Автор |
```toml ```toml
[package] [package]
name = "my-app" name = "my-app"
version = "0.1.0" version = "0.1.0"
dcr-version = "0.8.4"
type = "app" type = "app"
license = "MIT" license = "MIT"
author = "John Doe" author = "John Doe"
``` ```
### `package.dcr-version`
Optional pin of the DCR CLI the project was written for. On every `dcr.toml` load:
| Situation | Behaviour |
| ------------------------------ | ---------------------------------------------------------- |
| Field missing / empty | Warning: add `dcr-version` (set by `dcr new` / `dcr init`) |
| Running dcr **older** than pin | Warning: upgrade dcr (`dcr --update`) |
| Running dcr **newer** than pin | Warning: review changelog, bump the pin when ready |
| Equal | Silent |
| Invalid semver | Warning once, field ignored |
Never fails the command — warnings only. Pre-release suffixes (`1.0.0-dev`) are ignored for comparison (`1.0.0-dev` ≡ `1.0.0`).
## [сборка] ## [сборка]
... ...

View File

@@ -4,6 +4,16 @@ sidebar_label: Changelog
# Changelog # Changelog
## 0.8.5 (2026-08-08)
* **`package.dcr-version`** — optional CLI version pin in `dcr.toml`.
`dcr new` / `dcr init` write the current version. On config load:
* missing / empty pin → warn "add dcr-version";
* dcr older than pin → warn "update dcr";
* dcr newer than pin → warn "check changelog, update pin";
* equal → silent.
Commands do not fail, warning only (once per path per process).
## 0.8.4 (2026-08-04) ## 0.8.4 (2026-08-04)
**Added:** **Added:**

View File

@@ -40,23 +40,39 @@ Main project configuration file. Located at the project root.
## [package] ## [package]
| Field | Required | Description | | Field | Required | Description |
| --------- | -------- | ------------------------------------------- | | ------------- | -------- | --------------------------------------------------------------------------------------------------------------- |
| `name` | yes | Project name | | `name` | yes | Project name |
| `version` | yes | Semantic version | | `version` | yes | Semantic version of the **project** |
| `type` | no | `app`, `lib`, `none` (defaults to `"none"`) | | `dcr-version` | no | Semver of the **dcr tool** this project targets. Written by `dcr new` / `dcr init` to the current tool version. |
| `license` | no | SPDX license identifier | | `type` | no | `app`, `lib`, `none` (defaults to `"none"`) |
| `author` | no | Author | | `license` | no | SPDX license identifier |
| `author` | no | Author |
```toml ```toml
[package] [package]
name = "my-app" name = "my-app"
version = "0.1.0" version = "0.1.0"
dcr-version = "0.8.4"
type = "app" type = "app"
license = "MIT" license = "MIT"
author = "John Doe" author = "John Doe"
``` ```
### `package.dcr-version`
Optional pin of the DCR CLI the project was written for. On every `dcr.toml` load:
| Situation | Behaviour |
| ------------------------------ | ---------------------------------------------------------- |
| Field missing / empty | Warning: add `dcr-version` (set by `dcr new` / `dcr init`) |
| Running dcr **older** than pin | Warning: upgrade dcr (`dcr --update`) |
| Running dcr **newer** than pin | Warning: review changelog, bump the pin when ready |
| Equal | Silent |
| Invalid semver | Warning once, field ignored |
Never fails the command — warnings only. Pre-release suffixes (`1.0.0-dev`) are ignored for comparison (`1.0.0-dev` ≡ `1.0.0`).
## [build] ## [build]
... ...