convex 1.43.0-alpha.0 → 1.43.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.
Files changed (54) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/browser.bundle.js +1 -1
  3. package/dist/browser.bundle.js.map +1 -1
  4. package/dist/cjs/cli/lib/localDeployment/run.js +1 -1
  5. package/dist/cjs/cli/lib/localDeployment/run.js.map +2 -2
  6. package/dist/cjs/cli/lib/utils/sentry.js +2 -0
  7. package/dist/cjs/cli/lib/utils/sentry.js.map +2 -2
  8. package/dist/cjs/index.js +1 -1
  9. package/dist/cjs/index.js.map +1 -1
  10. package/dist/cjs/server/database.js.map +1 -1
  11. package/dist/cjs/server/log.js +1 -2
  12. package/dist/cjs/server/log.js.map +2 -2
  13. package/dist/cjs/server/logVars.js +1 -4
  14. package/dist/cjs/server/logVars.js.map +2 -2
  15. package/dist/cjs-types/cli/lib/utils/sentry.d.ts +1 -0
  16. package/dist/cjs-types/cli/lib/utils/sentry.d.ts.map +1 -1
  17. package/dist/cjs-types/index.d.ts +1 -1
  18. package/dist/cjs-types/index.d.ts.map +1 -1
  19. package/dist/cjs-types/server/database.d.ts +14 -0
  20. package/dist/cjs-types/server/database.d.ts.map +1 -1
  21. package/dist/cjs-types/server/log.d.ts.map +1 -1
  22. package/dist/cjs-types/server/logVars.d.ts +0 -6
  23. package/dist/cjs-types/server/logVars.d.ts.map +1 -1
  24. package/dist/cli.bundle.cjs +245 -180
  25. package/dist/cli.bundle.cjs.map +4 -4
  26. package/dist/esm/cli/lib/localDeployment/run.js +2 -2
  27. package/dist/esm/cli/lib/localDeployment/run.js.map +2 -2
  28. package/dist/esm/cli/lib/utils/sentry.js +1 -0
  29. package/dist/esm/cli/lib/utils/sentry.js.map +2 -2
  30. package/dist/esm/index.js +1 -1
  31. package/dist/esm/index.js.map +1 -1
  32. package/dist/esm/server/log.js +2 -3
  33. package/dist/esm/server/log.js.map +2 -2
  34. package/dist/esm/server/logVars.js +1 -3
  35. package/dist/esm/server/logVars.js.map +2 -2
  36. package/dist/esm-types/cli/lib/utils/sentry.d.ts +1 -0
  37. package/dist/esm-types/cli/lib/utils/sentry.d.ts.map +1 -1
  38. package/dist/esm-types/index.d.ts +1 -1
  39. package/dist/esm-types/index.d.ts.map +1 -1
  40. package/dist/esm-types/server/database.d.ts +14 -0
  41. package/dist/esm-types/server/database.d.ts.map +1 -1
  42. package/dist/esm-types/server/log.d.ts.map +1 -1
  43. package/dist/esm-types/server/logVars.d.ts +0 -6
  44. package/dist/esm-types/server/logVars.d.ts.map +1 -1
  45. package/dist/react.bundle.js +1 -1
  46. package/dist/react.bundle.js.map +1 -1
  47. package/package.json +2 -3
  48. package/src/cli/lib/localDeployment/run.ts +2 -2
  49. package/src/cli/lib/utils/sentry.ts +3 -0
  50. package/src/index.ts +1 -1
  51. package/src/server/audit_logging.test.ts +1 -1
  52. package/src/server/database.ts +0 -2
  53. package/src/server/log.ts +1 -4
  54. package/src/server/logVars.ts +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,40 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.43.0 (unreleased)
4
+ - Added new `npx convex deployment usage` and
5
+ `npx convex deployment usage-limits` CLI commands to
6
+ view a deployment’s current resource usage, and
7
+ view or edit deployment usage limits.
8
+ - When defining hourly cron jobs, you can now omit the
9
+ `minuteUTC` parameter. When omitted, Convex will automatically
10
+ choose a stable start time within the scheduled hour,
11
+ avoiding concentrating jobs at the top of the hour.
12
+ - Mutations can now reference their upcoming
13
+ [_commit timestamp_](https://docs.convex.dev/database/advanced/commit-timestamp)
14
+ with `ctx.db.vars.commitTs`. While the mutation is running,
15
+ `ctx.db.vars.commitTs` is a placeholder symbol that is
16
+ replaced with a Int64 value at commit time that is guaranteed
17
+ to strictly follow commit order, unlike the `_creationTime` system field.
18
+ This low-level primitive is helpful for advanced use cases such as implementing
19
+ efficient FIFO queues.
20
+ - Added a new `v.commitTs()` validator that accepts either the
21
+ upcoming commit timestamp placeholder, or a Int64 commit timestamp.
22
+ - The Convex CLI is now able to find the right TypeScript compiler
23
+ when using side-by-side TypeScript 6 and 7 installation.
24
+ (This setup is used in codebases that want to use the native TypeScript 7
25
+ compiler but still need access to the TypeScript compiler JavaScript API.)
26
+ - Deprecated the `typescriptCompiler` parameter in `convex.json`.
27
+ This parameter was only necessary when using the TypeScript Native Preview
28
+ (@typescript/native-preview). With TypeScript 7, Convex
29
+ automatically picks the right binary.
30
+ - When a component only uses environment variables that are all optional,
31
+ it’s now possible to omit the `env` argument from `app.use(component, { … })`.
32
+ - Fixed a bug where `app.use()` failed to require
33
+ a second argument when a component has required environment variables
34
+ (e.g. `app.use(component, { env: { REQUIRED_VAR: "value" } })`).
35
+ - Fixed a bug in `usePaginatedQuery_experimental`
36
+ where page splits were handled incorrectly.
37
+
3
38
  ## 1.42.3
4
39
 
5
40
  - Fixed a bug where the codegen would not sort module paths in
@@ -29,7 +29,7 @@ var convex = (() => {
29
29
  });
30
30
 
31
31
  // src/index.ts
32
- var version = "1.43.0-alpha.0";
32
+ var version = "1.43.0";
33
33
 
34
34
  // src/values/base64.ts
35
35
  var base64_exports = {};