@sasjs/core 7.1.14 → 7.1.15

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/.sasjslint CHANGED
@@ -6,6 +6,7 @@
6
6
  "hasMacroParentheses": true,
7
7
  "lineEndings": "lf",
8
8
  "noGremlins": true,
9
+ "noMalformedMacroCalls": true,
9
10
  "noNestedMacros": true,
10
11
  "noSingleAsteriskComments": true,
11
12
  "noSpacesInFileNames": true,
@@ -21,11 +22,13 @@
21
22
  "indentationMultiple": "error",
22
23
  "lineEndings": "error",
23
24
  "lowerCaseFileNames": "error",
25
+ "lowerCaseMacroNames": "error",
24
26
  "maxLineLength": "error",
25
27
  "minMacroNameLength": "error",
26
28
  "noBannedStrings": "error",
27
29
  "noEncodedPasswords": "error",
28
30
  "noGremlins": "error",
31
+ "noMalformedMacroCalls": "error",
29
32
  "noNestedCommentsInHeader": "error",
30
33
  "noNestedMacros": "error",
31
34
  "noSingleAsteriskComments": "error",
package/README.md CHANGED
@@ -224,9 +224,9 @@ We are currently on major release v6. The following breaking changes were appli
224
224
 
225
225
  ### Cutting a release
226
226
 
227
- Releases are cut by `semantic-release` from the commit messages on `main`, so the squashed PR message is what decides the version:
227
+ Releases are cut by `@sasjs/release` from the commit messages on `main`, so the squashed PR message is what decides the version:
228
228
 
229
- * a breaking change needs a `BREAKING CHANGE:` footer in the commit body. The `!` after the type on its own did not bump the major on this pipeline - the v6 rename merged as `feat!:` and shipped as a patch release.
229
+ * a breaking change bumps the major when the subject carries `!` after the type (`feat!:`) or the body carries a `BREAKING CHANGE:` footer. The previous pipeline ignored `!` on its own - the v6 rename merged as `feat!:` and shipped as a patch - and this one does not.
230
230
  * no commit that reaches `main` may carry a skip marker (`[skip ci]` and friends), including one copied in by the squashed commit list. A skip marker suppresses every workflow for that push, the release job included, and nothing is published.
231
231
 
232
232
  ## Star Gazing
@@ -33,7 +33,7 @@
33
33
  @version 9.2
34
34
  **/
35
35
 
36
- %macro mf_getVarFormat(libds /* two level ds name */
36
+ %macro mf_getvarformat(libds /* two level ds name */
37
37
  , var /* variable name from which to return the format */
38
38
  , force=0
39
39
  )/*/STORE SOURCE*/;
@@ -70,4 +70,4 @@
70
70
  %let rc = %sysfunc(close(&dsid));
71
71
  /* Return variable format */
72
72
  &vformat
73
- %mend mf_getVarFormat;
73
+ %mend mf_getvarformat;
@@ -27,7 +27,7 @@
27
27
 
28
28
  **/
29
29
 
30
- %macro mf_getVarLen(libds /* two level ds name */
30
+ %macro mf_getvarlen(libds /* two level ds name */
31
31
  , var /* variable name from which to return the length */
32
32
  )/*/STORE SOURCE*/;
33
33
  %local dsid vnum vlen rc;
@@ -53,4 +53,4 @@
53
53
  %let rc = %sysfunc(close(&dsid));
54
54
  /* Return variable format */
55
55
  &vlen
56
- %mend mf_getVarLen;
56
+ %mend mf_getvarlen;
@@ -29,7 +29,7 @@ returns:
29
29
 
30
30
  **/
31
31
 
32
- %macro mf_getVarNum(libds /* two level ds name */
32
+ %macro mf_getvarnum(libds /* two level ds name */
33
33
  , var /* variable name from which to return the format */
34
34
  )/*/STORE SOURCE*/;
35
35
  %local dsid vnum rc;
@@ -55,4 +55,4 @@ returns:
55
55
  /* Return variable number */
56
56
  &vnum.
57
57
 
58
- %mend mf_getVarNum;
58
+ %mend mf_getvarnum;
@@ -97,7 +97,7 @@ create table _data_ as
97
97
  %local colconst; %let colconst=&syslast;
98
98
 
99
99
  %local constraints_used;
100
- %macro addConst();
100
+ %macro addconst();
101
101
  data _null_;
102
102
  length ctype $11 constraint_name_orig $256 constraints_used $5000;
103
103
  set &colconst(
@@ -129,7 +129,7 @@ create table _data_ as
129
129
  end;
130
130
  run;
131
131
  %put &=constraints_used;
132
- %mend addConst;
132
+ %mend addconst;
133
133
 
134
134
  data _null_;
135
135
  file &fref mod;
@@ -20,7 +20,7 @@
20
20
 
21
21
  **/
22
22
 
23
- %macro mm_getDirectories(
23
+ %macro mm_getdirectories(
24
24
  path=
25
25
  ,outds=work.mm_getDirectories
26
26
  ,mDebug=0
@@ -55,4 +55,4 @@ data &outds (keep=directoryuri name directoryname directorydesc );
55
55
  end;
56
56
  run;
57
57
 
58
- %mend mm_getDirectories;
58
+ %mend mm_getdirectories;
@@ -27,7 +27,7 @@
27
27
 
28
28
  **/
29
29
 
30
- %macro mm_getGroups(
30
+ %macro mm_getgroups(
31
31
  user=
32
32
  ,outds=work.mm_getGroups
33
33
  ,repo=foundation
@@ -93,4 +93,4 @@
93
93
  options metarepository=&oldrepo;
94
94
  %end;
95
95
 
96
- %mend mm_getGroups;
96
+ %mend mm_getgroups;
@@ -24,7 +24,7 @@
24
24
 
25
25
  **/
26
26
 
27
- %macro mm_getTree(
27
+ %macro mm_gettree(
28
28
  tree=
29
29
  ,inds=
30
30
  ,outds=work.mm_getTree
@@ -65,4 +65,4 @@ data &outds;
65
65
  if treeuri ne "" and treepath ne "" then output;
66
66
  stop;
67
67
  run;
68
- %mend mm_getTree;
68
+ %mend mm_gettree;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@sasjs/core",
3
3
  "description": "Production-quality MIT-licensed SAS macro library (mf_*, mp_*, mm* macros) for SAS 9 and Viya application development",
4
+ "version": "7.1.15",
4
5
  "license": "MIT",
5
6
  "keywords": [
6
7
  "SAS",
@@ -19,22 +20,6 @@
19
20
  "type": "git",
20
21
  "url": "git+https://github.com/sasjs/core.git"
21
22
  },
22
- "release": {
23
- "branches": [
24
- "main"
25
- ],
26
- "plugins": [
27
- "@semantic-release/commit-analyzer",
28
- "@semantic-release/release-notes-generator",
29
- [
30
- "@semantic-release/npm",
31
- {
32
- "npmPublish": false
33
- }
34
- ],
35
- "@semantic-release/github"
36
- ]
37
- },
38
23
  "publishConfig": {
39
24
  "access": "public"
40
25
  },
@@ -46,13 +31,15 @@
46
31
  "build": "npx @sasjs/cli cbd -t server",
47
32
  "docs": "npx @sasjs/cli doc -t docsonly && ./sasjs/utils/build.sh",
48
33
  "test": "npx @sasjs/cli test -t server",
49
- "lint": "npx @sasjs/cli lint"
34
+ "lint": "npx @sasjs/cli lint",
35
+ "release": "sasjs-release",
36
+ "prepublishOnly": "node -e \"const v=require('./package.json').version; if (/^0\\.0\\.0/.test(v)) { console.error('refusing to publish ' + v + ': the version is stamped from the tag when publishing'); process.exit(1) }\""
50
37
  },
51
38
  "maintainers": [
52
39
  "https://sasapps.io"
53
40
  ],
54
41
  "devDependencies": {
55
- "@nogoo9/gitleaks": "8.30.1-post.2"
56
- },
57
- "version": "7.1.14"
42
+ "@nogoo9/gitleaks": "8.30.1-post.2",
43
+ "@sasjs/release": "0.3.2"
44
+ }
58
45
  }
@@ -32,7 +32,7 @@
32
32
 
33
33
  **/
34
34
 
35
- %macro mv_getViyaFileExtParms(
35
+ %macro mv_getviyafileextparms(
36
36
  ext,
37
37
  typeDefNameVar=,
38
38
  propertiesVar=,
@@ -250,4 +250,4 @@
250
250
 
251
251
  %end;
252
252
 
253
- %mend mv_getViyaFileExtParms;
253
+ %mend mv_getviyafileextparms;