Skip to content

Commit bb0c301

Browse files
Merge pull request #13 from mig8447/main
build: add postversion script
2 parents a282120 + 3c8f1aa commit bb0c301

12 files changed

+5450
-8
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@ node_modules
44
!.env*.example
55
build
66
examples/diagram-generator/libs/rappid.*
7-
package-lock.json

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ npm run example-cli -- ./test/department_employees.quicksql
7474
The Quick SQL to DDL translator is the product's core component, It allows users
7575
to transform a Quick SQL string into an Oracle SQL string.
7676
77-
The Quick SQL Syntax and Grammar are documented [here](./doc/quick-sql-grammar.md)
77+
The Quick SQL Syntax and Grammar are documented [here](./doc/user/quick-sql-grammar.md)
7878
7979
See below for examples of how to use this library.
8080
@@ -160,7 +160,7 @@ view emp_v departments employees
160160
161161
## Transforming Quick SQL into an Entity-Relationship Diagram (ERD)
162162
163-
Requires a paid library. Review the usage [here](./doc/quick-erd.md)
163+
Requires a paid library. Review the usage [here](./doc/user/quick-erd.md)
164164
165165
## Contributing
166166

dist/quick-erd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ class de {
739739
e.rearrangeDiagram(3, !1), this.paperScroller.centerContent();
740740
}
741741
}
742-
const ue = "1.1.2", fe = {
742+
const ue = "1.1.3", fe = {
743743
Diagram: de,
744744
version: ue
745745
};

dist/quick-erd.umd.cjs

+1-1
Large diffs are not rendered by default.

dist/quick-sql.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8992,7 +8992,7 @@ const Y = {
89928992
};
89938993
return Object.defineProperty(D, "version", {
89948994
writable: !1,
8995-
value: "1.1.2"
8995+
value: "1.1.3"
89968996
}), D;
89978997
}(), be = X.toDDL, pe = X.toERD, ge = X.toQSQL, Ce = X.errors, ve = X.version;
89988998
export {

dist/quick-sql.umd.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,4 +264,4 @@ dv `+D+"_dv "+D,A+=`
264264
Non-default options:
265265
# settings = `+JSON.stringify(this.nonDefaultOptions())+`
266266
`,S+=`
267-
*/`,this.appliedOptions=JSON.parse(JSON.stringify(this.options)),this.resetOptions(),S},this.errors=function(y,p){this.toDDL(y,p),this.options=JSON.parse(JSON.stringify(this.appliedOptions));const S=be.findErrors(this,y);return this.appliedOptions=JSON.parse(JSON.stringify(this.options)),this.resetOptions(),S},this.toQSQL=function(y){const p=JSON.parse(y);return me.introspect(null,p,0)},this.descendants=function(){for(var y=[],p=0;p<this.forest.length;p++)y=y.concat(this.forest[p].descendants());return y},this.additionalColumns=function(){var y=[],p=this.getOptionValue("Auxiliary Columns");if(p==null)return y;for(var S=p.split(","),T=0;T<S.length;T++){var A=S[T].trim(),k="VARCHAR2(4000)",b=A.indexOf(" ");0<b&&(k=A.substring(b+1).toUpperCase(),A=A.substring(0,b)),y[A]=k}return y},this.objPrefix=function(y){var p=this.getOptionValue("schema");p==null&&(p=""),p!=""&&y==null?p=p+".":p="";var S="";return this.getOptionValue("prefix")!=null&&(S=this.getOptionValue("prefix")),p=p+S,S!=""&&(p=p+"_"),p.toLowerCase()}}const f=new m;let D={toDDL:f.toDDL.bind(f),toERD:f.toERD.bind(f),toQSQL:f.toQSQL.bind(f),errorMsgs:f.errors.bind(f)};return Object.defineProperty(D,"version",{writable:!1,value:"1.1.2"}),D}(),pe=X.toDDL,ge=X.toERD,Ce=X.toQSQL,ve=X.errors,Ae=X.version;K.default=X,K.errors=ve,K.toDDL=pe,K.toERD=ge,K.toQSQL=Ce,K.version=Ae,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
267+
*/`,this.appliedOptions=JSON.parse(JSON.stringify(this.options)),this.resetOptions(),S},this.errors=function(y,p){this.toDDL(y,p),this.options=JSON.parse(JSON.stringify(this.appliedOptions));const S=be.findErrors(this,y);return this.appliedOptions=JSON.parse(JSON.stringify(this.options)),this.resetOptions(),S},this.toQSQL=function(y){const p=JSON.parse(y);return me.introspect(null,p,0)},this.descendants=function(){for(var y=[],p=0;p<this.forest.length;p++)y=y.concat(this.forest[p].descendants());return y},this.additionalColumns=function(){var y=[],p=this.getOptionValue("Auxiliary Columns");if(p==null)return y;for(var S=p.split(","),T=0;T<S.length;T++){var A=S[T].trim(),k="VARCHAR2(4000)",b=A.indexOf(" ");0<b&&(k=A.substring(b+1).toUpperCase(),A=A.substring(0,b)),y[A]=k}return y},this.objPrefix=function(y){var p=this.getOptionValue("schema");p==null&&(p=""),p!=""&&y==null?p=p+".":p="";var S="";return this.getOptionValue("prefix")!=null&&(S=this.getOptionValue("prefix")),p=p+S,S!=""&&(p=p+"_"),p.toLowerCase()}}const f=new m;let D={toDDL:f.toDDL.bind(f),toERD:f.toERD.bind(f),toQSQL:f.toQSQL.bind(f),errorMsgs:f.errors.bind(f)};return Object.defineProperty(D,"version",{writable:!1,value:"1.1.3"}),D}(),pe=X.toDDL,ge=X.toERD,Ce=X.toQSQL,ve=X.errors,Ae=X.version;K.default=X,K.errors=ve,K.toDDL=pe,K.toERD=ge,K.toQSQL=Ce,K.version=Ae,Object.defineProperties(K,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});

doc/development/NOTES.md

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Notes
2+
3+
## Version Bumps
4+
5+
As per Semantic Versioning, only changes to the `src` folder require a version
6+
bump. Fixes will bump the patch version, features, will bump the minor version
7+
and braking changes with the previous API will bump the major version.
8+
9+
Bumping the version of the library should only happen via NPM by executing one
10+
of the following commands at the root of the project:
11+
12+
```bash
13+
npm version patch --no-git-tag-version
14+
```
15+
16+
```bash
17+
npm version minor --no-git-tag-version
18+
```
19+
20+
```bash
21+
npm version major --no-git-tag-version
22+
```
23+
24+
Doing this will trigger a re-build of the application using the `postversion`
25+
script in the `package.json`.
26+
27+
Changes to other folders or files that do not affect the library's functionality
28+
should not bump the version of it.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)