@ibm/zapp-core 1.2.0 → 1.2.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/NOTICES.txt CHANGED
@@ -25,7 +25,7 @@ and all liability for errors and omissions or for any damages accruing
25
25
  from the use of this NOTICES file or its contents, including without
26
26
  limitation URLs or references to any third party websites.
27
27
 
28
- Start of Notices for IBM Zapp Core Library 1.2.0
28
+ Start of Notices for IBM Zapp Core Library 1.2.1
29
29
  =====================================================================
30
30
 
31
31
  =====================================================================
@@ -663,7 +663,7 @@ For more information, please refer to <http://unlicense.org/>
663
663
  END OF UNLICENSE NOTICES AND INFORMATION
664
664
  =====================================================================
665
665
 
666
- End of Notices for IBM Zapp Core Library 1.2.0
666
+ End of Notices for IBM Zapp Core Library 1.2.1
667
667
 
668
668
 
669
669
  L/N: L-KTSR-8RJLXL
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibm/zapp-core",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "IBM ZAPP parser and core utilities",
5
5
  "publisher": "IBM",
6
6
  "license": "SEE LICENSE IN LICENSE.txt",
@@ -24,23 +24,23 @@
24
24
  "@parcel/transformer-typescript-types": "^2.11.0",
25
25
  "@types/jest": "^29.5.10",
26
26
  "@types/js-yaml": "4.0.5",
27
- "@types/node": "18.x",
27
+ "@types/node": "20.x",
28
28
  "@types/tmp": "0.2.6",
29
29
  "@types/yawn-yaml": "1.4.0",
30
- "@typescript-eslint/eslint-plugin": "^6.13.0",
31
- "@typescript-eslint/parser": "^6.13.0",
30
+ "@typescript-eslint/eslint-plugin": "^8.2.0",
31
+ "@typescript-eslint/parser": "^8.2.0",
32
32
  "concurrently": "^8.2.2",
33
33
  "copyfiles": "^2.4.1",
34
- "eslint": "8.54.0",
35
- "eslint-config-prettier": "9.0.0",
36
- "eslint-plugin-prettier": "5.0.1",
34
+ "eslint": "^8.57.0",
35
+ "eslint-config-prettier": "9.1.0",
36
+ "eslint-plugin-prettier": "5.2.1",
37
37
  "jest": "^29.7.0",
38
38
  "jest-cli": "^29.7.0",
39
39
  "jest-junit": "^16.0.0",
40
40
  "jest-sonar-reporter": "^2.0.0",
41
41
  "jest-stare": "^2.5.1",
42
42
  "json-schema-to-typescript": "10.1.0",
43
- "madge": "^6.1.0",
43
+ "madge": "^8.0.0",
44
44
  "parcel": "^2.11.0",
45
45
  "prettier": "3.1.0",
46
46
  "rimraf": "^4.1.2",
@@ -68,7 +68,7 @@
68
68
  "scripts": {
69
69
  "prebuild": "npm run build:resources",
70
70
  "build": "tsc --pretty && npm run checkDeps && npm run lintErrors",
71
- "build:resources": "rimraf resources/* && copyfiles -f ../../schema/*-schema-1.2.0.json ./resources",
71
+ "build:resources": "rimraf resources/* && copyfiles -f ../../schema/*-schema-1.2.1.json ./resources",
72
72
  "build:version": "npm version --new-version $npm_package_version-`date '+%Y%m%d%H%M'`-`git rev-parse --short HEAD` --no-git-tag-version",
73
73
  "build:package": "npm run clean && parcel build",
74
74
  "build:test": "npm run clean && npm run build && npm run test",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "title": "IBM Zapp Document",
4
- "description": "JSON schema for zapp.json and zapp.yaml files. Version 1.2.0 -- Licensed Materials - Property of IBM - (c) Copyright IBM Corporation 2022, 2024. All Rights Reserved.",
4
+ "description": "JSON schema for zapp.json and zapp.yaml files. Version 1.2.1 -- Licensed Materials - Property of IBM - (c) Copyright IBM Corporation 2022, 2024. All Rights Reserved.",
5
5
  "type": "object",
6
6
  "definitions": {
7
7
  "coreProperties": {
@@ -188,25 +188,29 @@
188
188
  "description": "The name of the profile.",
189
189
  "examples": ["dbb-build"]
190
190
  },
191
+ "language": {
192
+ "type": "string",
193
+ "enum": ["cobol", "pl1"],
194
+ "description": "If the profile type supports it then it defines a scope for the profile to one specific programming language. For example, a profile that defines preprocessor commands for COBOL."
195
+ },
191
196
  "type": {
192
197
  "type": "string",
193
198
  "enum": ["dbb", "rseapi", "debug", "preprocessor", "test"],
194
199
  "description": "The type of the profile.",
195
- "default": "dbb",
196
- "examples": ["dbb", "rseapi", "preprocessor"]
200
+ "default": "dbb"
197
201
  },
198
202
  "location": {
199
203
  "type": "string",
200
204
  "enum": ["mvs", "local"],
201
- "description": "A string of include file locations. For 'local' libraries values can be absolute and relative filename paths using GLOB patterns. For 'mvs' libraries value can be data set names. GLOB patterns for dat sets are currently not supported.",
202
- "examples": ["**/copybook", "USER1.SAMPLE.COBCOPY"]
205
+ "description": "If the profile type supports it then it defines a scope for the profile to a specific location for resources. For example, a profile that defines preprocessor commands to be executed on MVS or local files.",
206
+ "default": "local"
203
207
  },
204
208
  "settings": {
205
209
  "description": "Settings objects specific to the type specified for the profile.",
206
210
  "type": "object"
207
211
  }
208
212
  },
209
- "anyOf": [
213
+ "oneOf": [
210
214
  {
211
215
  "required": ["name", "type", "settings"],
212
216
  "additionalProperties": false,
@@ -230,28 +234,23 @@
230
234
  }
231
235
  },
232
236
  {
233
- "required": ["name", "type", "settings", "location"],
237
+ "required": ["name", "type", "settings", "location", "language"],
234
238
  "additionalProperties": false,
235
239
  "properties": {
236
240
  "name": { "type": "string" },
241
+ "language": { "type": "string" },
237
242
  "type": { "const": "preprocessor", "type": "string" },
238
- "location": { "const": "local", "type": "string" },
243
+ "location": { "type": "string" },
239
244
  "settings": {
240
- "$ref": "#/definitions/localPreprocessorSettingsItem"
245
+ "oneOf": [
246
+ { "$ref": "#/definitions/localPreprocessorSettingsItem" },
247
+ { "$ref": "#/definitions/mvsPreprocessorSettingsItem" }
248
+ ]
241
249
  }
242
- }
243
- },
244
- {
245
- "required": ["name", "type", "settings", "location"],
246
- "additionalProperties": false,
247
- "properties": {
248
- "name": { "type": "string" },
249
- "type": { "const": "preprocessor", "type": "string" },
250
- "location": { "const": "mvs", "type": "string" },
251
- "settings": {
252
- "$ref": "#/definitions/mvsPreprocessorSettingsItem"
253
- }
254
- }
250
+ },
251
+ "if": { "properties": { "location": { "const": "local", "type": "string" } } },
252
+ "then": { "properties": { "settings": { "$ref": "#/definitions/localPreprocessorSettingsItem" } } },
253
+ "else": { "properties": { "settings": { "$ref": "#/definitions/mvsPreprocessorSettingsItem" } } }
255
254
  },
256
255
  {
257
256
  "required": ["name", "type", "settings"],