Skip to content

Commit e0b2a25

Browse files
NicolappsConvex, Inc.
authored andcommitted
Capitalize JavaScript and TypeScript correctly (#42238)
GitOrigin-RevId: 1c09f4224c8fbb1015b3d23f9755998317a9af90
1 parent b4f1389 commit e0b2a25

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

crates/convex_macro/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ pub fn instrument_future(_attr: TokenStream, item: TokenStream) -> TokenStream {
169169
}
170170

171171
/// Use as #[convex_macro::v8_op] to annotate "ops" (Rust code callable from
172-
/// Javascript that is shipped with backend).
172+
/// JavaScript that is shipped with backend).
173173
/// Must be used within the `isolate` crate.
174174
///
175175
/// Types:

crates/isolate/src/environment/udf/async_syscall.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ impl<RT: Runtime, P: AsyncSyscallProvider<RT>> DatabaseSyscallsV1<RT, P> {
769769

770770
// Trim to u32 and check for overflow.
771771
let result = u32::try_from(result)?;
772-
// Return as f64, which converts to number type in Javascript.
772+
// Return as f64, which converts to number type in JavaScript.
773773
let result = f64::from(result);
774774
Ok(ConvexValue::from(result).to_internal_json())
775775
}

crates/local_backend/src/node_action_callbacks.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ pub async fn vector_search(
421421
// This is a workaround. The correct way to track usage is to return in the
422422
// response, and then Node.js should aggregate it and then send it back to
423423
// the backend alongside the action result, which is how Funrun actions
424-
// work. Since we don't have that pipeline working in Node.js/Typescript, we
424+
// work. Since we don't have that pipeline working in Node.js/TypeScript, we
425425
// report vector usage directly here.
426426
if let Some(action_name) = action_name {
427427
let usage = FunctionUsageTracker::new();

npm-packages/convex/src/vendor/jwt-encode/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function sign(
5858
/**
5959
* Safely base64url encode a JS Object in a way that is UTF-8 safe
6060
*
61-
* @param {Object} data - Javascript object payload to be encoded
61+
* @param {Object} data - JavaScript object payload to be encoded
6262
* @return {string} utf-8 safe base64url encoded payload
6363
*/
6464
function encode(data: Record<string, any>): string {

npm-packages/docs/docs/ai/using-github-copilot.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ through how to setup GitHub Copilot for the best possible results with Convex.
1515
Add the following
1616
[instructions](https://code.visualstudio.com/docs/copilot/copilot-customization#_instruction-files)
1717
file to your `.github/instructions` directory in your project and it will
18-
automatically be included when working with Typescript or Javascript files:
18+
automatically be included when working with TypeScript or JavaScript files:
1919

2020
- [convex.instructions.md](https://convex.link/convex_github_copilot_instructions)
2121

npm-packages/docs/docs/database/reading-data/reading-data.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ const messages = await ctx.db.query("messages").order("desc").collect();
134134

135135
If you need to sort on a field other than `_creationTime` and your document
136136
query returns a small number of documents (on the order of hundreds rather than
137-
thousands of documents), consider sorting in Javascript:
137+
thousands of documents), consider sorting in JavaScript:
138138

139139
```ts
140140
// Get top 10 most liked messages, assuming messages is a fairly small table:
@@ -228,7 +228,7 @@ Convex prefers to have a few, simple ways to walk through and select documents
228228
from tables. In Convex, there is no specific query language for complex logic
229229
like a join, an aggregation, or a group by.
230230

231-
Instead, you can write the complex logic in Javascript! Convex guarantees that
231+
Instead, you can write the complex logic in JavaScript! Convex guarantees that
232232
the results will be consistent.
233233

234234
### Join

npm-packages/docs/docs/database/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: "Supported data types in Convex documents"
66

77
import ConvexValues from "@site/docs/\_convexValues.mdx";
88

9-
All Convex documents are defined as Javascript objects. These objects can have
9+
All Convex documents are defined as JavaScript objects. These objects can have
1010
field values of any of the types below.
1111

1212
You can codify the shape of documents within your tables by

npm-packages/docs/docs/functions/bundling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Thanks to bundling you can write your code using both modern ECMAScript Modules
2525

2626
<Details summary="ESM vs. CJS">
2727
ESM
28-
- Is the standard for browser Javascript
28+
- Is the standard for browser JavaScript
2929
- Uses static imports via the `import` and `export` **keywords** (not functions)
3030
at the global scope
3131
- Also supports dynamic imports via the asynchronous `import` function

npm-packages/docs/docs/functions/error-handling/error-handling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ Queries and mutations error out when:
168168
- More than 16384 documents are scanned
169169
- More than 8MiB worth of data is scanned
170170
- More than 4096 queries calls to `db.get` or `db.query` are made
171-
- The function spends more than 1 second executing Javascript
171+
- The function spends more than 1 second executing JavaScript
172172

173173
In addition, mutations error out when:
174174

npm-packages/docs/docs/functions/runtimes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Convex provides a "seeded" strong pseudo-random number generator
9696
at `Math.random()` so that it can guarantee the determinism of your function.
9797
The random number generator's seed is an implicit parameter to your function.
9898
Multiple calls to `Math.random()` in one function call will return different
99-
random values. Note that Convex does not reevaluate the Javascript modules on
99+
random values. Note that Convex does not reevaluate the JavaScript modules on
100100
every function run, so a call to `Math.random()` stored in a global variable
101101
will not change between function runs.
102102

0 commit comments

Comments
 (0)