@proconnect-gouv/proconnect.identite.runtime 0.6.1 → 0.7.0

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,18 @@
1
1
  # @proconnect-gouv/proconnect.identite.runtime
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2459](https://github.com/proconnect-gouv/proconnect-identite/pull/2459) [`67f0314`](https://github.com/proconnect-gouv/proconnect-identite/commit/67f0314b11fbea53509e453f1d7fd500ff276827) Thanks [@douglasduteil](https://github.com/douglasduteil)! - `activityContextSchemas` ne décrit plus l’action `domain.removed` : aucune commande du runtime ne l’écrit. Une application qui journalise `domain.removed` la déclare dans ses propres `OwnContexts`, et `record()` l’accepte à nouveau. Changement cassant pour le typage : `ActivityContexts["domain.removed"]` n’existe plus.
8
+
9
+ ## 0.6.2
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [[`1b8f27b`](https://github.com/proconnect-gouv/proconnect-identite/commit/1b8f27b1ebba511ae4fda064460e7f9d38d5fa88), [`34cded0`](https://github.com/proconnect-gouv/proconnect-identite/commit/34cded02cb672ca85f29718379f2a7dd54175fc3), [`d60638e`](https://github.com/proconnect-gouv/proconnect-identite/commit/d60638e523dfd4018aa7b33367001c9181bad961), [`3e728cb`](https://github.com/proconnect-gouv/proconnect-identite/commit/3e728cb5acd3254e3fef5665f32ac57dd45e2291), [`678828a`](https://github.com/proconnect-gouv/proconnect-identite/commit/678828a72299c2b41f421aa048981c9fd6b73ad3), [`8577ae3`](https://github.com/proconnect-gouv/proconnect-identite/commit/8577ae3f1fe900d0a242e04d97755a7b4c96fc7d), [`83f822e`](https://github.com/proconnect-gouv/proconnect-identite/commit/83f822e5ff3f5b82071491b4baf16e36aab2cf81)]:
14
+ - @proconnect-gouv/proconnect.identite@17.0.0
15
+
3
16
  ## 0.6.1
4
17
 
5
18
  ### Patch Changes
@@ -143,15 +143,6 @@ export declare const activityContextSchemas: {
143
143
  replaced_verification_types: import("zod").ZodArray<import("zod").ZodString>;
144
144
  }, import("zod/v4/core").$strip>;
145
145
  }, import("zod/v4/core").$strip>;
146
- "domain.removed": import("zod").ZodObject<{
147
- inputs: import("zod").ZodObject<{
148
- domain: import("zod").ZodString;
149
- }, import("zod/v4/core").$strip>;
150
- outcome: import("zod").ZodObject<{
151
- email_domain_id: import("zod").ZodNumber;
152
- previous_verification_type: import("zod").ZodString;
153
- }, import("zod/v4/core").$strip>;
154
- }, import("zod/v4/core").$strip>;
155
146
  "domain.verified": import("zod").ZodObject<{
156
147
  inputs: import("zod").ZodObject<{
157
148
  domain: import("zod").ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"activity-context-schemas.d.ts","sourceRoot":"","sources":["../../src/activity/activity-context-schemas.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI7C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"activity-context-schemas.d.ts","sourceRoot":"","sources":["../../src/activity/activity-context-schemas.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAI7C,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -13,15 +13,6 @@ export declare const domainActivities: {
13
13
  replaced_verification_types: z.ZodArray<z.ZodString>;
14
14
  }, z.core.$strip>;
15
15
  }, z.core.$strip>;
16
- "domain.removed": z.ZodObject<{
17
- inputs: z.ZodObject<{
18
- domain: z.ZodString;
19
- }, z.core.$strip>;
20
- outcome: z.ZodObject<{
21
- email_domain_id: z.ZodNumber;
22
- previous_verification_type: z.ZodString;
23
- }, z.core.$strip>;
24
- }, z.core.$strip>;
25
16
  "domain.verified": z.ZodObject<{
26
17
  inputs: z.ZodObject<{
27
18
  domain: z.ZodString;
@@ -1 +1 @@
1
- {"version":3,"file":"activities.d.ts","sourceRoot":"","sources":["../../src/domains/activities.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8B5B,CAAC"}
1
+ {"version":3,"file":"activities.d.ts","sourceRoot":"","sources":["../../src/domains/activities.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAIzB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqB5B,CAAC"}
@@ -13,15 +13,6 @@ export const domainActivities = {
13
13
  replaced_verification_types: z.array(z.string()),
14
14
  }),
15
15
  }),
16
- "domain.removed": z.object({
17
- inputs: z.object({
18
- domain: z.string(),
19
- }),
20
- outcome: z.object({
21
- email_domain_id: z.number(),
22
- previous_verification_type: z.string(),
23
- }),
24
- }),
25
16
  "domain.verified": z.object({
26
17
  inputs: z.object({
27
18
  domain: z.string(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proconnect-gouv/proconnect.identite.runtime",
3
- "version": "0.6.1",
3
+ "version": "0.7.0",
4
4
  "homepage": "https://github.com/proconnect-gouv/proconnect-identite/tree/main/packages/runtime#readme",
5
5
  "bugs": "https://github.com/proconnect-gouv/proconnect-identite/issues",
6
6
  "repository": {
@@ -32,12 +32,12 @@
32
32
  "test": "tsc --noEmit && tsx --test --test-reporter=spec"
33
33
  },
34
34
  "dependencies": {
35
- "@proconnect-gouv/proconnect.identite": "^16.0.0",
35
+ "@proconnect-gouv/proconnect.identite": "^17.0.0",
36
36
  "@proconnect-gouv/proconnect.identite.database": "^3.0.0",
37
37
  "zod": "^4.6.7"
38
38
  },
39
39
  "devDependencies": {
40
- "@electric-sql/pglite": "^0.3.12",
40
+ "@electric-sql/pglite": "^0.5.16",
41
41
  "@proconnect-gouv/proconnect.devtools.typescript": "1.0.0",
42
42
  "@types/node": "^22.18.6",
43
43
  "drizzle-orm": "^0.45.4",
@@ -19,15 +19,6 @@ export const domainActivities = {
19
19
  replaced_verification_types: z.array(z.string()),
20
20
  }),
21
21
  }),
22
- "domain.removed": z.object({
23
- inputs: z.object({
24
- domain: z.string(),
25
- }),
26
- outcome: z.object({
27
- email_domain_id: z.number(),
28
- previous_verification_type: z.string(),
29
- }),
30
- }),
31
22
  "domain.verified": z.object({
32
23
  inputs: z.object({
33
24
  domain: z.string(),
package/testing/index.ts CHANGED
@@ -6,11 +6,13 @@ import * as schema from "@proconnect-gouv/proconnect.identite.database/drizzle";
6
6
  import { migrate } from "@proconnect-gouv/proconnect.identite.database/pglite/migrator";
7
7
  import { sql } from "drizzle-orm";
8
8
  import { drizzle } from "drizzle-orm/pglite";
9
+ import { after } from "node:test";
9
10
 
10
11
  //
11
12
 
12
13
  export async function createTestDatabase() {
13
14
  const pg = new PGlite();
15
+ after(() => pg.close());
14
16
  await migrate(pg);
15
17
  const db = drizzle(pg, { schema });
16
18
  await db.execute(sql`SET search_path TO public`);