firstly 0.4.3 → 0.4.5
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/CHANGELOG.md +16 -0
- package/esm/carbone/index.d.ts +3 -1
- package/esm/carbone/index.js +3 -1
- package/esm/changeLog/index.d.ts +2 -2
- package/esm/changeLog/index.js +2 -2
- package/esm/core/FF_Entity.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# firstly
|
|
2
2
|
|
|
3
|
+
## 0.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#270](https://github.com/jycouet/firstly/pull/270) [`ba5eec6`](https://github.com/jycouet/firstly/commit/ba5eec6b0099127c9b5424dd3fb44184b4c70b28) Thanks [@jycouet](https://github.com/jycouet)! - fix(core): add explicit return type to `FF_Entity` so its `.d.ts` is emitted.
|
|
8
|
+
|
|
9
|
+
The inferred return type referenced a non-portable remult internal, so svelte-package silently skipped generating `FF_Entity.d.ts`. Consumers using the published package got `FF_Entity` typed as `any`, which made every entity option callback (`saving`, `displayValue`, ...) implicitly `any`.
|
|
10
|
+
|
|
11
|
+
## 0.4.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#268](https://github.com/jycouet/firstly/pull/268) [`deb2aa3`](https://github.com/jycouet/firstly/commit/deb2aa3b2ad48e346e902812a4b22cba2e0c74ce) Thanks [@jycouet](https://github.com/jycouet)! - fix(carbone): export `Roles_Carbon` under its real name (was wrongly aliased to `Roles_Mail`, colliding with `firstly/mail`).
|
|
16
|
+
|
|
17
|
+
Also expose `CarboneController` and the carbone entity classes from `firstly/carbone`, and `changeLogEntities` from `firstly/changeLog`, so consumers no longer need deep file imports.
|
|
18
|
+
|
|
3
19
|
## 0.4.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/esm/carbone/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Log } from '@kitql/helpers';
|
|
2
2
|
import { CarboneLog, CarboneTemplate } from './carboneEntities';
|
|
3
|
-
export { Roles_Carbon
|
|
3
|
+
export { Roles_Carbon } from './Roles_Carbon';
|
|
4
|
+
export { CarboneController } from './CarboneController';
|
|
5
|
+
export { CarbonLogAction, CarboneTemplate, CarboneLog } from './carboneEntities';
|
|
4
6
|
export declare const key = "carbone";
|
|
5
7
|
export declare const log: Log;
|
|
6
8
|
export declare const carbonEntities: {
|
package/esm/carbone/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Log } from '@kitql/helpers';
|
|
2
2
|
import { CarboneLog, CarboneTemplate } from './carboneEntities';
|
|
3
|
-
export { Roles_Carbon
|
|
3
|
+
export { Roles_Carbon } from './Roles_Carbon';
|
|
4
|
+
export { CarboneController } from './CarboneController';
|
|
5
|
+
export { CarbonLogAction, CarboneTemplate, CarboneLog } from './carboneEntities';
|
|
4
6
|
export const key = 'carbone';
|
|
5
7
|
export const log = new Log(key);
|
|
6
8
|
export const carbonEntities = {
|
package/esm/changeLog/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type EntityOptions, type FieldRef, type FieldsRef, type LifecycleEvent } from 'remult';
|
|
2
|
-
import { ChangeLog, Roles_ChangeLog, type change } from './changeLogEntities';
|
|
3
|
-
export { ChangeLog, Roles_ChangeLog };
|
|
2
|
+
import { ChangeLog, changeLogEntities, Roles_ChangeLog, type change } from './changeLogEntities';
|
|
3
|
+
export { ChangeLog, Roles_ChangeLog, changeLogEntities };
|
|
4
4
|
export type { change };
|
|
5
5
|
export interface changeEvent {
|
|
6
6
|
date: Date;
|
package/esm/changeLog/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getEntityRef, IdEntity, isBackend, remult, repo, } from 'remult';
|
|
2
|
-
import { ChangeLog, Roles_ChangeLog } from './changeLogEntities';
|
|
3
|
-
export { ChangeLog, Roles_ChangeLog };
|
|
2
|
+
import { ChangeLog, changeLogEntities, Roles_ChangeLog } from './changeLogEntities';
|
|
3
|
+
export { ChangeLog, Roles_ChangeLog, changeLogEntities };
|
|
4
4
|
export async function recordSaved(entity, e, options) {
|
|
5
5
|
if (isBackend()) {
|
|
6
6
|
const changes = [];
|