Skip to content

Commit

Permalink
feat(zero-cache): use warn() for the warning message (#2611)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkgnotic authored Oct 9, 2024
1 parent de8ec15 commit fd61cd6
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 36 deletions.
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/datadog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"devDependencies": {
"@rocicorp/eslint-config": "^0.5.1",
"@rocicorp/lock": "^1.0.4",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/prettier-config": "^0.2.0",
"replicache": "15.2.1",
"typescript": "^5.5.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/replicache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dependencies": {
"@badrap/valita": "^0.3.9",
"@rocicorp/lock": "^1.0.4",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/resolver": "^1.0.2"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/replicache/src/replicache.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@ test('logSinks length 1', async () => {
const initLogCounts = () => ({
info: 0,
debug: 0,
warn: 0,
error: 0,
});
let logCounts: Record<LogLevel, number> = initLogCounts();
Expand Down Expand Up @@ -1183,6 +1184,7 @@ test('logSinks length 3', async () => {
Array.from({length: 3}, () => ({
info: 0,
debug: 0,
warn: 0,
error: 0,
}));
let logCounts: Record<LogLevel, number>[] = initLogCounts();
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@badrap/valita": "^0.3.9",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/resolver": "^1.0.2",
"semver": "^7.5.4",
"xxhash-wasm": "^1.0.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/zero-cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@google-cloud/precise-date": "^4.0.0",
"@postgresql-typed/oids": "^0.2.0",
"@rocicorp/lock": "^1.0.4",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/resolver": "^1.0.2",
"compare-utf8": "^0.1.1",
"datadog": "0.0.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function warnIfDataTypeSupported(
column: string,
) {
if (dataTypeToZqlValueType(pgDataType) === undefined) {
lc.info?.(
lc.warn?.(
`\n\nWARNING: zero does not yet support the "${pgDataType}" data type.\n` +
`The "${table}"."${column}" column will not be synced to clients.\n\n`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/zero-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"dependencies": {
"@rocicorp/lock": "^1.0.4",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/resolver": "^1.0.2"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/zero-integration-test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"export": "./src/crud.ts",
"dependencies": {
"@badrap/valita": "^0.3.9",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/resolver": "^1.0.2",
"semver": "^7.5.4"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/zero/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@google-cloud/precise-date": "^4.0.0",
"@postgresql-typed/oids": "^0.2.0",
"@rocicorp/lock": "^1.0.4",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/resolver": "^1.0.2",
"compare-utf8": "^0.1.1",
"dotenv": "^16.4.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/zql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"devDependencies": {
"@rocicorp/eslint-config": "^0.5.1",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/prettier-config": "^0.2.0",
"@rocicorp/rails": "^0.10.0",
"btree": "0.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/zqlite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"devDependencies": {
"@rocicorp/eslint-config": "^0.5.1",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"@rocicorp/prettier-config": "^0.2.0",
"@types/better-sqlite3": "^7.6.0",
"fast-check": "^3.18.0",
Expand All @@ -35,7 +35,7 @@
"dependencies": {
"@databases/escape-identifier": "^1.0.3",
"@databases/sql": "^3.3.0",
"@rocicorp/logger": "^5.2.2",
"@rocicorp/logger": "^5.3.0",
"pg-logical-replication": "^2.0.7",
"zql": "0.0.0"
}
Expand Down

0 comments on commit fd61cd6

Please sign in to comment.