zenstack 0.2.15 → 0.3.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.
@@ -104,11 +104,13 @@ attribute @@deny(_ operation: String, _ condition: Boolean)
104
104
  * Indicates that the field is a password field and needs to be hashed before persistence.
105
105
  *
106
106
  * ZenStack uses `bcryptjs` library to hash password. You can use the `saltLength` parameter
107
- * to configure length of salt, or use parameter to provide an explicit salt. By default, 12-byte
108
- * long salt is used.
107
+ * to configure the cost of hashing, or use `salt` parameter to provide an explicit salt.
108
+ * By default, salt length of 12 is used.
109
109
  *
110
- * @saltLength: length of salt to use
111
- * @salt: salt to use
110
+ * @see https://www.npmjs.com/package/bcryptjs for details
111
+ *
112
+ * @saltLength: length of salt to use (cost factor for the hash function)
113
+ * @salt: salt to use (a pregenerated valid salt)
112
114
  */
113
115
  attribute @password(saltLength: Int?, salt: String?)
114
116
 
package/package.json CHANGED
@@ -2,11 +2,12 @@
2
2
  "name": "zenstack",
3
3
  "publisher": "zenstack",
4
4
  "displayName": "ZenStack Language Tools",
5
- "description": "ZenStack is a toolkit that simplifies full-stack development",
6
- "version": "0.2.15",
5
+ "description": "A toolkit for modeling data and access policies in full-stack development with Next.js and Typescript",
6
+ "version": "0.3.1",
7
7
  "author": {
8
8
  "name": "ZenStack Team"
9
9
  },
10
+ "license": "MIT",
10
11
  "keywords": [
11
12
  "fullstack",
12
13
  "react",
@@ -64,10 +65,10 @@
64
65
  },
65
66
  "main": "./bundle/extension.js",
66
67
  "dependencies": {
67
- "@zenstackhq/internal": "0.2.15",
68
+ "@zenstackhq/internal": "0.3.1",
68
69
  "change-case": "^4.1.2",
69
70
  "chevrotain": "^9.1.0",
70
- "colors": "^1.4.0",
71
+ "colors": "1.4.0",
71
72
  "commander": "^8.3.0",
72
73
  "langium": "^0.5.0",
73
74
  "pluralize": "^8.0.0",
package/src/cli/index.ts CHANGED
@@ -63,7 +63,7 @@ export default function (): void {
63
63
  .description(
64
64
  `${colors.bold.blue(
65
65
  'ζ'
66
- )} ZenStack simplifies fullstack development by generating backend services and Typescript clients from a data model.\n\nDocumentation: https://zenstack.dev/doc.`
66
+ )} ZenStack simplifies fullstack development by generating backend services and Typescript clients from a data model.\n\nDocumentation: https://go.zenstack.dev/doc.`
67
67
  )
68
68
  .showHelpAfterError()
69
69
  .showSuggestionAfterError();
@@ -104,11 +104,13 @@ attribute @@deny(_ operation: String, _ condition: Boolean)
104
104
  * Indicates that the field is a password field and needs to be hashed before persistence.
105
105
  *
106
106
  * ZenStack uses `bcryptjs` library to hash password. You can use the `saltLength` parameter
107
- * to configure length of salt, or use parameter to provide an explicit salt. By default, 12-byte
108
- * long salt is used.
107
+ * to configure the cost of hashing, or use `salt` parameter to provide an explicit salt.
108
+ * By default, salt length of 12 is used.
109
109
  *
110
- * @saltLength: length of salt to use
111
- * @salt: salt to use
110
+ * @see https://www.npmjs.com/package/bcryptjs for details
111
+ *
112
+ * @saltLength: length of salt to use (cost factor for the hash function)
113
+ * @salt: salt to use (a pregenerated valid salt)
112
114
  */
113
115
  attribute @password(saltLength: Int?, salt: String?)
114
116