-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
docs: fix typos in the js documentation #11754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis PR applies grammar and JSDoc wording fixes across multiple files (indefinite article corrections, punctuation, and minor phrasing) with no changes to code logic, signatures, or runtime behavior. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Areas to spot-check:
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (3)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (20)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 5
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
src/driver/mysql/MysqlQueryRunner.ts (1)
2009-2018: Grammar: dropUniqueConstraints comment should be plural without article.Use “Drops unique constraints.”
Apply this diff:
- /** - * Drops a unique constraints. - */ + /** + * Drops unique constraints. + */src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts (1)
1623-1628: Grammar: Fix "Drops a unique constraints." to "Drops unique constraints." across all driver query runners.The sweep confirmed this grammar error exists in 5 locations across multiple driver implementations. Apply the same fix to all instances:
- src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts:1623
- src/driver/sqlserver/SqlServerQueryRunner.ts:2314
- src/driver/sap/SapQueryRunner.ts:2148
- src/driver/mongodb/MongoQueryRunner.ts:998
- src/driver/mysql/MysqlQueryRunner.ts:2009
- /** - * Drops a unique constraints. - */ + /** + * Drops unique constraints. + */
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (13)
src/decorator/tree/TreeChildren.ts(1 hunks)src/decorator/tree/TreeParent.ts(1 hunks)src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts(2 hunks)src/driver/mongodb/MongoQueryRunner.ts(3 hunks)src/driver/mongodb/typings.ts(1 hunks)src/driver/mysql/MysqlQueryRunner.ts(2 hunks)src/driver/oracle/OracleQueryRunner.ts(2 hunks)src/driver/sap/SapQueryRunner.ts(1 hunks)src/driver/spanner/SpannerQueryRunner.ts(1 hunks)src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts(2 hunks)src/driver/sqlserver/SqlServerQueryRunner.ts(1 hunks)src/query-runner/QueryRunner.ts(1 hunks)test/functional/entity-schema/uniques/uniques-basic.ts(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2025-07-27T20:50:10.364Z
Learnt from: alumni
Repo: typeorm/typeorm PR: 11581
File: docs/docs/drivers/postgres.md:23-23
Timestamp: 2025-07-27T20:50:10.364Z
Learning: The correct data source type for Aurora PostgreSQL in TypeORM is `aurora-postgres`, not `aurora-data-api-pg`. The `aurora-data-api-pg` driver was renamed to `aurora-postgres` according to the CHANGELOG.md. This is defined in the DatabaseType union type and AuroraPostgresConnectionOptions interface.
Applied to files:
src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts
📚 Learning: 2025-07-27T17:29:18.547Z
Learnt from: alumni
Repo: typeorm/typeorm PR: 11581
File: docs/docs/drivers/mongodb.md:9-13
Timestamp: 2025-07-27T17:29:18.547Z
Learning: TypeORM supports MongoDB driver versions "^5.8.0 || ^6.0.0" according to the peerDependencies in package.json. The v4 driver is NOT supported. Always check package.json for accurate peer dependency information.
Applied to files:
src/driver/mongodb/MongoQueryRunner.ts
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: tests-windows / sqljs
- GitHub Check: tests-windows / sqlite
- GitHub Check: tests-windows / better-sqlite3
🔇 Additional comments (13)
src/driver/spanner/SpannerQueryRunner.ts (1)
1148-1149: JSDoc grammar fix looks good.Clearer phrasing; no behavior change.
src/decorator/tree/TreeParent.ts (1)
7-9: Improved JSDoc article usage — OKReads well and accurately describes the decorator.
test/functional/entity-schema/uniques/uniques-basic.ts (1)
23-24: Test description change is benignNo functional impact; keeps intent clear.
src/driver/oracle/OracleQueryRunner.ts (1)
1904-1905: LGTM (singular form is correct).“Drops a unique constraint.” matches the method and reads well.
src/driver/mongodb/typings.ts (1)
2757-2760: Grammar fix LGTM.Docstring now reads naturally; no functional/type impact. One ask: this file is a copied upstream typing — confirm we're okay diverging here, or note that future upstream syncs won’t overwrite this edit.
src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts (1)
1611-1616: LGTM: singular form fixed correctly.src/query-runner/QueryRunner.ts (1)
388-394: LGTM: corrected article for singular case.src/driver/mysql/MysqlQueryRunner.ts (1)
1997-2006: LGTM: singular form fixed correctly.src/driver/sqlite-abstract/AbstractSqliteQueryRunner.ts (2)
864-864: LGTM!The JSDoc comment for
dropUniqueConstraintis clear and accurately describes the method behavior.
885-885: Grammar correction in JSDoc looks good.The JSDoc for
dropUniqueConstraintshas been corrected to accurately describe the method (drops rather than creates). The fix addresses the typo mentioned in the PR objectives.src/driver/mongodb/MongoQueryRunner.ts (3)
536-536: Consider minor grammar adjustment in JSDoc.The reworded comment is clear but has a minor grammatical issue: "its single connection already created" should be "a single connection is already created" for better readability. However, since this is a documentation pass, the current phrasing is acceptable.
541-544: LGTM!The JSDoc and inline comment for the
release()method clearly explain that MongoDB maintains a single connection and doesn't support connection release operations. This is accurate and helpful documentation.
986-986: LGTM!The JSDoc for
dropUniqueConstraintis accurate. While the method throws an error (as MongoDB doesn't support schema operations), the documentation correctly describes what the operation would do if it were supported.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
gioboa
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your help @pkuczynski
Description of change
Following #11713, applies similar changes in the jsdoc
Pull-Request Checklist
masterbranchFixes #00000Summary by CodeRabbit
Note: These are documentation-only edits; no public APIs, behavior, or functionality were changed.