symcrys 0.0.0 → 0.1.1

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/README.md CHANGED
@@ -34,12 +34,12 @@ birss-app.
34
34
 
35
35
  ## Use
36
36
 
37
- Not yet on npm. Each release on GitHub carries the package as `symcrys-X.Y.Z.tgz`:
38
-
39
37
  ```bash
40
- npm install https://github.com/manganite/symcrys/releases/download/vX.Y.Z/symcrys-X.Y.Z.tgz
38
+ npm install symcrys
41
39
  ```
42
40
 
41
+ Each release on GitHub also carries the package as `symcrys-X.Y.Z.tgz`.
42
+
43
43
  ```ts
44
44
  import { VERSION } from 'symcrys';
45
45
  ```
@@ -77,17 +77,28 @@ module (`foo.ts`, `foo.test.ts`). Working rules for contributors, human or agent
77
77
  1. Release PR: version in `package.json`, `package-lock.json` (`npm install --package-lock-only`)
78
78
  and `src/version.ts`; move the `Unreleased` entries of `CHANGELOG.md` under
79
79
  `## [X.Y.Z] - YYYY-MM-DD` and update the link definitions at the bottom (`[Unreleased]` compares
80
- `vX.Y.Z...HEAD`, `[X.Y.Z]` points to the release).
81
- 2. After the merge, on the merge commit of the release PR:
82
- `git tag -a vX.Y.Z -m "symcrys X.Y.Z" && git push origin vX.Y.Z`.
80
+ `vX.Y.Z...HEAD`, `[X.Y.Z]` compares the previous tag with `vX.Y.Z`).
81
+ 2. After the merge: `git fetch origin`, check that `origin/main` is the merge commit of the release PR,
82
+ then `git tag -a vX.Y.Z -m "symcrys X.Y.Z" origin/main && git push origin vX.Y.Z`.
83
83
  3. The tag runs `.github/workflows/release.yml`: it checks that the tag matches `package.json`,
84
84
  runs all gates, and creates the GitHub release with the `CHANGELOG.md` section as notes and the
85
- `npm pack` tarball attached.
86
-
87
- **npm** (not yet set up). The first version is published by hand from a clean checkout of the
88
- tag: `npm login` (account with two-factor authentication), then `npm publish`. After that,
89
- "Trusted Publishing" for `manganite/symcrys` and `release.yml` can be configured on npmjs.com, so
90
- that later tags publish without a token.
85
+ `npm pack` tarball attached. Check that the workflow is green and the release carries
86
+ `symcrys-X.Y.Z.tgz`.
87
+
88
+ **npm.** The `npm` job of `release.yml` submits the same tarball to npm as a staged version
89
+ (trusted publishing, no token). Its log shows the tarball's shasum and integrity and the stage id. The version
90
+ goes live only after approval with two-factor authentication (npm 11.15 or later):
91
+
92
+ 1. `npm stage list symcrys`, then `npm stage view <stage-id>`: version and shasum must match the log
93
+ of the `npm` job (or "Staged Packages" on npmjs.com).
94
+ 2. `npm stage approve <stage-id>`.
95
+ 3. `npm view symcrys` shows the version as `latest`.
96
+
97
+ If staging fails, re-run the `npm` job (a staged version cannot be staged twice, so check
98
+ `npm stage list` first). An authentication error usually means the trusted publisher on npmjs.com
99
+ does not match (repository, workflow `release.yml`); the stage step runs with `--loglevel verbose`,
100
+ so its log shows the OIDC exchange. As a fallback, stage the release asset by hand:
101
+ `npm stage publish ./symcrys-X.Y.Z.tgz` (then without provenance, which only CI can attest).
91
102
 
92
103
  ## Licence
93
104
 
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Version of symcrys. Kept equal to `version` in package.json (checked by version.test.ts). */
2
- export declare const VERSION = "0.0.0";
2
+ export declare const VERSION = "0.1.1";
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  /** Version of symcrys. Kept equal to `version` in package.json (checked by version.test.ts). */
2
- export const VERSION = '0.0.0';
2
+ export const VERSION = '0.1.1';
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "symcrys",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "description": "Crystallographic symmetry calculations: point groups (crystallographic and magnetic), their settings, symbols and properties, and property tensors. TypeScript library without dependencies.",
5
5
  "keywords": [
6
6
  "crystallography",
@@ -50,13 +50,13 @@
50
50
  "audit:point-groups": "vitest run --config audit/point-groups/vitest.config.ts"
51
51
  },
52
52
  "devDependencies": {
53
- "@eslint/js": "^9.39.5",
53
+ "@eslint/js": "10.0.1",
54
54
  "@types/node": "22.20.5",
55
- "eslint": "^9.39.5",
55
+ "eslint": "10.14.0",
56
56
  "globals": "17.14.0",
57
57
  "prettier": "3.9.10",
58
58
  "typescript": "6.0.3",
59
- "typescript-eslint": "^8.36.0",
59
+ "typescript-eslint": "8.72.1",
60
60
  "typescript7": "npm:typescript@7.0.2",
61
61
  "vitest": "5.1.0"
62
62
  }
package/src/version.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  /** Version of symcrys. Kept equal to `version` in package.json (checked by version.test.ts). */
2
- export const VERSION = '0.0.0';
2
+ export const VERSION = '0.1.1';