@sap/cds-dk 4.9.0 → 4.9.1

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
@@ -6,6 +6,15 @@ This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
8
8
 
9
+ ## Version 4.9.1 - 2022-04-01
10
+
11
+ ### Changed
12
+
13
+ - `cds init` uses latest Maven Java archetype version 1.23.0 for creating Java projects.
14
+ - Include `@sap/cds` 5.9.1
15
+ - Include `@sap/cds-compiler` 2.13.8
16
+ - Include `@sap/eslint-plugin` 2.3.4
17
+
9
18
  ## Version 4.9.0 - 2022-03-28
10
19
 
11
20
  ### Added
@@ -24,7 +24,6 @@ function addUrlInfo(params, authData) {
24
24
  function getTokenUrl(params) {
25
25
  const tokenUrl = new URL(params.get('tokenUrl'));
26
26
  tokenUrl.search = `subdomain=${params.get('subdomain')}`;
27
- console.log(tokenUrl);
28
27
 
29
28
  if (params.has('refreshToken')) {
30
29
  tokenUrl.search += `&refresh_token=${encodeURIComponent(params.get('refreshToken'))}`;
@@ -35,7 +35,6 @@ module.exports = class Extend extends BaseCommand {
35
35
  filesToWrite.set(filepath, filecontent);
36
36
  }
37
37
  }
38
- console.log('filepath', filesToWrite.keys());
39
38
  for (const [filepath, content] of [...filesToWrite.entries()]) {
40
39
  const normalizedFilepath = normalizePath(filepath);
41
40
  fse.mkdirpSync(path.dirname(normalizedFilepath));
@@ -1,6 +1,6 @@
1
1
  const os = require('os');
2
2
 
3
- const MAVEN_ARCHETYPE_VERSION = '1.22.2';
3
+ const MAVEN_ARCHETYPE_VERSION = '1.23.0';
4
4
 
5
5
  const constants = {
6
6
  IS_WIN: (os.platform() === 'win32'),
@@ -106,7 +106,7 @@ module.exports = class HanaTemplate extends TemplateBase {
106
106
  const projectType = await this.getProjectType();
107
107
  switch (projectType) {
108
108
  case PROJECT_TYPE.java: {
109
- await this.templateUtil.copyFiles('java', path.join(this.projectPath, env.folders.db), {}, this.options.force);
109
+ await this.templateUtil.copyFiles(path.join('java', 'db'), path.join(this.projectPath, env.folders.db), {}, this.options.force);
110
110
  await this._updatePomXml();
111
111
  const cdsrcJsonPath = path.join(this.projectPath, '.cdsrc.json');
112
112
  await this._updateCdsrcJson(cdsrcJsonPath, env.folders.db, env);