@itrocks/handbook 0.0.2 → 0.0.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/AGENTS.md CHANGED
@@ -8,3 +8,17 @@ Paths below are relative to this package.
8
8
  - Update instructions or conventions for AI agents: [agent conventions](docs/agent-conventions/README.md).
9
9
 
10
10
  If a task spans several categories, read each applicable guide.
11
+
12
+ ## Development task completion
13
+
14
+ End every development task on an application or framework package with a proposed commit message.
15
+ Write proposed and authored commit messages in English for every development task.
16
+ Keep it as short and concise as possible. Wherever possible, describe the change from the application or package
17
+ user's perspective, using wording they can understand.
18
+ Before writing it, inspect each affected Git repository's status and complete pending diff, including
19
+ staged, unstaged and untracked files, to account for work already in progress.
20
+
21
+ Group related changes into atomic commits. If the pending changes warrant several commits, propose a short message
22
+ for each and list the files to include, identifying the relevant hunks when a file spans several commits.
23
+ Keep proposals separate for distinct repositories and cover all changes assigned to each commit.
24
+ Proposing messages does not authorise creating commits.
@@ -1,5 +1,7 @@
1
1
  # Framework changes
2
2
 
3
+ Apply [package versioning](#package-versioning) as soon as the first file of a package is modified.
4
+
3
5
  Read the affected package's README and local instructions, then select the applicable conventions:
4
6
 
5
7
  - Source or tests: [coding conventions](../framework-usage/coding-conventions.md).
@@ -17,3 +19,18 @@ A local implementation change preserving existing contracts does not require arc
17
19
 
18
20
  For setup, rebuilds, dependency reviews and releases, see [development tools](development-tools.md).
19
21
  The full dependency audit is optional: consider it before a major release or run it at the developer's request.
22
+
23
+ ## Package versioning
24
+
25
+ When modifying a framework package, update its `package.json` version as soon as the first file is changed.
26
+ Choose the highest level required by the development: patch for fixes or documentation, minor for backwards-compatible
27
+ features, major for breaking changes.
28
+
29
+ First inspect `git diff HEAD -- package.json` in that package's repository, covering staged and unstaged changes.
30
+ Compare the working version with `HEAD`: if it already contains an increment at the required level or higher, keep it.
31
+ Otherwise, increment the required component from the `HEAD` version and reset lower components to zero.
32
+ Do not increment again for each file or follow-up change within the same pending development.
33
+
34
+ Reassess the level when the scope changes. For example, with `1.2.3` at `HEAD`, a fix becomes `1.2.4`; if it grows into
35
+ a backwards-compatible feature, replace that pending version with `1.3.0`. An existing `1.3.0` or `2.0.0` already covers
36
+ a further patch-level change.
@@ -27,7 +27,7 @@ Exclude `src/front` from the backend build. Mixed browser builds extend the base
27
27
  Use `@itrocks/prepare-module` where compiled browser subpaths must be copied to the root.
28
28
 
29
29
  Package metadata includes author, description, keywords, homepage, license, scoped name, repository and version.
30
- Start an unreleased package at `0.0.1`; do not bump existing versions incidentally.
30
+ Start an unreleased package at `0.0.1`; follow [package versioning](../README.md#package-versioning) for existing packages.
31
31
  Use `itrocks-ts/<package>` for the repository and keep the license consistent with `LICENSE`.
32
32
 
33
33
  - Runtime imports belong in `dependencies`; internal packages use `latest`.
@@ -1,6 +1,8 @@
1
1
  # Coding conventions
2
2
 
3
3
  Apply these rules to application and framework source, tests and development files.
4
+ For framework packages, also apply [package versioning](../framework-changes/README.md#package-versioning)
5
+ from the first file change.
4
6
 
5
7
  ## Layout and blocks
6
8
 
package/package.json CHANGED
@@ -25,5 +25,5 @@
25
25
  "type": "git",
26
26
  "url": "git+https://github.com/itrocks-ts/handbook.git"
27
27
  },
28
- "version": "0.0.2"
28
+ "version": "0.0.4"
29
29
  }