Skip to content

Commit

Permalink
chore: Refactor and update (#161)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Changed `api` `config` method to a setter and getter property

BREAKING CHANGE: 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.

BREAKING CHANGE: Updated TypeScript which might affect the generated code.

BREAKING CHANGE: Updated Faker and mocks. This will change the produced mock data in case you snapshotted it.
  • Loading branch information
jhnns authored Feb 7, 2025
1 parent 9ff98d5 commit 859e894
Show file tree
Hide file tree
Showing 60 changed files with 8,167 additions and 7,715 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["peerigon/presets/prettier-typescript.js"],
"extends": ["peerigon/presets/typescript.js"],
"env": {
"node": true
},
Expand Down
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm test
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"trailingComma": "all",
"plugins": ["@ianvs/prettier-plugin-sort-imports"]
}
19 changes: 7 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,32 @@
# [24.0.0](https://github.com/peerigon/clockodo/compare/v23.5.1...v24.0.0) (2025-02-07)


### chore

* Update dev dependencies ([#157](https://github.com/peerigon/clockodo/issues/157)) ([8254189](https://github.com/peerigon/clockodo/commit/8254189c50d4bc9c7a964b89bd558c424610594b))

- Update dev dependencies ([#157](https://github.com/peerigon/clockodo/issues/157)) ([8254189](https://github.com/peerigon/clockodo/commit/8254189c50d4bc9c7a964b89bd558c424610594b))

### BREAKING CHANGES

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

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


### Bug Fixes

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

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


### Features

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

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


### Features

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

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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ For any questions about the different properties please consult the official [Cl
Some constants are also available for import:

```js
import { EntryType, Billability, AbsenceStatus, AbsenceType } from "clockodo";
import { AbsenceStatus, AbsenceType, Billability, EntryType } from "clockodo";

console.log(EntryType.Time); // 1
console.log(EntryType.LumpsumValue); // 2
Expand Down
16 changes: 0 additions & 16 deletions jest.config.ts

This file was deleted.

Loading

0 comments on commit 859e894

Please sign in to comment.