@ui5/builder 4.0.2 → 4.0.4

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.
package/CHANGELOG.md CHANGED
@@ -2,10 +2,19 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
4
4
 
5
- A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v4.0.2...HEAD).
5
+ A list of unreleased changes can be found [here](https://github.com/SAP/ui5-builder/compare/v4.0.4...HEAD).
6
+
7
+ <a name="v4.0.4"></a>
8
+ ## [v4.0.4] - 2024-11-13
9
+ ### Dependency Updates
10
+ - Switch from "rimraf" to native "fs.rm" ([#1098](https://github.com/SAP/ui5-builder/issues/1098)) [`0adf4da`](https://github.com/SAP/ui5-builder/commit/0adf4da0e747f1fb46cf0bf0da7b3e0af8e9bcec)
11
+
12
+
13
+ <a name="v4.0.3"></a>
14
+ ## [v4.0.3] - 2024-08-27
6
15
 
7
16
  <a name="v4.0.2"></a>
8
- ## [v4.0.2] - 2024-08-18
17
+ ## [v4.0.2] - 2024-08-20
9
18
  ### Dependency Updates
10
19
  - Bump cheerio from 1.0.0-rc.12 to 1.0.0 ([#1078](https://github.com/SAP/ui5-builder/issues/1078)) [`d80c79d`](https://github.com/SAP/ui5-builder/commit/d80c79d5578516cf533e649e73d55602afa8b908)
11
20
 
@@ -932,6 +941,8 @@ to load the custom bundle file instead.
932
941
 
933
942
  ### Features
934
943
  - Add ability to configure component preloads and custom bundles [`2241e5f`](https://github.com/SAP/ui5-builder/commit/2241e5ff98fd95f1f80cc74959655ae7a9c660e7)
944
+ [v4.0.4]: https://github.com/SAP/ui5-builder/compare/v4.0.3...v4.0.4
945
+ [v4.0.3]: https://github.com/SAP/ui5-builder/compare/v4.0.2...v4.0.3
935
946
  [v4.0.2]: https://github.com/SAP/ui5-builder/compare/v4.0.1...v4.0.2
936
947
  [v4.0.1]: https://github.com/SAP/ui5-builder/compare/v4.0.0...v4.0.1
937
948
  [v4.0.0]: https://github.com/SAP/ui5-builder/compare/v3.3.0...v4.0.0
@@ -3,10 +3,9 @@ const log = getLogger("builder:tasks:jsdoc:generateJsdoc");
3
3
  import path from "node:path";
4
4
  import os from "node:os";
5
5
  import fs from "graceful-fs";
6
- import {rimraf} from "rimraf";
6
+ import {mkdirp, rmrf} from "../../utils/fs.js";
7
7
  import {promisify} from "node:util";
8
8
  const mkdtemp = promisify(fs.mkdtemp);
9
- const mkdir = promisify(fs.mkdir);
10
9
  import jsdocGenerator from "../../processors/jsdoc/jsdocGenerator.js";
11
10
  import {createAdapter} from "@ui5/fs/resourceFactory";
12
11
 
@@ -104,19 +103,19 @@ const utils = {
104
103
  const tmpDirPath = await utils.createTmpDir(projectName);
105
104
 
106
105
  const sourcePath = path.join(tmpDirPath, "src"); // dir will be created by writing project resources below
107
- await mkdir(sourcePath, {recursive: true});
106
+ await mkdirp(sourcePath);
108
107
  const targetPath = path.join(tmpDirPath, "target"); // dir will be created by jsdoc itself
109
- await mkdir(targetPath, {recursive: true});
108
+ await mkdirp(targetPath);
110
109
 
111
110
  const tmpPath = path.join(tmpDirPath, "tmp"); // dir needs to be created by us
112
- await mkdir(tmpPath, {recursive: true});
111
+ await mkdirp(tmpPath);
113
112
 
114
113
  return {
115
114
  sourcePath,
116
115
  targetPath,
117
116
  tmpPath,
118
117
  cleanup: async () => {
119
- return rimraf(tmpDirPath);
118
+ return rmrf(tmpDirPath);
120
119
  }
121
120
  };
122
121
  },
@@ -132,7 +131,7 @@ const utils = {
132
131
  const sanitizedProjectName = projectName.replace(/[^A-Za-z0-9]/g, "");
133
132
 
134
133
  const tmpRootPath = path.join(os.tmpdir(), "ui5-tooling");
135
- await mkdir(tmpRootPath, {recursive: true});
134
+ await mkdirp(tmpRootPath);
136
135
 
137
136
  // Appending minus sign also because node docs advise to "avoid trailing X characters in prefix"
138
137
  return mkdtemp(path.join(tmpRootPath, `jsdoc-${sanitizedProjectName}-`));
@@ -0,0 +1,12 @@
1
+ import fs from "graceful-fs";
2
+ import {promisify} from "node:util";
3
+ const mkdir = promisify(fs.mkdir);
4
+ const rm = promisify(fs.rm);
5
+
6
+ export async function mkdirp(dirPath) {
7
+ return mkdir(dirPath, {recursive: true});
8
+ }
9
+
10
+ export async function rmrf(dirPath) {
11
+ return rm(dirPath, {recursive: true, force: true});
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ui5/builder",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "UI5 Tooling - Builder",
5
5
  "author": {
6
6
  "name": "SAP SE",
@@ -50,7 +50,7 @@
50
50
  "version": "git-chglog --sort semver --next-tag v$npm_package_version -o CHANGELOG.md v4.0.0.. && git add CHANGELOG.md",
51
51
  "prepublishOnly": "git push --follow-tags",
52
52
  "release-note": "git-chglog --sort semver -c .chglog/release-config.yml v$npm_package_version",
53
- "depcheck": "depcheck --ignores @ui5/builder,docdash,@istanbuljs/esm-loader-hook,catharsis --parsers='**/*.js:es6,**/*.cjs:es6'"
53
+ "depcheck": "depcheck --ignores @ui5/builder,docdash,@istanbuljs/esm-loader-hook,catharsis,rimraf --parsers='**/*.js:es6,**/*.cjs:es6'"
54
54
  },
55
55
  "files": [
56
56
  "CHANGELOG.md",
@@ -122,42 +122,42 @@
122
122
  },
123
123
  "dependencies": {
124
124
  "@jridgewell/sourcemap-codec": "^1.5.0",
125
- "@ui5/fs": "^4.0.0",
125
+ "@ui5/fs": "^4.0.1",
126
126
  "@ui5/logger": "^4.0.1",
127
127
  "cheerio": "1.0.0",
128
128
  "escape-unicode": "^0.2.0",
129
129
  "escope": "^4.0.0",
130
- "espree": "^10.1.0",
130
+ "espree": "^10.3.0",
131
131
  "graceful-fs": "^4.2.11",
132
- "jsdoc": "^4.0.3",
132
+ "jsdoc": "^4.0.4",
133
133
  "less-openui5": "^0.11.6",
134
134
  "pretty-data": "^0.40.0",
135
- "rimraf": "^6.0.1",
136
135
  "semver": "^7.6.3",
137
- "terser": "^5.31.6",
138
- "workerpool": "^9.1.3",
136
+ "terser": "^5.36.0",
137
+ "workerpool": "^9.2.0",
139
138
  "xml2js": "^0.6.2"
140
139
  },
141
140
  "devDependencies": {
142
- "@eslint/js": "^9.8.0",
141
+ "@eslint/js": "^9.14.0",
143
142
  "@istanbuljs/esm-loader-hook": "^0.2.0",
144
143
  "@jridgewell/trace-mapping": "^0.3.25",
145
- "@ui5/project": "^4.0.2",
146
- "ava": "^6.1.3",
144
+ "@ui5/project": "^4.0.3",
145
+ "ava": "^6.2.0",
147
146
  "chokidar-cli": "^3.0.0",
148
147
  "cross-env": "^7.0.3",
149
148
  "depcheck": "^1.4.7",
150
149
  "docdash": "^2.0.2",
151
- "eslint": "^9.9.0",
150
+ "eslint": "^9.15.0",
152
151
  "eslint-config-google": "^0.14.0",
153
152
  "eslint-plugin-ava": "^15.0.1",
154
- "eslint-plugin-jsdoc": "^50.2.2",
155
- "esmock": "^2.6.7",
156
- "globals": "^15.9.0",
153
+ "eslint-plugin-jsdoc": "^50.5.0",
154
+ "esmock": "^2.6.9",
155
+ "globals": "^15.12.0",
157
156
  "line-column": "^1.0.2",
158
- "nyc": "^17.0.0",
157
+ "nyc": "^17.1.0",
159
158
  "open-cli": "^8.0.0",
160
- "sinon": "^18.0.0",
159
+ "rimraf": "^6.0.1",
160
+ "sinon": "^19.0.2",
161
161
  "tap-xunit": "^2.4.1"
162
162
  }
163
163
  }