firstly 0.1.0 → 0.1.2

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # firstly
2
2
 
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`e4d8b67`](https://github.com/jycouet/firstly/commit/e4d8b673787beee6d28e36aac1a404f49d690fb8)
8
+ Thanks [@jycouet](https://github.com/jycouet)! - export interface for `changeLog` Module
9
+
10
+ ## 0.1.1
11
+
12
+ ### Patch Changes
13
+
14
+ - [`847af7a`](https://github.com/jycouet/firstly/commit/847af7a6d33224884032c80f63cb489106e6d40a)
15
+ Thanks [@jycouet](https://github.com/jycouet)! - export mail & cron roles from client bundle
16
+
3
17
  ## 0.1.0
4
18
 
5
19
  ### Minor Changes
@@ -1,4 +1,10 @@
1
1
  import { Module } from 'remult/server';
2
+ import type { ColumnDeciderArgs } from '..';
3
+ declare module 'remult' {
4
+ interface EntityOptions<entityType> {
5
+ changeLog?: false | ColumnDeciderArgs<entityType>;
6
+ }
7
+ }
2
8
  /**
3
9
  * We suggest you to create your own `@APP_Entity` decorator and use it instead of `@Entity`.
4
10
  * Like this you opt-in to the change log feature Entity by Entity.
@@ -1,3 +1,4 @@
1
1
  import { Log } from '@kitql/helpers';
2
+ export { Roles_Cron } from './Roles_Cron';
2
3
  export declare const key = "cron";
3
4
  export declare const log: Log;
package/esm/cron/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  import { Log } from '@kitql/helpers';
2
+ export { Roles_Cron } from './Roles_Cron';
2
3
  export const key = 'cron';
3
4
  export const log = new Log(key);
@@ -1,5 +1,6 @@
1
1
  import { Log } from '@kitql/helpers';
2
2
  import { Mail } from './Mail';
3
+ export { Roles_Mail } from './Roles_Mail';
3
4
  export declare const key = "mail";
4
5
  export declare const log: Log;
5
6
  export declare const mailEntities: {
package/esm/mail/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Log } from '@kitql/helpers';
2
2
  import { Mail } from './Mail';
3
+ export { Roles_Mail } from './Roles_Mail';
3
4
  export const key = 'mail';
4
5
  export const log = new Log(key);
5
6
  export const mailEntities = {
@@ -7,6 +7,11 @@ import type SMTPTransport from 'nodemailer/lib/smtp-transport';
7
7
  import type StreamTransport from 'nodemailer/lib/stream-transport';
8
8
  import { Module } from 'remult/server';
9
9
  import { type MailStyle } from './formatMailHelper';
10
+ declare module 'remult' {
11
+ interface RemultContext {
12
+ sendMail?: SendMail;
13
+ }
14
+ }
10
15
  export type TransportTypes = SMTPPool | SMTPPool.Options | SendmailTransport | SendmailTransport.Options | StreamTransport | StreamTransport.Options | JSONTransport | JSONTransport.Options | SESTransport | SESTransport.Options | SMTPTransport | SMTPTransport.Options | string;
11
16
  export type DefaultOptions = typeNodemailer.SendMailOptions;
12
17
  type GlobalEasyOptions = {
@@ -25,11 +30,6 @@ export type MailOptions = GlobalEasyOptions & {
25
30
  };
26
31
  };
27
32
  declare let transporter: ReturnType<typeof typeNodemailer.createTransport>;
28
- declare module 'remult' {
29
- interface RemultContext {
30
- sendMail?: SendMail;
31
- }
32
- }
33
33
  export type SendMail = typeof sendMail;
34
34
  export declare const sendMail: (
35
35
  /** usefull for logs, it has NO impact on the mail itself */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firstly",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "Firstly, an opinionated Remult setup!",
6
6
  "funding": "https://github.com/sponsors/jycouet",