Skip to content

Commit a5a5080

Browse files
authored
Release beta (#162)
2 parents eb5a1cd + d74177f commit a5a5080

File tree

80 files changed

+12293
-8787
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+12293
-8787
lines changed

.eslintrc.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

.github/workflows/test-and-release.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- main
77
- beta
88
pull_request: {}
9+
workflow_dispatch: {}
910

1011
jobs:
1112
test-and-release:
@@ -20,6 +21,17 @@ jobs:
2021
group: ${{ github.ref }}-node-${{ matrix.node-version }}
2122
cancel-in-progress: true
2223

24+
permissions:
25+
# Necessary for semantic-release
26+
contents: write
27+
issues: write
28+
pull-requests: write
29+
# Necessary for npm publish --provenance
30+
# See https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow
31+
id-token: write
32+
# packages: write is only necessary if you want to publish to Github
33+
packages: write
34+
2335
steps:
2436
- name: ⬇️ Checkout repo
2537
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2 # pin@main

.husky/pre-commit

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
4-
npx lint-staged
1+
npx lint-staged

.releaserc.json

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
11
{
2-
"branches": ["main", { "name": "beta", "prerelease": true }],
3-
"plugins": [
4-
"@semantic-release/commit-analyzer",
5-
"@semantic-release/release-notes-generator",
6-
"@semantic-release/changelog",
7-
[
8-
"@semantic-release/git",
9-
{
10-
"assets": ["CHANGELOG.md"]
11-
}
12-
],
13-
"@semantic-release/github",
14-
"@semantic-release/npm"
15-
]
2+
"extends": "@peerigon/configs/semantic-release"
163
}

.vscode/settings.json

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,31 @@
11
{
2-
"editor.codeActionsOnSave": {
3-
"source.fixAll.eslint": "explicit",
4-
"source.organizeImports": "never"
5-
},
6-
"editor.defaultFormatter": "esbenp.prettier-vscode",
7-
"editor.formatOnSave": true,
8-
"eslint.codeActionsOnSave.mode": "all",
9-
"eslint.validate": [
10-
"javascript",
11-
"javascriptreact",
12-
"typescript",
13-
"typescriptreact"
14-
],
152
"search.exclude": {
163
"node_modules": true,
174
"dist": true,
185
".git": true,
196
".eslintcache": true
207
},
218
"files.exclude": {
22-
"**/.svn": true,
23-
"**/.hg": true,
24-
"**/CVS": true,
25-
"**/.DS_Store": true,
26-
"**/*.{ts,x}.html": true,
27-
"**/coverage": true
9+
"**/.DS_Store": true
10+
},
11+
"explorer.fileNesting.enabled": true,
12+
"explorer.fileNesting.patterns": {
13+
"*.ts": "$(capture).*",
14+
"tsconfig.json": "tsconfig.*.json",
15+
"package.json": "package-lock.json, .npmrc"
16+
},
17+
"editor.defaultFormatter": "esbenp.prettier-vscode",
18+
"editor.formatOnSave": true,
19+
"editor.codeActionsOnSave": {
20+
"source.fixAll.eslint": "explicit"
2821
},
29-
"javascript.preferences.importModuleSpecifierEnding": "js",
30-
"typescript.preferences.importModuleSpecifierEnding": "js",
31-
"typescript.preferences.importModuleSpecifier": "shortest",
3222
"typescript.tsdk": "./node_modules/typescript/lib",
33-
"typescript.enablePromptUseWorkspaceTsdk": true
23+
"typescript.enablePromptUseWorkspaceTsdk": true,
24+
"eslint.validate": [
25+
"javascript",
26+
"javascriptreact",
27+
"typescript",
28+
"typescriptreact"
29+
],
30+
"cSpell.words": ["Billability", "clockodo", "Lumpsum", "Nonbusiness"]
3431
}

CHANGELOG.md

Lines changed: 43 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,79 @@
1-
# [24.2.0](https://github.com/peerigon/clockodo/compare/v24.1.0...v24.2.0) (2025-03-07)
1+
# [25.0.0-beta.3](https://github.com/peerigon/clockodo/compare/v25.0.0-beta.2...v25.0.0-beta.3) (2025-03-07)
2+
3+
### Features
24

5+
- Add user scope filter ([#148](https://github.com/peerigon/clockodo/issues/148)) ([8ec4895](https://github.com/peerigon/clockodo/commit/8ec48953f0b75ebc06d4f7320f323de099252a38))
6+
- Add year filter for holidays-quota query ([#149](https://github.com/peerigon/clockodo/issues/149)) ([5a643a0](https://github.com/peerigon/clockodo/commit/5a643a0cd107147074707342d57556525058c48b))
7+
8+
# [24.2.0](https://github.com/peerigon/clockodo/compare/v24.1.0...v24.2.0) (2025-03-07)
39

410
### Features
511

6-
* Add user scope filter ([#148](https://github.com/peerigon/clockodo/issues/148)) ([8ec4895](https://github.com/peerigon/clockodo/commit/8ec48953f0b75ebc06d4f7320f323de099252a38))
12+
- Add user scope filter ([#148](https://github.com/peerigon/clockodo/issues/148)) ([8ec4895](https://github.com/peerigon/clockodo/commit/8ec48953f0b75ebc06d4f7320f323de099252a38))
713

814
# [24.1.0](https://github.com/peerigon/clockodo/compare/v24.0.0...v24.1.0) (2025-03-07)
915

10-
1116
### Features
1217

13-
* Add year filter for holidays-quota query ([#149](https://github.com/peerigon/clockodo/issues/149)) ([5a643a0](https://github.com/peerigon/clockodo/commit/5a643a0cd107147074707342d57556525058c48b))
18+
- Add year filter for holidays-quota query ([#149](https://github.com/peerigon/clockodo/issues/149)) ([5a643a0](https://github.com/peerigon/clockodo/commit/5a643a0cd107147074707342d57556525058c48b))
1419

15-
# [24.0.0](https://github.com/peerigon/clockodo/compare/v23.5.1...v24.0.0) (2025-02-07)
20+
# [25.0.0-beta.2](https://github.com/peerigon/clockodo/compare/v25.0.0-beta.1...v25.0.0-beta.2) (2025-02-08)
21+
22+
### chore
23+
24+
- Add @peerigon/configs for linting ([b71843c](https://github.com/peerigon/clockodo/commit/b71843cc6c75cc0097b45de6e06ab33fe41b000e))
25+
- Switch TypeScript lib option to "es2021" ([faa5b7c](https://github.com/peerigon/clockodo/commit/faa5b7c36f640e6ee58f48bdd97dc38bc11fb701))
26+
- Use TypeScript config from @peerigon/configs ([b8aa1be](https://github.com/peerigon/clockodo/commit/b8aa1becbedca98482887944077bd48bc632091e))
27+
28+
### BREAKING CHANGES
1629

30+
- The TypeScript target has now been set to ES2022. The package must be transpiled for older runtimes.
31+
- editCustomer() and editLumpsumService() return a type now instead of implicit any
32+
- Throw TypeError instead of Error where appropiate
33+
- We expect String.prototype.replaceAll to be present. According to MDN, that's baseline.
34+
35+
# [25.0.0-beta.1](https://github.com/peerigon/clockodo/compare/v24.0.0...v25.0.0-beta.1) (2025-02-07)
1736

1837
### chore
1938

20-
* Update dev dependencies ([#157](https://github.com/peerigon/clockodo/issues/157)) ([8254189](https://github.com/peerigon/clockodo/commit/8254189c50d4bc9c7a964b89bd558c424610594b))
39+
- Refactor and update ([#161](https://github.com/peerigon/clockodo/issues/161)) ([859e894](https://github.com/peerigon/clockodo/commit/859e894737c9791735e2ef1314b618314c517453))
40+
41+
### BREAKING CHANGES
42+
43+
- Changed `api` `config` method to a setter and getter property
44+
- Removed Axios options from `api` methods. We plan to remove Axios in the future. You can pass headers instead of Axios options as third parameter to `post`, `put` and `delete` now.
45+
- Updated TypeScript which might affect the generated code.
46+
- Updated Faker and mocks. This will change the produced mock data in case you snapshotted it.
2147

48+
# [24.0.0](https://github.com/peerigon/clockodo/compare/v23.5.1...v24.0.0) (2025-02-07)
49+
50+
### chore
51+
52+
- Update dev dependencies ([#157](https://github.com/peerigon/clockodo/issues/157)) ([8254189](https://github.com/peerigon/clockodo/commit/8254189c50d4bc9c7a964b89bd558c424610594b))
2253

2354
### BREAKING CHANGES
2455

25-
* Dropped official Node 16 support. We don't know of an actual breaking change, but you're on your own now :)
56+
- Dropped official Node 16 support. We don't know of an actual breaking change, but you're on your own now :)
2657

2758
## [23.5.1](https://github.com/peerigon/clockodo/compare/v23.5.0...v23.5.1) (2023-12-05)
2859

29-
3060
### Bug Fixes
3161

32-
* set default holidayscount and target hours ([b1d0bfb](https://github.com/peerigon/clockodo/commit/b1d0bfbfd52c056a2dcde549bfe2c9ff9bd84e0e))
33-
* set default holidayscount and target hours ([#153](https://github.com/peerigon/clockodo/issues/153)) ([98c5f15](https://github.com/peerigon/clockodo/commit/98c5f15ce90d667b303ca9e447349a9424ab91a3))
62+
- set default holidayscount and target hours ([b1d0bfb](https://github.com/peerigon/clockodo/commit/b1d0bfbfd52c056a2dcde549bfe2c9ff9bd84e0e))
63+
- set default holidayscount and target hours ([#153](https://github.com/peerigon/clockodo/issues/153)) ([98c5f15](https://github.com/peerigon/clockodo/commit/98c5f15ce90d667b303ca9e447349a9424ab91a3))
3464

3565
# [23.5.0](https://github.com/peerigon/clockodo/compare/v23.4.0...v23.5.0) (2023-12-04)
3666

37-
3867
### Features
3968

40-
* added users default holidaycount and targethours ([2439f40](https://github.com/peerigon/clockodo/commit/2439f4035c8ac0f84691fc385093726791ab5986))
41-
* added users default holidaycount and targethours ([#137](https://github.com/peerigon/clockodo/issues/137)) ([e96713d](https://github.com/peerigon/clockodo/commit/e96713d9b6354b6d724761f1e93656d86afce157))
69+
- added users default holidaycount and targethours ([2439f40](https://github.com/peerigon/clockodo/commit/2439f4035c8ac0f84691fc385093726791ab5986))
70+
- added users default holidaycount and targethours ([#137](https://github.com/peerigon/clockodo/issues/137)) ([e96713d](https://github.com/peerigon/clockodo/commit/e96713d9b6354b6d724761f1e93656d86afce157))
4271

4372
# [23.4.0](https://github.com/peerigon/clockodo/compare/v23.3.0...v23.4.0) (2023-12-04)
4473

45-
4674
### Features
4775

48-
* update absences api to v2 ([#152](https://github.com/peerigon/clockodo/issues/152)) ([997a5eb](https://github.com/peerigon/clockodo/commit/997a5ebfd6e0c52f1f040f4a1b5572ef0c01d3bc))
76+
- update absences api to v2 ([#152](https://github.com/peerigon/clockodo/issues/152)) ([997a5eb](https://github.com/peerigon/clockodo/commit/997a5ebfd6e0c52f1f040f4a1b5572ef0c01d3bc))
4977

5078
# [23.3.0](https://github.com/peerigon/clockodo/compare/v23.2.0...v23.3.0) (2023-11-29)
5179

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ For any questions about the different properties please consult the official [Cl
6262
Some constants are also available for import:
6363

6464
```js
65-
import { EntryType, Billability, AbsenceStatus, AbsenceType } from "clockodo";
65+
import { AbsenceStatus, AbsenceType, Billability, EntryType } from "clockodo";
6666

6767
console.log(EntryType.Time); // 1
6868
console.log(EntryType.LumpsumValue); // 2

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import typescriptNodePreset from "@peerigon/configs/eslint/presets/typescript-node";
2+
import stylesNoDefaultExport from "@peerigon/configs/eslint/styles/no-default-export";
3+
4+
export default [...typescriptNodePreset, ...stylesNoDefaultExport];

jest.config.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)