@backstage/plugin-catalog-backend-module-ldap 0.0.0-nightly-20220309022441 → 0.0.0-nightly-20220310022859

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 +43 -4
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @backstage/plugin-catalog-backend-module-ldap
2
2
 
3
- ## 0.0.0-nightly-20220309022441
3
+ ## 0.0.0-nightly-20220310022859
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -35,9 +35,48 @@
35
35
 
36
36
  - f751e84572: Ignore search referrals instead of throwing an error.
37
37
  - Updated dependencies
38
- - @backstage/backend-tasks@0.0.0-nightly-20220309022441
39
- - @backstage/plugin-catalog-backend@0.0.0-nightly-20220309022441
40
- - @backstage/catalog-model@0.0.0-nightly-20220309022441
38
+ - @backstage/backend-tasks@0.0.0-nightly-20220310022859
39
+ - @backstage/plugin-catalog-backend@0.0.0-nightly-20220310022859
40
+ - @backstage/catalog-model@0.0.0-nightly-20220310022859
41
+
42
+ ## 0.4.0-next.0
43
+
44
+ ### Minor Changes
45
+
46
+ - 9461f73643: **BREAKING**: Added a `schedule` field to `LdapOrgEntityProvider.fromConfig`, which is required. If you want to retain the old behavior of scheduling the provider manually, you can set it to the string value `'manual'`. But you may want to leverage the ability to instead pass in the recurring task schedule information directly. This will allow you to simplify your backend setup code to not need an intermediate variable and separate scheduling code at the bottom.
47
+
48
+ All things said, a typical setup might now look as follows:
49
+
50
+ ```diff
51
+ // packages/backend/src/plugins/catalog.ts
52
+ +import { Duration } from 'luxon';
53
+ +import { LdapOrgEntityProvider } from '@backstage/plugin-catalog-backend-module-ldap';
54
+ export default async function createPlugin(
55
+ env: PluginEnvironment,
56
+ ): Promise<Router> {
57
+ const builder = await CatalogBuilder.create(env);
58
+ + // The target parameter below needs to match the ldap.providers.target
59
+ + // value specified in your app-config.
60
+ + builder.addEntityProvider(
61
+ + LdapOrgEntityProvider.fromConfig(env.config, {
62
+ + id: 'our-ldap-master',
63
+ + target: 'ldaps://ds.example.net',
64
+ + logger: env.logger,
65
+ + schedule: env.scheduler.createScheduledTaskRunner({
66
+ + frequency: Duration.fromObject({ minutes: 60 }),
67
+ + timeout: Duration.fromObject({ minutes: 15 }),
68
+ + }),
69
+ + }),
70
+ + );
71
+ ```
72
+
73
+ ### Patch Changes
74
+
75
+ - f751e84572: Ignore search referrals instead of throwing an error.
76
+ - Updated dependencies
77
+ - @backstage/backend-tasks@0.2.0-next.0
78
+ - @backstage/plugin-catalog-backend@0.24.0-next.0
79
+ - @backstage/catalog-model@0.13.0-next.0
41
80
 
42
81
  ## 0.3.15
43
82
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-ldap",
3
3
  "description": "A Backstage catalog backend module that helps integrate towards LDAP",
4
- "version": "0.0.0-nightly-20220309022441",
4
+ "version": "0.0.0-nightly-20220310022859",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -33,11 +33,11 @@
33
33
  "start": "backstage-cli package start"
34
34
  },
35
35
  "dependencies": {
36
- "@backstage/backend-tasks": "^0.0.0-nightly-20220309022441",
37
- "@backstage/catalog-model": "^0.0.0-nightly-20220309022441",
36
+ "@backstage/backend-tasks": "^0.0.0-nightly-20220310022859",
37
+ "@backstage/catalog-model": "^0.0.0-nightly-20220310022859",
38
38
  "@backstage/config": "^0.1.15",
39
39
  "@backstage/errors": "^0.2.2",
40
- "@backstage/plugin-catalog-backend": "^0.0.0-nightly-20220309022441",
40
+ "@backstage/plugin-catalog-backend": "^0.0.0-nightly-20220310022859",
41
41
  "@backstage/types": "^0.1.3",
42
42
  "@types/ldapjs": "^2.2.0",
43
43
  "ldapjs": "^2.2.0",
@@ -46,7 +46,7 @@
46
46
  "winston": "^3.2.1"
47
47
  },
48
48
  "devDependencies": {
49
- "@backstage/cli": "^0.0.0-nightly-20220309022441",
49
+ "@backstage/cli": "^0.0.0-nightly-20220310022859",
50
50
  "@types/lodash": "^4.14.151"
51
51
  },
52
52
  "files": [