@clickhouse/client-web 1.19.0 → 1.20.0-head.97f135e.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.
- package/README.md +8 -2
- package/dist/index.d.ts +31 -1
- package/dist/index.js +27 -19
- package/dist/index.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -12,8 +12,12 @@
|
|
|
12
12
|
<img alt="NPM Downloads" src="https://img.shields.io/npm/dw/%40clickhouse%2Fclient?color=%233178C6&logo=npm">
|
|
13
13
|
</a>
|
|
14
14
|
|
|
15
|
-
<a href="https://github.com/ClickHouse/clickhouse-js/actions/workflows/tests.yml">
|
|
16
|
-
<img src="https://github.com/ClickHouse/clickhouse-js/actions/workflows/tests.yml/badge.svg?branch=main">
|
|
15
|
+
<a href="https://github.com/ClickHouse/clickhouse-js/actions/workflows/tests-node.yml">
|
|
16
|
+
<img src="https://github.com/ClickHouse/clickhouse-js/actions/workflows/tests-node.yml/badge.svg?branch=main">
|
|
17
|
+
</a>
|
|
18
|
+
|
|
19
|
+
<a href="https://github.com/ClickHouse/clickhouse-js/actions/workflows/tests-web.yml">
|
|
20
|
+
<img src="https://github.com/ClickHouse/clickhouse-js/actions/workflows/tests-web.yml/badge.svg?branch=main">
|
|
17
21
|
</a>
|
|
18
22
|
|
|
19
23
|
<a href="https://codecov.io/gh/ClickHouse/clickhouse-js">
|
|
@@ -135,3 +139,5 @@ If you have any questions or need help, feel free to reach out to us in the [Com
|
|
|
135
139
|
## Contributing
|
|
136
140
|
|
|
137
141
|
Check out our [contributing guide](./CONTRIBUTING.md).
|
|
142
|
+
|
|
143
|
+
If you'd like to build a client for an alternative runtime (such as Bun or Cloudflare Workers) or an alternative protocol (such as the native ClickHouse protocol or gRPC over a proxy), see [Building specialized clients for alternative runtimes and protocols](./ALTERNATIVE_CLIENTS.md).
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,34 @@ export { createClient } from './client';
|
|
|
3
3
|
export { type WebClickHouseClientConfigOptions as ClickHouseClientConfigOptions } from './config';
|
|
4
4
|
export { ResultSet } from './result_set';
|
|
5
5
|
/** Re-export @clickhouse/client-common types */
|
|
6
|
-
export { type BaseClickHouseClientConfigOptions, type BaseQueryParams, type QueryParams, type ExecParams, type InsertParams, type InsertValues, type CommandParams, type CommandResult, type ExecResult, type InsertResult, type DataFormat, type RawDataFormat, type JSONDataFormat, type StreamableDataFormat, type StreamableJSONDataFormat, type SingleDocumentJSONFormat, type Logger, type LogParams, type ErrorLogParams, type WarnLogParams, type ClickHouseSettings, type MergeTreeSettings, type Row, type ResponseJSON, type InputJSON, type InputJSONObjectEachRow, type BaseResultSet, type PingResult, type ResponseHeaders,
|
|
6
|
+
export { type BaseClickHouseClientConfigOptions, type BaseQueryParams, type QueryParams, type ExecParams, type InsertParams, type InsertValues, type CommandParams, type CommandResult, type ExecResult, type InsertResult, type DataFormat, type RawDataFormat, type JSONDataFormat, type StreamableDataFormat, type StreamableJSONDataFormat, type SingleDocumentJSONFormat, type Logger, type LogParams, type ErrorLogParams, type WarnLogParams, type ClickHouseSettings, type MergeTreeSettings, type Row, type ResponseJSON, type InputJSON, type InputJSONObjectEachRow, type BaseResultSet, type PingResult, type ResponseHeaders, type SimpleColumnType, type ParsedColumnSimple, type ParsedColumnEnum, type ParsedColumnFixedString, type ParsedColumnNullable, type ParsedColumnDecimal, type ParsedColumnDateTime, type ParsedColumnDateTime64, type ParsedColumnArray, type ParsedColumnTuple, type ParsedColumnMap, type ParsedColumnType, type ProgressRow, type RowOrProgress, type ClickHouseAuth, type ClickHouseJWTAuth, type ClickHouseCredentialsAuth, } from '@clickhouse/client-common';
|
|
7
|
+
/**
|
|
8
|
+
* Re-export @clickhouse/client-common runtime values.
|
|
9
|
+
*
|
|
10
|
+
* These are intentionally re-exported through local bindings (rather than a direct
|
|
11
|
+
* `export { ... } from '@clickhouse/client-common'`) so that the `@deprecated` JSDoc tags
|
|
12
|
+
* applied to them in `@clickhouse/client-common` are NOT propagated to consumers of this package.
|
|
13
|
+
* Importing these values from `@clickhouse/client-web` is the recommended, non-deprecated path.
|
|
14
|
+
*/
|
|
15
|
+
import { ClickHouseError as ClickHouseError_, parseError as parseError_, ClickHouseLogLevel as ClickHouseLogLevel_, SettingsMap as SettingsMap_, parseColumnType as parseColumnType_, isProgressRow as isProgressRow_, isRow as isRow_, isException as isException_, TupleParam as TupleParam_ } from '@clickhouse/client-common';
|
|
16
|
+
export declare const ClickHouseError: typeof ClickHouseError_;
|
|
17
|
+
export type ClickHouseError = ClickHouseError_;
|
|
18
|
+
export declare const parseError: typeof parseError_;
|
|
19
|
+
export declare const ClickHouseLogLevel: typeof ClickHouseLogLevel_;
|
|
20
|
+
export type ClickHouseLogLevel = ClickHouseLogLevel_;
|
|
21
|
+
export declare const SettingsMap: typeof SettingsMap_;
|
|
22
|
+
export type SettingsMap = SettingsMap_;
|
|
23
|
+
export declare const SupportedJSONFormats: readonly ["JSONObjectEachRow", "JSON", "JSONStrings", "JSONCompact", "JSONCompactStrings", "JSONColumnsWithMetadata", "JSONEachRow", "JSONStringsEachRow", "JSONCompactEachRow", "JSONCompactStringsEachRow", "JSONCompactEachRowWithNames", "JSONCompactEachRowWithNamesAndTypes", "JSONCompactStringsEachRowWithNames", "JSONCompactStringsEachRowWithNamesAndTypes", "JSONEachRowWithProgress"];
|
|
24
|
+
export declare const SupportedRawFormats: readonly ["CSV", "CSVWithNames", "CSVWithNamesAndTypes", "TabSeparated", "TabSeparatedRaw", "TabSeparatedWithNames", "TabSeparatedWithNamesAndTypes", "CustomSeparated", "CustomSeparatedWithNames", "CustomSeparatedWithNamesAndTypes", "Parquet"];
|
|
25
|
+
export declare const StreamableFormats: readonly ["JSONEachRow", "JSONStringsEachRow", "JSONCompactEachRow", "JSONCompactStringsEachRow", "JSONCompactEachRowWithNames", "JSONCompactEachRowWithNamesAndTypes", "JSONCompactStringsEachRowWithNames", "JSONCompactStringsEachRowWithNamesAndTypes", "JSONEachRowWithProgress", "CSV", "CSVWithNames", "CSVWithNamesAndTypes", "TabSeparated", "TabSeparatedRaw", "TabSeparatedWithNames", "TabSeparatedWithNamesAndTypes", "CustomSeparated", "CustomSeparatedWithNames", "CustomSeparatedWithNamesAndTypes", "Parquet"];
|
|
26
|
+
export declare const StreamableJSONFormats: readonly ["JSONEachRow", "JSONStringsEachRow", "JSONCompactEachRow", "JSONCompactStringsEachRow", "JSONCompactEachRowWithNames", "JSONCompactEachRowWithNamesAndTypes", "JSONCompactStringsEachRowWithNames", "JSONCompactStringsEachRowWithNamesAndTypes", "JSONEachRowWithProgress"];
|
|
27
|
+
export declare const SingleDocumentJSONFormats: readonly ["JSON", "JSONStrings", "JSONCompact", "JSONCompactStrings", "JSONColumnsWithMetadata"];
|
|
28
|
+
export declare const RecordsJSONFormats: readonly ["JSONObjectEachRow"];
|
|
29
|
+
export declare const parseColumnType: typeof parseColumnType_;
|
|
30
|
+
export declare const SimpleColumnTypes: readonly ["Bool", "UInt8", "Int8", "UInt16", "Int16", "UInt32", "Int32", "UInt64", "Int64", "UInt128", "Int128", "UInt256", "Int256", "Float32", "Float64", "String", "UUID", "Date", "Date32", "IPv4", "IPv6"];
|
|
31
|
+
export declare const isProgressRow: typeof isProgressRow_;
|
|
32
|
+
export declare const isRow: typeof isRow_;
|
|
33
|
+
export declare const isException: typeof isException_;
|
|
34
|
+
export declare const TupleParam: typeof TupleParam_;
|
|
35
|
+
export type TupleParam = TupleParam_;
|
|
36
|
+
export declare const defaultJSONHandling: import("@clickhouse/client-common").JSONHandling;
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TupleParam = exports.isException = exports.isRow = exports.isProgressRow = exports.SimpleColumnTypes = exports.parseColumnType = exports.RecordsJSONFormats = exports.SingleDocumentJSONFormats = exports.StreamableJSONFormats = exports.StreamableFormats = exports.SupportedRawFormats = exports.SupportedJSONFormats = exports.SettingsMap = exports.ClickHouseLogLevel = exports.parseError = exports.ClickHouseError = exports.ResultSet = exports.createClient = void 0;
|
|
3
|
+
exports.defaultJSONHandling = exports.TupleParam = exports.isException = exports.isRow = exports.isProgressRow = exports.SimpleColumnTypes = exports.parseColumnType = exports.RecordsJSONFormats = exports.SingleDocumentJSONFormats = exports.StreamableJSONFormats = exports.StreamableFormats = exports.SupportedRawFormats = exports.SupportedJSONFormats = exports.SettingsMap = exports.ClickHouseLogLevel = exports.parseError = exports.ClickHouseError = exports.ResultSet = exports.createClient = void 0;
|
|
4
4
|
var client_1 = require("./client");
|
|
5
5
|
Object.defineProperty(exports, "createClient", { enumerable: true, get: function () { return client_1.createClient; } });
|
|
6
6
|
var result_set_1 = require("./result_set");
|
|
7
7
|
Object.defineProperty(exports, "ResultSet", { enumerable: true, get: function () { return result_set_1.ResultSet; } });
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Re-export @clickhouse/client-common runtime values.
|
|
10
|
+
*
|
|
11
|
+
* These are intentionally re-exported through local bindings (rather than a direct
|
|
12
|
+
* `export { ... } from '@clickhouse/client-common'`) so that the `@deprecated` JSDoc tags
|
|
13
|
+
* applied to them in `@clickhouse/client-common` are NOT propagated to consumers of this package.
|
|
14
|
+
* Importing these values from `@clickhouse/client-web` is the recommended, non-deprecated path.
|
|
15
|
+
*/
|
|
16
|
+
const client_common_1 = require("@clickhouse/client-common");
|
|
17
|
+
exports.ClickHouseError = client_common_1.ClickHouseError;
|
|
18
|
+
exports.parseError = client_common_1.parseError;
|
|
19
|
+
exports.ClickHouseLogLevel = client_common_1.ClickHouseLogLevel;
|
|
20
|
+
exports.SettingsMap = client_common_1.SettingsMap;
|
|
21
|
+
exports.SupportedJSONFormats = client_common_1.SupportedJSONFormats;
|
|
22
|
+
exports.SupportedRawFormats = client_common_1.SupportedRawFormats;
|
|
23
|
+
exports.StreamableFormats = client_common_1.StreamableFormats;
|
|
24
|
+
exports.StreamableJSONFormats = client_common_1.StreamableJSONFormats;
|
|
25
|
+
exports.SingleDocumentJSONFormats = client_common_1.SingleDocumentJSONFormats;
|
|
26
|
+
exports.RecordsJSONFormats = client_common_1.RecordsJSONFormats;
|
|
27
|
+
exports.parseColumnType = client_common_1.parseColumnType;
|
|
28
|
+
exports.SimpleColumnTypes = client_common_1.SimpleColumnTypes;
|
|
29
|
+
exports.isProgressRow = client_common_1.isProgressRow;
|
|
30
|
+
exports.isRow = client_common_1.isRow;
|
|
31
|
+
exports.isException = client_common_1.isException;
|
|
32
|
+
exports.TupleParam = client_common_1.TupleParam;
|
|
33
|
+
exports.defaultJSONHandling = client_common_1.defaultJSONHandling;
|
|
26
34
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAIA,mCAAuC;AAA9B,sGAAA,YAAY,OAAA;AAErB,2CAAwC;AAA/B,uGAAA,SAAS,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAIA,mCAAuC;AAA9B,sGAAA,YAAY,OAAA;AAErB,2CAAwC;AAA/B,uGAAA,SAAS,OAAA;AAoDlB;;;;;;;GAOG;AACH,6DAkBkC;AAErB,QAAA,eAAe,GAAG,+BAAgB,CAAA;AAElC,QAAA,UAAU,GAAG,0BAAW,CAAA;AACxB,QAAA,kBAAkB,GAAG,kCAAmB,CAAA;AAExC,QAAA,WAAW,GAAG,2BAAY,CAAA;AAE1B,QAAA,oBAAoB,GAAG,oCAAqB,CAAA;AAC5C,QAAA,mBAAmB,GAAG,mCAAoB,CAAA;AAC1C,QAAA,iBAAiB,GAAG,iCAAkB,CAAA;AACtC,QAAA,qBAAqB,GAAG,qCAAsB,CAAA;AAC9C,QAAA,yBAAyB,GAAG,yCAA0B,CAAA;AACtD,QAAA,kBAAkB,GAAG,kCAAmB,CAAA;AACxC,QAAA,eAAe,GAAG,+BAAgB,CAAA;AAClC,QAAA,iBAAiB,GAAG,iCAAkB,CAAA;AACtC,QAAA,aAAa,GAAG,6BAAc,CAAA;AAC9B,QAAA,KAAK,GAAG,qBAAM,CAAA;AACd,QAAA,WAAW,GAAG,2BAAY,CAAA;AAC1B,QAAA,UAAU,GAAG,0BAAW,CAAA;AAExB,QAAA,mBAAmB,GAAG,mCAAoB,CAAA"}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "1.
|
|
1
|
+
declare const _default: "1.20.0-head.97f135e.1";
|
|
2
2
|
export default _default;
|
package/dist/version.js
CHANGED
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;AAAA,kBAAe,uBAAuB,CAAA"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@clickhouse/client-web",
|
|
3
3
|
"description": "Official JS client for ClickHouse DB - Web API implementation",
|
|
4
4
|
"homepage": "https://clickhouse.com",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.20.0-head.97f135e.1",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"clickhouse",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"build": "rm -rf dist; tsc"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@clickhouse/client-common": "1.
|
|
34
|
+
"@clickhouse/client-common": "1.20.0-head.97f135e.1"
|
|
35
35
|
}
|
|
36
36
|
}
|