@rentman/rm-core 59.4.0-onRootItemDelete → 59.4.0
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.
|
@@ -3,7 +3,6 @@ export type TransactionCacheCallbackCondition = 'always' | 'onClose' | 'skipOnCl
|
|
|
3
3
|
export type TransactionCacheCallbackType = {
|
|
4
4
|
onBeforeSave: (transaction: TransactionCache) => any;
|
|
5
5
|
onSaveSuccess: (transaction: TransactionCache, conversionMap: ItemIdConversionMap) => any;
|
|
6
|
-
onRootItemDelete: () => any;
|
|
7
6
|
};
|
|
8
7
|
export declare class TransactionEventHandler {
|
|
9
8
|
private errorHandler;
|
package/package.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@rentman/rm-core",
|
|
3
|
-
"version": "59.4.0
|
|
4
|
-
"description": "Rentman core functionalities",
|
|
5
|
-
"main": "./dist/rm-core.js",
|
|
6
|
-
"types": "./dist/types/src/index.d.ts",
|
|
7
|
-
"engines": {
|
|
8
|
-
"node": ">= 22.9.x <= 22.13.x",
|
|
9
|
-
"npm": ">= 10.8.x <= 10.9.x"
|
|
10
|
-
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/rentmanpublic/frontend-core"
|
|
14
|
-
},
|
|
15
|
-
"devDependencies": {
|
|
16
|
-
"@angular/core": "^20",
|
|
17
|
-
"@eslint/js": "^9.8.0",
|
|
18
|
-
"@rentman/backend-types": "4.796.0-60-gf11b0b4e33",
|
|
19
|
-
"@stylistic/eslint-plugin-ts": "^2.7.2",
|
|
20
|
-
"@types/eslint__js": "^8.42.3",
|
|
21
|
-
"clean-webpack-plugin": "^0.1.19",
|
|
22
|
-
"eslint": "^9.8.0",
|
|
23
|
-
"jsdom": "^26.1.0",
|
|
24
|
-
"moment": "^2.30.1",
|
|
25
|
-
"rxjs": "^7",
|
|
26
|
-
"terser-webpack-plugin": "^4.2.3",
|
|
27
|
-
"ts-loader": "^9.3.1",
|
|
28
|
-
"typescript": "5.5.4",
|
|
29
|
-
"typescript-eslint": "^8.4.0",
|
|
30
|
-
"vitest": "^3.2.3",
|
|
31
|
-
"webpack": "^5.74.0",
|
|
32
|
-
"webpack-cli": "^5.1.4",
|
|
33
|
-
"webpack-merge": "^6.0.1"
|
|
34
|
-
},
|
|
35
|
-
"peerDependencies": {
|
|
36
|
-
"@angular/core": "^20",
|
|
37
|
-
"@rentman/backend-types": ">=4.786.0-47-g4a3c77a5db",
|
|
38
|
-
"moment": "^2.30.1",
|
|
39
|
-
"rxjs": "^7"
|
|
40
|
-
},
|
|
41
|
-
"files": [
|
|
42
|
-
"dist"
|
|
43
|
-
],
|
|
44
|
-
"scripts": {
|
|
45
|
-
"prepublishOnly": "npm run bundle",
|
|
46
|
-
"bundle-dev": "webpack --config webpack.dev.js",
|
|
47
|
-
"bundle": "webpack --config webpack.prod.js",
|
|
48
|
-
"type-check": "tsc --noEmit -p ./tsconfig.json && tsc --noEmit -p ./tests/tsconfig.test.json",
|
|
49
|
-
"lint": "eslint src/**/*.ts tests/**/*.ts --quiet",
|
|
50
|
-
"test": "vitest --pool forks --poolOptions.forks.isolate",
|
|
51
|
-
"vitest-watch": "vitest --watch",
|
|
52
|
-
"coverage": "vitest --coverage"
|
|
53
|
-
},
|
|
54
|
-
"author": "Martijn Welker <martijn@rentman.nl>",
|
|
55
|
-
"license": "UNLICENSED"
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@rentman/rm-core",
|
|
3
|
+
"version": "59.4.0",
|
|
4
|
+
"description": "Rentman core functionalities",
|
|
5
|
+
"main": "./dist/rm-core.js",
|
|
6
|
+
"types": "./dist/types/src/index.d.ts",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">= 22.9.x <= 22.13.x",
|
|
9
|
+
"npm": ">= 10.8.x <= 10.9.x"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/rentmanpublic/frontend-core"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@angular/core": "^20",
|
|
17
|
+
"@eslint/js": "^9.8.0",
|
|
18
|
+
"@rentman/backend-types": "4.796.0-60-gf11b0b4e33",
|
|
19
|
+
"@stylistic/eslint-plugin-ts": "^2.7.2",
|
|
20
|
+
"@types/eslint__js": "^8.42.3",
|
|
21
|
+
"clean-webpack-plugin": "^0.1.19",
|
|
22
|
+
"eslint": "^9.8.0",
|
|
23
|
+
"jsdom": "^26.1.0",
|
|
24
|
+
"moment": "^2.30.1",
|
|
25
|
+
"rxjs": "^7",
|
|
26
|
+
"terser-webpack-plugin": "^4.2.3",
|
|
27
|
+
"ts-loader": "^9.3.1",
|
|
28
|
+
"typescript": "5.5.4",
|
|
29
|
+
"typescript-eslint": "^8.4.0",
|
|
30
|
+
"vitest": "^3.2.3",
|
|
31
|
+
"webpack": "^5.74.0",
|
|
32
|
+
"webpack-cli": "^5.1.4",
|
|
33
|
+
"webpack-merge": "^6.0.1"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"@angular/core": "^20",
|
|
37
|
+
"@rentman/backend-types": ">=4.786.0-47-g4a3c77a5db",
|
|
38
|
+
"moment": "^2.30.1",
|
|
39
|
+
"rxjs": "^7"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist"
|
|
43
|
+
],
|
|
44
|
+
"scripts": {
|
|
45
|
+
"prepublishOnly": "npm run bundle",
|
|
46
|
+
"bundle-dev": "webpack --config webpack.dev.js",
|
|
47
|
+
"bundle": "webpack --config webpack.prod.js",
|
|
48
|
+
"type-check": "tsc --noEmit -p ./tsconfig.json && tsc --noEmit -p ./tests/tsconfig.test.json",
|
|
49
|
+
"lint": "eslint src/**/*.ts tests/**/*.ts --quiet",
|
|
50
|
+
"test": "vitest --pool forks --poolOptions.forks.isolate",
|
|
51
|
+
"vitest-watch": "vitest --watch",
|
|
52
|
+
"coverage": "vitest --coverage"
|
|
53
|
+
},
|
|
54
|
+
"author": "Martijn Welker <martijn@rentman.nl>",
|
|
55
|
+
"license": "UNLICENSED"
|
|
56
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,49 +1,42 @@
|
|
|
1
|
-
# Running a local test version
|
|
2
|
-
1. Make changes
|
|
3
|
-
2. run `npm run bundle-dev`
|
|
4
|
-
3. copy `dist` folder to
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
- `
|
|
35
|
-
-
|
|
36
|
-
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
`npm version prerelease --preid="<YOUR_ISSUE_NUMBER>"`
|
|
45
|
-
|
|
46
|
-
> **Example**
|
|
47
|
-
> Running `npm version prerelease --preid="RM4-00000"` on version `43.2.0`
|
|
48
|
-
> would create the tag and version `43.2.1-RM4-00000.0`
|
|
49
|
-
>
|
|
1
|
+
# Running a local test version
|
|
2
|
+
1. Make changes
|
|
3
|
+
2. run `npm run bundle-dev`
|
|
4
|
+
3. copy `dist` folder to `<project>/node_modules/@rentman/rm-core/`
|
|
5
|
+
4. Delete the Angular build cache (`.angular`) folder before rebuilding
|
|
6
|
+
|
|
7
|
+
# Releasing
|
|
8
|
+
|
|
9
|
+
## Production versions
|
|
10
|
+
|
|
11
|
+
For stable releases to master:
|
|
12
|
+
|
|
13
|
+
1. Go to [Release workflow](https://github.com/rentmanpublic/frontend-core/actions/workflows/release.yml)
|
|
14
|
+
2. Click "Run workflow"
|
|
15
|
+
3. Select version bump type:
|
|
16
|
+
- `major` – incompatible / breaking changes
|
|
17
|
+
- `minor` – adding functionality in a backward compatible manner
|
|
18
|
+
- `patch` – backward compatible changes / bug fixes
|
|
19
|
+
4. Run the workflow
|
|
20
|
+
|
|
21
|
+
This will publish to npm with the `latest` tag and create a git tag (e.g., `v59.4.0`).
|
|
22
|
+
|
|
23
|
+
## Prereleases (Testing / PoC versions)
|
|
24
|
+
|
|
25
|
+
For testing versions from feature branches:
|
|
26
|
+
|
|
27
|
+
1. Go to [Prerelease workflow](https://github.com/rentmanpublic/frontend-core/actions/workflows/prerelease.yml)
|
|
28
|
+
2. Click "Run workflow"
|
|
29
|
+
3. Select the **branch** you want to release from
|
|
30
|
+
4. Enter a prerelease identifier (e.g., `RM4-12345`, `beta`, `feature-x`)
|
|
31
|
+
5. Run the workflow
|
|
32
|
+
|
|
33
|
+
This will:
|
|
34
|
+
- Create a version like `59.3.0-RM4-12345` (based on the last git tag)
|
|
35
|
+
- Publish to npm with a custom tag (e.g., `RM4-12345`)
|
|
36
|
+
- Commit and tag on your branch (e.g., `v59.3.0-RM4-12345`)
|
|
37
|
+
- Auto-increment if tag exists: `59.3.0-RM4-12345-02`, `59.3.0-RM4-12345-03`, etc.
|
|
38
|
+
|
|
39
|
+
To install a prerelease:
|
|
40
|
+
```bash
|
|
41
|
+
npm install @rentman/rm-core@RM4-12345
|
|
42
|
+
```
|