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