@adobe/helix-onedrive-support 12.0.29 → 12.1.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.
@@ -12,7 +12,7 @@ jobs:
12
12
  steps:
13
13
  - uses: actions/checkout@v5
14
14
  - name: Use Node.js 20.x
15
- uses: actions/setup-node@v4
15
+ uses: actions/setup-node@v5
16
16
  with:
17
17
  node-version: '22.x'
18
18
  - run: npm ci
@@ -35,7 +35,7 @@ jobs:
35
35
  steps:
36
36
  - uses: actions/checkout@v5
37
37
  - name: Use Node.js 20.x
38
- uses: actions/setup-node@v4
38
+ uses: actions/setup-node@v5
39
39
  with:
40
40
  node-version: '22.x'
41
41
  - run: npm ci
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [12.1.0](https://github.com/adobe/helix-onedrive-support/compare/v12.0.30...v12.1.0) (2025-10-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * introduce OneDrive.create(opts) ([#687](https://github.com/adobe/helix-onedrive-support/issues/687)) ([21ea1c3](https://github.com/adobe/helix-onedrive-support/commit/21ea1c3a3f133b5d23480c8804d9af7182114c7e))
7
+
8
+ ## [12.0.30](https://github.com/adobe/helix-onedrive-support/compare/v12.0.29...v12.0.30) (2025-10-06)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **deps:** update external fixes ([#685](https://github.com/adobe/helix-onedrive-support/issues/685)) ([e9b4047](https://github.com/adobe/helix-onedrive-support/commit/e9b40470f571b3d2aff9dff924c2850c578765d4))
14
+
1
15
  ## [12.0.29](https://github.com/adobe/helix-onedrive-support/compare/v12.0.28...v12.0.29) (2025-09-01)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/helix-onedrive-support",
3
- "version": "12.0.29",
3
+ "version": "12.1.0",
4
4
  "description": "Helix OneDrive Support",
5
5
  "main": "src/index.js",
6
6
  "exports": {
@@ -30,32 +30,32 @@
30
30
  "@adobe/fetch": "^4.1.10",
31
31
  "@adobe/helix-shared-string": "^2.1.0",
32
32
  "@adobe/helix-shared-tokencache": "^1.4.19",
33
- "@azure/msal-node": "3.7.3",
33
+ "@azure/msal-node": "3.7.4",
34
34
  "jose": "6.1.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@adobe/eslint-config-helix": "3.0.9",
38
- "@aws-sdk/client-s3": "3.879.0",
39
- "@eslint/config-helpers": "0.3.1",
37
+ "@adobe/eslint-config-helix": "3.0.11",
38
+ "@aws-sdk/client-s3": "3.894.0",
39
+ "@eslint/config-helpers": "0.4.0",
40
40
  "@semantic-release/changelog": "6.0.3",
41
41
  "@semantic-release/git": "10.0.1",
42
42
  "ajv": "8.17.1",
43
43
  "c8": "10.1.3",
44
- "chalk-template": "1.1.0",
45
- "dotenv": "17.2.1",
44
+ "chalk-template": "1.1.2",
45
+ "dotenv": "17.2.2",
46
46
  "eslint": "9.4.0",
47
47
  "husky": "9.1.7",
48
48
  "install": "0.13.0",
49
49
  "jsdoc-to-markdown": "9.1.2",
50
50
  "jsdoc-tsimport-plugin": "1.0.5",
51
51
  "junit-report-builder": "5.1.1",
52
- "lint-staged": "16.1.6",
52
+ "lint-staged": "16.2.0",
53
53
  "mocha": "11.7.2",
54
54
  "mocha-multi-reporters": "1.5.1",
55
55
  "mocha-suppress-logs": "0.6.0",
56
56
  "nock": "13.5.6",
57
- "npm": "11.5.2",
58
- "semantic-release": "24.2.7"
57
+ "npm": "11.6.0",
58
+ "semantic-release": "24.2.9"
59
59
  },
60
60
  "lint-staged": {
61
61
  "*.js": "eslint"
package/src/OneDrive.d.ts CHANGED
@@ -117,6 +117,12 @@ export declare class OneDrive extends EventEmitter {
117
117
  */
118
118
  static driveItemFromURL(url: URL): DriveItem;
119
119
 
120
+ /**
121
+ * Creates a new OneDrive helper using a static method. Facilitates creating a
122
+ * sinon stub to change the instance type returned.
123
+ */
124
+ static create(opts: OneDriveOptions): OneDrive;
125
+
120
126
  /**
121
127
  * Creates a new OneDrive helper.
122
128
  * @param {OneDriveOptions} opts Options.
package/src/OneDrive.js CHANGED
@@ -84,6 +84,10 @@ export class OneDrive {
84
84
  };
85
85
  }
86
86
 
87
+ static create(opts) {
88
+ return new OneDrive(opts);
89
+ }
90
+
87
91
  /**
88
92
  * @param {OneDriveOptions} opts Options
89
93
  */