string-array 2.1.8 → 2.1.9

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.
Files changed (2) hide show
  1. package/README.md +1 -1
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -36,7 +36,7 @@ const r2 = stringArray.parse("test[1,2,3]");
36
36
 
37
37
  * All leading and trailing whitespaces are automatically `trim`ed.
38
38
 
39
- * Can't have these characters in elements: `,` `[` `]`
39
+ * Can't have `,` or `]` in elements. A `[` in the middle of an element is kept as plain text, but the next `]` still closes the array, so `[a[b], c]` gives `["a[b"]` with `c]` left in `remain`.
40
40
 
41
41
  ## Examples
42
42
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "string-array",
3
- "version": "2.1.8",
3
+ "version": "2.1.9",
4
4
  "description": "Parse string into array of string elements",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -50,6 +50,7 @@
50
50
  "@vitest/coverage-v8": "^5.0.0",
51
51
  "prettier": "^3.5.3",
52
52
  "publish-util": "^3.1.8",
53
+ "run-verify": "^2.2.0",
53
54
  "typescript": "^7.0.2",
54
55
  "vite": "^8.2.2",
55
56
  "vitest": "^5.0.0"