@sap/cds-dk 6.2.1 → 6.2.3
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 +21 -0
- package/bin/deploy/to-postgres.js +4 -0
- package/bin/deploy/to-sqlite.js +6 -1
- package/bin/mock.js +2 -2
- package/lib/cds.js +6 -3
- package/npm-shrinkwrap.json +48 -57
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,27 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
9
9
|
|
|
10
|
+
## Version 6.2.3 - 2022-10-21
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Use `@sap/cds` 6.2.3
|
|
15
|
+
- Use `@sap/hdi-deploy` 4.5.0, which brings support for Node 18
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- `cds mock` now prefers a local `@sap/cds` installation, like other `cds` commands as well.
|
|
20
|
+
|
|
21
|
+
## Version 6.2.2 - 2022-10-13
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- `cds deploy --to postgres --dry` to create drop/create DDL for PostgreSQL. Full deployment (w/o `--dry`) is not yet supported, though.
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- `cds deploy --to sql` now honors the `cds.sql.dialect` configuration to specify SQL dialects like `postgres`.
|
|
30
|
+
|
|
10
31
|
## Version 6.2.1 - 2022-10-10
|
|
11
32
|
|
|
12
33
|
### Fixed
|
package/bin/deploy/to-sqlite.js
CHANGED
|
@@ -5,8 +5,13 @@ exports.deploy = function deploy_to_sqlite (_model, _db, options) {
|
|
|
5
5
|
const fts = cds.env.features.folders
|
|
6
6
|
const model = _model || conf.model || cds.resolve(!fts ? '*' : ['*',fts], false)
|
|
7
7
|
const file = _database4 (_db, _dbrl, conf)
|
|
8
|
+
|
|
8
9
|
const dialect = _dbrl && _dbrl.match(/^(\w+)/) && RegExp.$1
|
|
9
|
-
if (dialect)
|
|
10
|
+
if (dialect) options.dialect = (dialect === 'sql')
|
|
11
|
+
? conf.dialect || cds.env.sql.dialect
|
|
12
|
+
: dialect
|
|
13
|
+
if (options.dialect === 'postgres' && !options.dry) console.error('\nDeploying to PostgreSQL is not yet supported\n')
|
|
14
|
+
|
|
10
15
|
return cds.deploy(model) .to ('sqlite:'+file, options)
|
|
11
16
|
.then (db => db && db.disconnect()) // REVISIT: we should NOT require to disconnect explicitly
|
|
12
17
|
}
|
package/bin/mock.js
CHANGED
package/lib/cds.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
const _local = id => require(_resolve(id))
|
|
2
|
+
|
|
1
3
|
/** @type { import('@sap/cds/lib') } */
|
|
2
|
-
const cds = module.exports =
|
|
4
|
+
const cds = module.exports = _local ('@sap/cds')
|
|
3
5
|
|
|
4
6
|
// for internal use in cds-dk only
|
|
5
|
-
cds._log =
|
|
7
|
+
cds._log = _local ('@sap/cds/bin/utils/log')
|
|
8
|
+
cds._local = _local
|
|
6
9
|
|
|
7
|
-
function
|
|
10
|
+
function _resolve (id) {
|
|
8
11
|
return require.resolve (id, {paths:[
|
|
9
12
|
process.cwd(), // project-local module is preferred
|
|
10
13
|
__dirname // otherwise from our own dependencies
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.3",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@sap/cds-dk",
|
|
9
|
-
"version": "6.2.
|
|
9
|
+
"version": "6.2.3",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@sap/cds": "^6.2.
|
|
12
|
+
"@sap/cds": "^6.2.3",
|
|
13
13
|
"@sap/cds-foss": "^4",
|
|
14
14
|
"@sap/eslint-plugin-cds": "^2.6.0",
|
|
15
15
|
"axios": ">=0.21",
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
"node_modules/@sap/cds": {
|
|
161
|
-
"version": "6.2.
|
|
161
|
+
"version": "6.2.3",
|
|
162
162
|
"license": "SEE LICENSE IN LICENSE",
|
|
163
163
|
"dependencies": {
|
|
164
164
|
"@sap/cds-compiler": "^3.2.0",
|
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
"cds": "bin/cds.js"
|
|
169
169
|
},
|
|
170
170
|
"engines": {
|
|
171
|
-
"node": ">=14.
|
|
171
|
+
"node": ">=14.18.0"
|
|
172
172
|
}
|
|
173
173
|
},
|
|
174
174
|
"node_modules/@sap/cds-compiler": {
|
|
@@ -200,6 +200,13 @@
|
|
|
200
200
|
"node": ">=14"
|
|
201
201
|
}
|
|
202
202
|
},
|
|
203
|
+
"node_modules/@sap/cds-foss/node_modules/uuid": {
|
|
204
|
+
"version": "8.3.2",
|
|
205
|
+
"license": "MIT",
|
|
206
|
+
"bin": {
|
|
207
|
+
"uuid": "dist/bin/uuid"
|
|
208
|
+
}
|
|
209
|
+
},
|
|
203
210
|
"node_modules/@sap/cds-mtxs": {
|
|
204
211
|
"version": "1.2.0",
|
|
205
212
|
"license": "SEE LICENSE IN LICENSE",
|
|
@@ -240,12 +247,12 @@
|
|
|
240
247
|
}
|
|
241
248
|
},
|
|
242
249
|
"node_modules/@sap/hdi-deploy": {
|
|
243
|
-
"version": "4.
|
|
250
|
+
"version": "4.5.0",
|
|
244
251
|
"license": "See LICENSE file",
|
|
245
252
|
"optional": true,
|
|
246
253
|
"dependencies": {
|
|
247
|
-
"@sap/hana-client": "2.13.
|
|
248
|
-
"@sap/hdi": "4.
|
|
254
|
+
"@sap/hana-client": "2.13.22",
|
|
255
|
+
"@sap/hdi": "4.4.0",
|
|
249
256
|
"@sap/xsenv": "3.3.2",
|
|
250
257
|
"async": "3.2.3",
|
|
251
258
|
"dotenv": "10.0.0",
|
|
@@ -254,11 +261,11 @@
|
|
|
254
261
|
"micromatch": "4.0.4"
|
|
255
262
|
},
|
|
256
263
|
"engines": {
|
|
257
|
-
"node": "^12.0.0 || ^14.0.0 || ^16.0.0"
|
|
264
|
+
"node": "^12.0.0 || ^14.0.0 || ^16.0.0 || ^18.0.0"
|
|
258
265
|
}
|
|
259
266
|
},
|
|
260
267
|
"node_modules/@sap/hdi-deploy/node_modules/@sap/hana-client": {
|
|
261
|
-
"version": "2.13.
|
|
268
|
+
"version": "2.13.22",
|
|
262
269
|
"hasInstallScript": true,
|
|
263
270
|
"license": "SEE LICENSE IN developer-license-3_1.txt",
|
|
264
271
|
"optional": true,
|
|
@@ -283,14 +290,14 @@
|
|
|
283
290
|
"optional": true
|
|
284
291
|
},
|
|
285
292
|
"node_modules/@sap/hdi-deploy/node_modules/@sap/hdi": {
|
|
286
|
-
"version": "4.
|
|
293
|
+
"version": "4.4.0",
|
|
287
294
|
"license": "See LICENSE file",
|
|
288
295
|
"optional": true,
|
|
289
296
|
"dependencies": {
|
|
290
297
|
"async": "3.2.3"
|
|
291
298
|
},
|
|
292
299
|
"engines": {
|
|
293
|
-
"node": ">=12 <=
|
|
300
|
+
"node": ">=12 <=18"
|
|
294
301
|
},
|
|
295
302
|
"peerDependencies": {
|
|
296
303
|
"@sap/hana-client": "^2 >= 2.5",
|
|
@@ -535,7 +542,7 @@
|
|
|
535
542
|
}
|
|
536
543
|
},
|
|
537
544
|
"node_modules/@sap/hdi-deploy/node_modules/uglify-js": {
|
|
538
|
-
"version": "3.
|
|
545
|
+
"version": "3.17.1",
|
|
539
546
|
"license": "BSD-2-Clause",
|
|
540
547
|
"optional": true,
|
|
541
548
|
"bin": {
|
|
@@ -551,7 +558,7 @@
|
|
|
551
558
|
"optional": true
|
|
552
559
|
},
|
|
553
560
|
"node_modules/@sap/instance-manager": {
|
|
554
|
-
"version": "3.3.
|
|
561
|
+
"version": "3.3.6",
|
|
555
562
|
"license": "SEE LICENSE IN LICENSE file",
|
|
556
563
|
"optional": true,
|
|
557
564
|
"dependencies": {
|
|
@@ -567,14 +574,14 @@
|
|
|
567
574
|
}
|
|
568
575
|
},
|
|
569
576
|
"node_modules/@sap/instance-manager/node_modules/@sap/xssec": {
|
|
570
|
-
"version": "3.2.
|
|
577
|
+
"version": "3.2.14",
|
|
571
578
|
"license": "SAP DEVELOPER LICENSE AGREEMENT",
|
|
572
579
|
"optional": true,
|
|
573
580
|
"dependencies": {
|
|
574
581
|
"axios": "^0.26.0",
|
|
575
|
-
"debug": "4.3.2",
|
|
582
|
+
"debug": "^4.3.2",
|
|
576
583
|
"jsonwebtoken": "^8.5.1",
|
|
577
|
-
"lru-cache": "6.0.0",
|
|
584
|
+
"lru-cache": "^6.0.0",
|
|
578
585
|
"node-rsa": "^1.1.1",
|
|
579
586
|
"valid-url": "1.0.9"
|
|
580
587
|
},
|
|
@@ -582,22 +589,6 @@
|
|
|
582
589
|
"node": ">=12.0.0"
|
|
583
590
|
}
|
|
584
591
|
},
|
|
585
|
-
"node_modules/@sap/instance-manager/node_modules/@sap/xssec/node_modules/debug": {
|
|
586
|
-
"version": "4.3.2",
|
|
587
|
-
"license": "MIT",
|
|
588
|
-
"optional": true,
|
|
589
|
-
"dependencies": {
|
|
590
|
-
"ms": "2.1.2"
|
|
591
|
-
},
|
|
592
|
-
"engines": {
|
|
593
|
-
"node": ">=6.0"
|
|
594
|
-
},
|
|
595
|
-
"peerDependenciesMeta": {
|
|
596
|
-
"supports-color": {
|
|
597
|
-
"optional": true
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
},
|
|
601
592
|
"node_modules/@sap/instance-manager/node_modules/@sap/xssec/node_modules/lru-cache": {
|
|
602
593
|
"version": "6.0.0",
|
|
603
594
|
"license": "ISC",
|
|
@@ -663,7 +654,7 @@
|
|
|
663
654
|
}
|
|
664
655
|
},
|
|
665
656
|
"node_modules/@sap/instance-manager/node_modules/follow-redirects": {
|
|
666
|
-
"version": "1.15.
|
|
657
|
+
"version": "1.15.2",
|
|
667
658
|
"funding": [
|
|
668
659
|
{
|
|
669
660
|
"type": "individual",
|
|
@@ -1031,7 +1022,7 @@
|
|
|
1031
1022
|
"license": "MIT"
|
|
1032
1023
|
},
|
|
1033
1024
|
"node_modules/axios": {
|
|
1034
|
-
"version": "1.1.
|
|
1025
|
+
"version": "1.1.3",
|
|
1035
1026
|
"license": "MIT",
|
|
1036
1027
|
"dependencies": {
|
|
1037
1028
|
"follow-redirects": "^1.15.0",
|
|
@@ -3416,7 +3407,8 @@
|
|
|
3416
3407
|
}
|
|
3417
3408
|
},
|
|
3418
3409
|
"node_modules/uuid": {
|
|
3419
|
-
"version": "
|
|
3410
|
+
"version": "9.0.0",
|
|
3411
|
+
"extraneous": true,
|
|
3420
3412
|
"license": "MIT",
|
|
3421
3413
|
"bin": {
|
|
3422
3414
|
"uuid": "dist/bin/uuid"
|
|
@@ -3615,7 +3607,7 @@
|
|
|
3615
3607
|
}
|
|
3616
3608
|
},
|
|
3617
3609
|
"@sap/cds": {
|
|
3618
|
-
"version": "6.2.
|
|
3610
|
+
"version": "6.2.3",
|
|
3619
3611
|
"requires": {
|
|
3620
3612
|
"@sap/cds-compiler": "^3.2.0",
|
|
3621
3613
|
"@sap/cds-foss": "^4"
|
|
@@ -3635,6 +3627,11 @@
|
|
|
3635
3627
|
"uuid": "^8.3.2",
|
|
3636
3628
|
"xmlbuilder": "^15.1.1",
|
|
3637
3629
|
"yaml": "^2.1.1"
|
|
3630
|
+
},
|
|
3631
|
+
"dependencies": {
|
|
3632
|
+
"uuid": {
|
|
3633
|
+
"version": "8.3.2"
|
|
3634
|
+
}
|
|
3638
3635
|
}
|
|
3639
3636
|
},
|
|
3640
3637
|
"@sap/cds-mtxs": {
|
|
@@ -3664,11 +3661,11 @@
|
|
|
3664
3661
|
}
|
|
3665
3662
|
},
|
|
3666
3663
|
"@sap/hdi-deploy": {
|
|
3667
|
-
"version": "4.
|
|
3664
|
+
"version": "4.5.0",
|
|
3668
3665
|
"optional": true,
|
|
3669
3666
|
"requires": {
|
|
3670
|
-
"@sap/hana-client": "2.13.
|
|
3671
|
-
"@sap/hdi": "4.
|
|
3667
|
+
"@sap/hana-client": "2.13.22",
|
|
3668
|
+
"@sap/hdi": "4.4.0",
|
|
3672
3669
|
"@sap/xsenv": "3.3.2",
|
|
3673
3670
|
"async": "3.2.3",
|
|
3674
3671
|
"dotenv": "10.0.0",
|
|
@@ -3678,7 +3675,7 @@
|
|
|
3678
3675
|
},
|
|
3679
3676
|
"dependencies": {
|
|
3680
3677
|
"@sap/hana-client": {
|
|
3681
|
-
"version": "2.13.
|
|
3678
|
+
"version": "2.13.22",
|
|
3682
3679
|
"optional": true,
|
|
3683
3680
|
"requires": {
|
|
3684
3681
|
"debug": "3.1.0"
|
|
@@ -3698,7 +3695,7 @@
|
|
|
3698
3695
|
}
|
|
3699
3696
|
},
|
|
3700
3697
|
"@sap/hdi": {
|
|
3701
|
-
"version": "4.
|
|
3698
|
+
"version": "4.4.0",
|
|
3702
3699
|
"optional": true,
|
|
3703
3700
|
"requires": {
|
|
3704
3701
|
"async": "3.2.3"
|
|
@@ -3845,7 +3842,7 @@
|
|
|
3845
3842
|
}
|
|
3846
3843
|
},
|
|
3847
3844
|
"uglify-js": {
|
|
3848
|
-
"version": "3.
|
|
3845
|
+
"version": "3.17.1",
|
|
3849
3846
|
"optional": true
|
|
3850
3847
|
},
|
|
3851
3848
|
"wordwrap": {
|
|
@@ -3855,7 +3852,7 @@
|
|
|
3855
3852
|
}
|
|
3856
3853
|
},
|
|
3857
3854
|
"@sap/instance-manager": {
|
|
3858
|
-
"version": "3.3.
|
|
3855
|
+
"version": "3.3.6",
|
|
3859
3856
|
"optional": true,
|
|
3860
3857
|
"requires": {
|
|
3861
3858
|
"@sap/xssec": "^3.2.13",
|
|
@@ -3867,24 +3864,17 @@
|
|
|
3867
3864
|
},
|
|
3868
3865
|
"dependencies": {
|
|
3869
3866
|
"@sap/xssec": {
|
|
3870
|
-
"version": "3.2.
|
|
3867
|
+
"version": "3.2.14",
|
|
3871
3868
|
"optional": true,
|
|
3872
3869
|
"requires": {
|
|
3873
3870
|
"axios": "^0.26.0",
|
|
3874
|
-
"debug": "4.3.2",
|
|
3871
|
+
"debug": "^4.3.2",
|
|
3875
3872
|
"jsonwebtoken": "^8.5.1",
|
|
3876
|
-
"lru-cache": "6.0.0",
|
|
3873
|
+
"lru-cache": "^6.0.0",
|
|
3877
3874
|
"node-rsa": "^1.1.1",
|
|
3878
3875
|
"valid-url": "1.0.9"
|
|
3879
3876
|
},
|
|
3880
3877
|
"dependencies": {
|
|
3881
|
-
"debug": {
|
|
3882
|
-
"version": "4.3.2",
|
|
3883
|
-
"optional": true,
|
|
3884
|
-
"requires": {
|
|
3885
|
-
"ms": "2.1.2"
|
|
3886
|
-
}
|
|
3887
|
-
},
|
|
3888
3878
|
"lru-cache": {
|
|
3889
3879
|
"version": "6.0.0",
|
|
3890
3880
|
"optional": true,
|
|
@@ -3931,7 +3921,7 @@
|
|
|
3931
3921
|
}
|
|
3932
3922
|
},
|
|
3933
3923
|
"follow-redirects": {
|
|
3934
|
-
"version": "1.15.
|
|
3924
|
+
"version": "1.15.2",
|
|
3935
3925
|
"optional": true
|
|
3936
3926
|
},
|
|
3937
3927
|
"jsonwebtoken": {
|
|
@@ -4168,7 +4158,7 @@
|
|
|
4168
4158
|
"version": "0.4.0"
|
|
4169
4159
|
},
|
|
4170
4160
|
"axios": {
|
|
4171
|
-
"version": "1.1.
|
|
4161
|
+
"version": "1.1.3",
|
|
4172
4162
|
"requires": {
|
|
4173
4163
|
"follow-redirects": "^1.15.0",
|
|
4174
4164
|
"form-data": "^4.0.0",
|
|
@@ -5620,7 +5610,8 @@
|
|
|
5620
5610
|
"version": "1.0.1"
|
|
5621
5611
|
},
|
|
5622
5612
|
"uuid": {
|
|
5623
|
-
"version": "
|
|
5613
|
+
"version": "9.0.0",
|
|
5614
|
+
"extraneous": true
|
|
5624
5615
|
},
|
|
5625
5616
|
"vary": {
|
|
5626
5617
|
"version": "1.1.2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap/cds-dk",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.3",
|
|
4
4
|
"description": "Command line client and development toolkit for the SAP Cloud Application Programming Model",
|
|
5
5
|
"homepage": "https://cap.cloud.sap/",
|
|
6
6
|
"keywords": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"main": "lib/index.js",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@sap/cds": "^6.2.
|
|
19
|
+
"@sap/cds": "^6.2.3",
|
|
20
20
|
"@sap/cds-foss": "^4",
|
|
21
21
|
"@sap/eslint-plugin-cds": "^2.6.0",
|
|
22
22
|
"axios": ">=0.21",
|