Skip to content

Commit 8f39291

Browse files
committed
Conflict resolved
2 parents 73e964b + b0bf071 commit 8f39291

6 files changed

Lines changed: 2069 additions & 1588 deletions

File tree

CHANGELOG.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,74 @@
1+
## Release [v8.0.5](https://github.com/sourcefuse/loopback4-audit-log/compare/v8.0.4..v8.0.5) January 7, 2025
2+
Welcome to the January 7, 2025 release of loopback4-audit-log. There are many updates in this version that we hope you will like, the key highlights include:
3+
4+
- [Dynamic values to pass to extra fields.](https://github.com/sourcefuse/loopback4-audit-log/issues/141) :- [fix(mixin): pass the extra values via options ](https://github.com/sourcefuse/loopback4-audit-log/commit/6c5f6369f09abb2a847d70d7bcea895c12029b81) was commited on January 7, 2025 by [yeshamavani](mailto:83634146+yeshamavani@users.noreply.github.com)
5+
6+
- * fix(mixin): pass the extra values via options
7+
8+
- dynamically pass extra values to add to audit log model
9+
10+
- GH-141
11+
12+
- * fix(ci-cd): updated the documentation
13+
14+
- update the readme
15+
16+
- GH-141
17+
18+
19+
Clink on the above links to understand the changes in detail.
20+
___
21+
22+
## Release [v8.0.4](https://github.com/sourcefuse/loopback4-audit-log/compare/v8.0.3..v8.0.4) December 20, 2024
23+
Welcome to the December 20, 2024 release of loopback4-audit-log. There are many updates in this version that we hope you will like, the key highlights include:
24+
25+
- [](https://github.com/sourcefuse/loopback4-audit-log/issues/) :- [chore(deps): core version update ](https://github.com/sourcefuse/loopback4-audit-log/commit/67598e5e53cf7dcba87edd0e97ac54d74445c912) was commited on December 20, 2024 by [Sunny Tyagi](mailto:107617248+Tyagi-Sunny@users.noreply.github.com)
26+
27+
- * chore(deps): core version update
28+
29+
- core version update
30+
31+
- gh-0
32+
33+
- * chore(deps): core update
34+
35+
- core update
36+
37+
- 0
38+
39+
- * chore(deps): jsdom update
40+
41+
- jsdom update
42+
43+
- 0
44+
45+
46+
Clink on the above links to understand the changes in detail.
47+
___
48+
49+
## Release [v8.0.3](https://github.com/sourcefuse/loopback4-audit-log/compare/v8.0.2..v8.0.3) December 17, 2024
50+
Welcome to the December 17, 2024 release of loopback4-audit-log. There are many updates in this version that we hope you will like, the key highlights include:
51+
52+
- [](https://github.com/sourcefuse/loopback4-audit-log/issues/) :- [chore(deps): version ](https://github.com/sourcefuse/loopback4-audit-log/commit/005f099e66a34792686a87c516e5174991e81b1c) was commited on December 17, 2024 by [Sunny Tyagi](mailto:107617248+Tyagi-Sunny@users.noreply.github.com)
53+
54+
- version
55+
56+
- gh-0
57+
58+
59+
- [Add sonar and synk badges](https://github.com/sourcefuse/loopback4-audit-log/issues/96) :- [docs(chore): update the sonar and synk badges ](https://github.com/sourcefuse/loopback4-audit-log/commit/3a18394a0f1d7cf9c6a26d95a1e895647b7b4316) was commited on November 8, 2024 by [yeshamavani](mailto:83634146+yeshamavani@users.noreply.github.com)
60+
61+
- update the readme file in docs folder as well
62+
63+
- GH-96
64+
65+
66+
- [](https://github.com/sourcefuse/loopback4-audit-log/issues/) :- [chore(docs): update the readme file ](https://github.com/sourcefuse/loopback4-audit-log/commit/a8db7bfda89ae692162b434bea6218528c5d5e7b) was commited on October 9, 2024 by [Muhammad Aaqil](mailto:aaqilcs102@gmail.com)
67+
68+
69+
Clink on the above links to understand the changes in detail.
70+
___
71+
172
## Release [v8.0.2](https://github.com/sourcefuse/loopback4-audit-log/compare/v8.0.1..v8.0.2) June 4, 2024
273
Welcome to the June 4, 2024 release of loopback4-audit-log. There are many updates in this version that we hope you will like, the key highlights include:
374

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
<a href="https://www.npmjs.com/package/@sourceloop/audit-log">
77
<img src="https://img.shields.io/npm/v/@sourceloop/audit-log.svg" alt="npm version" />
88
</a>
9+
<a href="https://sonarcloud.io/summary/new_code?id=sourcefuse_loopback4-audit-log" target="_blank">
10+
<img alt="Sonar Quality Gate" src="https://img.shields.io/sonar/quality_gate/sourcefuse_loopback4-audit-log?server=https%3A%2F%2Fsonarcloud.io">
11+
</a>
12+
<a href="https://app.snyk.io/org/ashishkaushik/reporting?context[page]=issues-detail&project_target=%255B%2522sourcefuse%252Floopback4-audit-log%2522%255D&project_origin=%255B%2522github%2522%255D&issue_status=%255B%2522Open%2522%255D&issue_by=Severity&table_issues_detail_cols=SCORE%257CCVE%257CCWE%257CPROJECT%257CEXPLOIT%2520MATURITY%257CAUTO%2520FIXABLE%257CINTRODUCED%257CSNYK%2520PRODUCT&v=1">
13+
<img alt="Synk Status" src="https://img.shields.io/badge/SYNK_SECURITY-MONITORED-GREEN">
14+
</a>
915
<a href="https://github.com/sourcefuse/loopback4-audit-log/graphs/contributors" target="_blank">
1016
<img alt="GitHub contributors" src="https://img.shields.io/github/contributors/sourcefuse/loopback4-audit-log">
1117
</a>
@@ -265,7 +271,20 @@ export class GroupRepository extends AuditRepositoryMixin<
265271
}
266272
```
267273

268-
You can pass any extra attributes to save into audit table using the `IAuditMixinOptions` parameter of mixin function.
274+
You can pass any extra attributes to save into audit table using the `IAuditMixinOptions` parameter of mixin function. You can also pass some dynamic values to the extra columns of the audit-log table via the method options.
275+
276+
```ts
277+
const groupAuditOpts: IAuditMixinOptions = {
278+
actionKey: 'Group_Logs',
279+
extra: 'static value',
280+
};
281+
```
282+
283+
```ts
284+
repo.create(data, {extra: 'random calculated value'});
285+
```
286+
287+
So the method options will have a priority over repository mixin options.
269288

270289
Make sure you provide `getCurrentUser` and `getAuditLogRepository` Getter functions in constructor.
271290

docs/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@
66
<a href="https://www.npmjs.com/package/@sourceloop/audit-log">
77
<img src="https://img.shields.io/npm/v/@sourceloop/audit-log.svg" alt="npm version" />
88
</a>
9+
<a href="https://sonarcloud.io/summary/new_code?id=sourcefuse_loopback4-audit-log" target="_blank">
10+
<img alt="Sonar Quality Gate" src="https://img.shields.io/sonar/quality_gate/sourcefuse_loopback4-audit-log?server=https%3A%2F%2Fsonarcloud.io">
11+
</a>
12+
<a href="https://app.snyk.io/org/ashishkaushik/reporting?context[page]=issues-detail&project_target=%255B%2522sourcefuse%252Floopback4-audit-log%2522%255D&project_origin=%255B%2522github%2522%255D&issue_status=%255B%2522Open%2522%255D&issue_by=Severity&table_issues_detail_cols=SCORE%257CCVE%257CCWE%257CPROJECT%257CEXPLOIT%2520MATURITY%257CAUTO%2520FIXABLE%257CINTRODUCED%257CSNYK%2520PRODUCT&v=1">
13+
<img alt="Synk Status" src="https://img.shields.io/badge/SYNK_SECURITY-MONITORED-GREEN">
14+
</a>
915
<a href="https://github.com/sourcefuse/loopback4-audit-log/graphs/contributors" target="_blank">
1016
<img alt="GitHub contributors" src="https://img.shields.io/github/contributors/sourcefuse/loopback4-audit-log">
1117
</a>
@@ -265,7 +271,20 @@ export class GroupRepository extends AuditRepositoryMixin<
265271
}
266272
```
267273

268-
You can pass any extra attributes to save into audit table using the `IAuditMixinOptions` parameter of mixin function.
274+
You can pass any extra attributes to save into audit table using the `IAuditMixinOptions` parameter of mixin function. You can also pass some dynamic values to the extra columns of the audit-log table via the method options.
275+
276+
```ts
277+
const groupAuditOpts: IAuditMixinOptions = {
278+
actionKey: 'Group_Logs',
279+
extra: 'static value',
280+
};
281+
```
282+
283+
```ts
284+
repo.create(data, {extra: 'random calculated value'});
285+
```
286+
287+
So the method options will have a priority over repository mixin options.
269288

270289
Make sure you provide `getCurrentUser` and `getAuditLogRepository` Getter functions in constructor.
271290

0 commit comments

Comments
 (0)