@paris-ias/trees 2.0.8 → 2.0.9

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.
@@ -14,9 +14,6 @@ query getAction($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
14
14
  name
15
15
  slots
16
16
  video
17
- slug {
18
- fr
19
- en
20
- }
17
+ slug
21
18
  }
22
19
  }
@@ -29,9 +29,6 @@ query getAffiliation(
29
29
  name
30
30
  ror
31
31
  url
32
- slug {
33
- fr
34
- en
35
- }
32
+ slug
36
33
  }
37
34
  }
@@ -25,9 +25,6 @@ query getApp($appId: ID = "iea", $lang: String = "en") {
25
25
  updatedAt
26
26
  }
27
27
  url
28
- slug {
29
- fr
30
- en
31
- }
28
+ slug
32
29
  }
33
30
  }
@@ -25,10 +25,7 @@ query getEvent($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
25
25
  url
26
26
  }
27
27
  start
28
- slug {
29
- fr
30
- en
31
- }
28
+ slug
32
29
  slots {
33
30
  email
34
31
  firstname
@@ -9,10 +9,7 @@ query getFellowship(
9
9
  fellowshipStart
10
10
  contact
11
11
  url
12
- slug {
13
- fr
14
- en
15
- }
12
+ slug
16
13
  applicationStop
17
14
  fellowshipStop
18
15
  publicationDate
@@ -9,9 +9,6 @@ query getDiscipline(
9
9
  icon
10
10
  name
11
11
  updatedAt
12
- slug {
13
- fr
14
- en
15
- }
12
+ slug
16
13
  }
17
14
  }
@@ -5,9 +5,6 @@ query getTag($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
5
5
  icon
6
6
  name
7
7
  updatedAt
8
- slug {
9
- fr
10
- en
11
- }
8
+ slug
12
9
  }
13
10
  }
@@ -3,7 +3,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
3
3
  people {
4
4
  items {
5
5
  firstname
6
- id
7
6
  image {
8
7
  alt
9
8
  backgroundColor
@@ -21,7 +20,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
21
20
  projects {
22
21
  items {
23
22
  date
24
- id
25
23
  featured
26
24
  name
27
25
  image {
@@ -54,7 +52,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
54
52
  license
55
53
  url
56
54
  }
57
- id
58
55
  date
59
56
  slug
60
57
  }
@@ -94,7 +91,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
94
91
  fellowshipStart
95
92
  fellowshipType
96
93
  fellowshipStop
97
- id
98
94
  image {
99
95
  alt
100
96
  backgroundColor
@@ -115,7 +111,6 @@ query search($appId: ID = "", $search: String = "", $lang: String = "en") {
115
111
  category
116
112
  date
117
113
  featured
118
- id
119
114
  image {
120
115
  alt
121
116
  backgroundColor
@@ -5,10 +5,7 @@ query getNews($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
5
5
  date
6
6
  description
7
7
  featured
8
- slug {
9
- fr
10
- en
11
- }
8
+ slug
12
9
  files {
13
10
  createdAt
14
11
  file
@@ -32,10 +32,7 @@ query GetUser($appId: ID = "iea", $itemId: ID = "", $lang: String = "") {
32
32
  settings {
33
33
  lang
34
34
  }
35
- slug {
36
- en
37
- fr
38
- }
35
+ slug
39
36
  status
40
37
  }
41
38
  }
@@ -4,10 +4,7 @@ query getProject($appId: ID = "iea", $itemId: ID = "", $lang: String = "en") {
4
4
  date
5
5
  description
6
6
  featured
7
- slug {
8
- fr
9
- en
10
- }
7
+ slug
11
8
  files {
12
9
  file
13
10
  createdAt
@@ -161,9 +161,6 @@ query getPublication(
161
161
  url
162
162
  }
163
163
  }
164
- slug {
165
- fr
166
- en
167
- }
164
+ slug
168
165
  }
169
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paris-ias/trees",
3
- "version": "2.0.8",
3
+ "version": "2.0.9",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/readme.md CHANGED
@@ -421,20 +421,20 @@ All generated tree exports are **deeply frozen** using `Object.freeze()`, ensuri
421
421
  import { formPeople } from "@paris-ias/trees"
422
422
 
423
423
  // ❌ All mutations are prevented
424
- formPeople._defaults.firstname = "hacked" // Fails silently (non-strict)
425
- formPeople.schema.firstname.label = "modified" // TypeError in strict mode
426
- formPeople.newProperty = "value" // Cannot extend frozen objects
427
- delete formPeople._defaults // Cannot delete properties
424
+ formPeople._defaults.firstname = "hacked" // Fails silently (non-strict)
425
+ formPeople.schema.firstname.label = "modified" // TypeError in strict mode
426
+ formPeople.newProperty = "value" // Cannot extend frozen objects
427
+ delete formPeople._defaults // Cannot delete properties
428
428
 
429
429
  // ✅ Safe to share across your application
430
430
  const config1 = formPeople
431
431
  const config2 = formPeople // Same reference, guaranteed unchanged
432
432
 
433
433
  // ✅ Objects are frozen at all levels
434
- Object.isFrozen(formPeople) // true
435
- Object.isFrozen(formPeople._defaults) // true
436
- Object.isFrozen(formPeople.schema) // true
437
- Object.isFrozen(formPeople.schema.firstname) // true
434
+ Object.isFrozen(formPeople) // true
435
+ Object.isFrozen(formPeople._defaults) // true
436
+ Object.isFrozen(formPeople.schema) // true
437
+ Object.isFrozen(formPeople.schema.firstname) // true
438
438
  ```
439
439
 
440
440
  ### Full TypeScript Support
@@ -446,7 +446,7 @@ Complete type definitions are automatically generated for all exports:
446
446
  import { formPeople, listPeople, type Form, type List } from "@paris-ias/trees"
447
447
 
448
448
  // IDE autocomplete and type checking work perfectly
449
- const firstname = formPeople.schema.firstname // Fully typed
449
+ const firstname = formPeople.schema.firstname // Fully typed
450
450
  const defaultName = formPeople._defaults.firstname // Type: string | { en: string, fr: string }
451
451
 
452
452
  // Type-safe development