@backstage/plugin-catalog-backend-module-ldap 0.12.0-next.1 → 0.12.1-next.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +94 -0
  2. package/package.json +7 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,99 @@
1
1
  # @backstage/plugin-catalog-backend-module-ldap
2
2
 
3
+ ## 0.12.1-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@1.5.1-next.0
9
+ - @backstage/plugin-catalog-node@1.20.1-next.0
10
+ - @backstage/config@1.3.6
11
+ - @backstage/catalog-model@1.7.6
12
+ - @backstage/errors@1.2.7
13
+ - @backstage/types@1.2.2
14
+ - @backstage/plugin-catalog-common@1.1.7
15
+
16
+ ## 0.12.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 980f240: Moved from `ldapjs` dependency to `ldapts`
21
+
22
+ ### Breaking Changes
23
+
24
+ **Type Migration**
25
+
26
+ Custom transformers must now accept `Entry` from `ldapts` instead of `SearchEntry`
27
+ from `ldapjs` The Entry type provides direct property access without need for
28
+ `.object()` or `.raw()` methods.
29
+
30
+ If you have custom user or group transformers, update the signature from:
31
+
32
+ ```typescript
33
+ (vendor: LdapVendor, config: UserConfig, entry: SearchEntry) =>
34
+ Promise<UserEntity | undefined>;
35
+ ```
36
+
37
+ to
38
+
39
+ ```typescript
40
+ (vendor: LdapVendor, config: UserConfig, entry: Entry) =>
41
+ Promise<UserEntity | undefined>;
42
+ ```
43
+
44
+ **Search Options**
45
+
46
+ Updated LDAP search configuration `typesOnly: false` → `attributeValues: true`
47
+ This inverts the boolean logic: `ldapjs` used negative form while `ldapts` uses
48
+ positive form. Both achieve the same result: retrieving attribute values rather
49
+ than just attribute names.
50
+
51
+ Update LDAP search options in configuration from
52
+
53
+ ```yaml
54
+ options:
55
+ typesOnly: false
56
+ ```
57
+
58
+ to
59
+
60
+ ```yaml
61
+ options:
62
+ attributeValues: true
63
+ ```
64
+
65
+ **API Changes** Removed `LdapClient.searchStreaming()` method. Users should
66
+ migrate to `LdapClient.search()` instead
67
+
68
+ If you're using `searchStreaming` directly:
69
+
70
+ ```typescript
71
+ // Before
72
+ await client.searchStreaming(dn, options, async entry => {
73
+ // process each entry
74
+ });
75
+
76
+ // After
77
+ const entries = await client.search(dn, options);
78
+ for (const entry of entries) {
79
+ // process each entry
80
+ }
81
+ ```
82
+
83
+ > **_NOTE:_**: Both methods have always loaded all entries into memory. The
84
+ > `searchStreaming` method was only needed internally to handle `ldapjs`'s
85
+ > event-based API.
86
+
87
+ ### Patch Changes
88
+
89
+ - 05f60e1: Refactored constructor parameter properties to explicit property declarations for compatibility with TypeScript's `erasableSyntaxOnly` setting. This internal refactoring maintains all existing functionality while ensuring TypeScript compilation compatibility.
90
+ - Updated dependencies
91
+ - @backstage/plugin-catalog-node@1.20.0
92
+ - @backstage/backend-plugin-api@1.5.0
93
+ - @backstage/config@1.3.6
94
+ - @backstage/catalog-model@1.7.6
95
+ - @backstage/plugin-catalog-common@1.1.7
96
+
3
97
  ## 0.12.0-next.1
4
98
 
5
99
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-ldap",
3
- "version": "0.12.0-next.1",
3
+ "version": "0.12.1-next.0",
4
4
  "description": "A Backstage catalog backend module that helps integrate towards LDAP",
5
5
  "backstage": {
6
6
  "role": "backend-plugin-module",
@@ -41,19 +41,19 @@
41
41
  "test": "backstage-cli package test"
42
42
  },
43
43
  "dependencies": {
44
- "@backstage/backend-plugin-api": "1.5.0-next.1",
45
- "@backstage/catalog-model": "1.7.6-next.0",
46
- "@backstage/config": "1.3.6-next.0",
44
+ "@backstage/backend-plugin-api": "1.5.1-next.0",
45
+ "@backstage/catalog-model": "1.7.6",
46
+ "@backstage/config": "1.3.6",
47
47
  "@backstage/errors": "1.2.7",
48
- "@backstage/plugin-catalog-common": "1.1.7-next.0",
49
- "@backstage/plugin-catalog-node": "1.20.0-next.1",
48
+ "@backstage/plugin-catalog-common": "1.1.7",
49
+ "@backstage/plugin-catalog-node": "1.20.1-next.0",
50
50
  "@backstage/types": "1.2.2",
51
51
  "ldapts": "^8.0.6",
52
52
  "lodash": "^4.17.21",
53
53
  "uuid": "^11.0.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@backstage/cli": "0.34.5-next.1",
56
+ "@backstage/cli": "0.34.6-next.0",
57
57
  "@types/lodash": "^4.14.151"
58
58
  },
59
59
  "configSchema": "config.d.ts",