@dolthub/web-utils 0.1.9 → 0.2.0

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Select, ColumnRef } from 'node-sql-parser';
1
+ import { ColumnRef, Select } from 'node-sql-parser';
2
2
  import { ParsedUrlQueryInput } from 'querystring';
3
3
  import { UrlObject } from 'url';
4
4
 
@@ -427,4 +427,5 @@ declare function usernameValidator(s: string): {
427
427
  detailedErrorMsg: string;
428
428
  };
429
429
 
430
- export { KeyCodes, type Maybe, NULL_VALUE, Route, areTimeAgosEqual, compareArray, convertToSqlWithNewColNames, convertToSqlWithNewCols, convertToSqlWithNewCondition, convertToSqlWithOrderBy, convertToUTCDate, dedupe, emailValidator, enumKeys, excerpt, fakeEscapePress, formatNumber, formatToRoundedUsd, formatToUsd, getColumns, getDateMinusHours, getDateString, getDisplayValue, getDisplayValueForApi, getLongDateTimeString, getNow, getTableName, getTimeAgoString, getTimeWithSeconds, getUTCDateAndTimeString, getUTCDateString, getUTCNowDateString, getUTCTimeString, initialUppercase, isMultipleQueries, isMutation, isNullValue, isReadQuery, loremer, makeQueryExecutable, nTimes, nTimesWithIndex, oneHour, parseSelectQuery, pluralize, prettyJSON, prettyJSONText, queryHasOrderBy, randomArrayItem, randomNum, removeColumnFromQuery, requireTableNameForSelect, safeJSONParse, sprintf, toOrdinal, tuplify, usernameValidator };
430
+ export { KeyCodes, NULL_VALUE, Route, areTimeAgosEqual, compareArray, convertToSqlWithNewColNames, convertToSqlWithNewCols, convertToSqlWithNewCondition, convertToSqlWithOrderBy, convertToUTCDate, dedupe, emailValidator, enumKeys, excerpt, fakeEscapePress, formatNumber, formatToRoundedUsd, formatToUsd, getColumns, getDateMinusHours, getDateString, getDisplayValue, getDisplayValueForApi, getLongDateTimeString, getNow, getTableName, getTimeAgoString, getTimeWithSeconds, getUTCDateAndTimeString, getUTCDateString, getUTCNowDateString, getUTCTimeString, initialUppercase, isMultipleQueries, isMutation, isNullValue, isReadQuery, loremer, makeQueryExecutable, nTimes, nTimesWithIndex, oneHour, parseSelectQuery, pluralize, prettyJSON, prettyJSONText, queryHasOrderBy, randomArrayItem, randomNum, removeColumnFromQuery, requireTableNameForSelect, safeJSONParse, sprintf, toOrdinal, tuplify, usernameValidator };
431
+ export type { Maybe };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dolthub/web-utils",
3
3
  "author": "DoltHub",
4
4
  "description": "A collection of utilities for building web applications",
5
- "version": "0.1.9",
5
+ "version": "0.2.0",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -14,7 +14,6 @@
14
14
  "utils",
15
15
  "frontend"
16
16
  ],
17
- "packageManager": "yarn@4.0.2",
18
17
  "scripts": {
19
18
  "clean": "rm -rf dist && rm -rf .rollup.cache && rm -rf types && rm -rf tsconfig.tsbuildinfo && rm -rf .eslintcache",
20
19
  "compile": "tsc -b",
@@ -29,26 +28,27 @@
29
28
  "yalc:push": "yarn dbuild && yalc push"
30
29
  },
31
30
  "devDependencies": {
32
- "@babel/core": "^7.26.9",
33
- "@babel/preset-env": "^7.26.7",
34
- "@babel/preset-typescript": "^7.26.0",
35
- "@rollup/plugin-commonjs": "^28.0.2",
36
- "@rollup/plugin-node-resolve": "^16.0.0",
31
+ "@babel/core": "^7.28.3",
32
+ "@babel/preset-env": "^7.28.6",
33
+ "@babel/preset-typescript": "^7.28.5",
34
+ "@rollup/plugin-commonjs": "^28.0.6",
35
+ "@rollup/plugin-node-resolve": "^16.0.3",
37
36
  "@rollup/plugin-typescript": "^11.1.5",
38
- "@types/eslint": "^8",
37
+ "@types/eslint": "^9",
39
38
  "@types/jest": "^29.5.14",
40
39
  "@types/rollup-plugin-peer-deps-external": "^2",
41
- "@typescript-eslint/eslint-plugin": "^7.1.0",
42
- "@typescript-eslint/parser": "^7.16.0",
43
- "babel-jest": "^29.7.0",
44
- "eslint": "^8.57.0",
40
+ "@typescript-eslint/eslint-plugin": "^8.54.0",
41
+ "@typescript-eslint/parser": "^8.45.0",
42
+ "babel-jest": "^30.2.0",
43
+ "eslint": "^9.39.2",
45
44
  "jest": "^29.7.0",
46
- "prettier": "^3.3.3",
47
- "rollup": "^4.28.0",
48
- "rollup-plugin-dts": "^6.1.1",
45
+ "node-sql-parser": "^5.4.0",
46
+ "prettier": "^3.6.2",
47
+ "rollup": "^4.59.0",
48
+ "rollup-plugin-dts": "^6.3.0",
49
49
  "rollup-plugin-peer-deps-external": "^2.2.4",
50
50
  "rollup-plugin-terser": "^7.0.2",
51
- "typescript": "^5.6.3",
51
+ "typescript": "^5.9.3",
52
52
  "yalc": "^1.0.0-pre.53"
53
53
  },
54
54
  "repository": {
@@ -58,8 +58,15 @@
58
58
  "bugs": {
59
59
  "url": "https://github.com/dolthub/react-library/issues"
60
60
  },
61
+ "peerDependencies": {
62
+ "node-sql-parser": "^5.4.0"
63
+ },
64
+ "peerDependenciesMeta": {
65
+ "node-sql-parser": {
66
+ "optional": false
67
+ }
68
+ },
61
69
  "dependencies": {
62
- "node-sql-parser": "^5.3.5",
63
70
  "timeago.js": "^4.0.2"
64
71
  }
65
72
  }