instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
typegoose__mongodb-memory-server__858 | typegoose/mongodb-memory-server | 858 | defect | fca7981b0b60ae22994800e0de2b820a3d8cefe7 | 6d7a7f1f01c88fa58fbfd2b026ded95d4915c6bf | fix(MongoBinaryDownloadUrl): support Debian 12 (Bookworm) | Binaries for Debian 12 are available for MongoDB >= 7.0.3.
See https://jira.mongodb.org/browse/SERVER-77231
## Related Issues
<!--Remove this part if not applicable-->
- #797
| diff --git a/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts b/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts
index 9496e6822..c1599abfd 100644
--- a/packages/mongodb-memory-server-core/src/util/MongoBinaryDownloadUrl.ts
+++ b/packages/mongodb-memory-server-core/src/util/M... | 1 | 1 | 1 | [{"id": "G0", "claim": "The pull request's Debian 12 support is missing its documentation update: docs/guides/supported-systems.md still lists Debian's highest supported version as 11 (and default 10) instead of 12.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
typeorm__typeorm__10086 | typeorm/typeorm | 10,086 | defect | d4607a86723eef07e62e6d7321a07f3ae5ed1f90 | 3bf59b016ced69ef8a34ef99c8ceac8368031a9c | feat: implement or operator | This new feature enables typeorm to allow use multiple operators joining with or
Closes: #10054
### Pull-Request Checklist
- [x] Code is up-to-date with the `master` branch
- [x] `npm run format` to apply prettier formatting
- [ ] `npm run test` passes with this change
- [x] This pull request links releva... | diff --git a/docs/find-options.md b/docs/find-options.md
index 0c47e88c321..3541a3fb400 100644
--- a/docs/find-options.md
+++ b/docs/find-options.md
@@ -606,7 +606,9 @@ SELECT * FROM "post" WHERE "titles" IN ('Go To Statement Considered Harmful', 'S
## Combining Advanced Options
-Also you can combine these operato... | 9 | 7 | 2 | [{"id": "G0", "claim": "The export added in src/index.ts should be named 'Or' rather than 'OR' to match the existing operator naming.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The 'OR' to 'Or' renaming should also be carried into the readme.md docum... | null |
typeorm__typeorm__10151 | typeorm/typeorm | 10,151 | defect | b1a3a395049052f3f031e9fd27b99769b03b9011 | 12fc51a825815db63b004ba9cc48f21c214095ef | fix: correctly keep query.data from ormOption for commit / rollback subscribers | <!--
😀 Wonderful! Thank you for opening a pull request for TypeORM.
Please fill in the information below to expedite the review
and (hopefully) merge of your change.
If unsure about something.. just do as best as you're able,
or reach out through our community support channels!
https://github.co... | diff --git a/src/persistence/EntityPersistExecutor.ts b/src/persistence/EntityPersistExecutor.ts
index afe53347eb2..24652446132 100644
--- a/src/persistence/EntityPersistExecutor.ts
+++ b/src/persistence/EntityPersistExecutor.ts
@@ -53,10 +53,10 @@ export class EntityPersistExecutor {
// save data in the que... | 1 | 1 | 0 | [{"id": "G0", "claim": "The debugging `console.log({ connections })` added to the \"transactionStart\" test should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
typeorm__typeorm__11066 | typeorm/typeorm | 11,066 | defect | 77b6ca99f514d84371805affd695d3ca4c856f2f | 68ceb14a6ade79d9a9bf5efa34f9ad928abf3ef1 | fix(query-builder): resolve alias collision for self-referencing relations with query load strategy | Self-referencing relations fail to load when `relationLoadStrategy: "query"` because the join alias collides with the main alias — the entity name is used for both sides of the join, producing incorrect SQL like `a.id = a.parent` instead of `b.id = a.parent`.
Fixes: #9936
### Changes
- Generate a unique join a... | diff --git a/src/query-builder/RelationLoader.ts b/src/query-builder/RelationLoader.ts
index fbf7fa416be..24e9e25af0b 100644
--- a/src/query-builder/RelationLoader.ts
+++ b/src/query-builder/RelationLoader.ts
@@ -81,7 +81,6 @@ export class RelationLoader {
? entityOrEntities
: [entityOrEntitie... | 3 | 1 | 0 | [{"id": "G0", "claim": "Add an upper bound (e.g. a maximum iteration limit) to the alias generation loop so it cannot run indefinitely in edge cases.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Concatenating the counter directly to the entity nam... | null |
typeorm__typeorm__11228 | typeorm/typeorm | 11,228 | defect | fa3cd436a28e8a9dacb9be3da7f2896478d0bccd | abf63fb8385a2cb6753258eab83d478f39f4009e | fix: update RelationIdLoader to use DriverUtils.getAlias | Update RelationIdLoader to use DriverUtils.getAlias to prevent aliases being possibly trimmed by database.
Closes: #11227
### Description of change
Updates `RelationIdLoader` class to use `DriverUtils.getAlias` to generate column aliases. This resolves issues with databases that have hard limit on column a... | diff --git a/src/query-builder/RelationIdLoader.ts b/src/query-builder/RelationIdLoader.ts
index 0f59f7c8449..4fdae27d915 100644
--- a/src/query-builder/RelationIdLoader.ts
+++ b/src/query-builder/RelationIdLoader.ts
@@ -461,16 +461,19 @@ export class RelationIdLoader {
return
... | 8 | 3 | 3 | [{"id": "G0", "claim": "Convert the remaining raw alias concatenations in RelationIdLoader.ts to DriverUtils.buildAlias to avoid DB-side alias truncation and hashing mismatches.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Consider enabling the ne... | null |
typeorm__typeorm__11257 | typeorm/typeorm | 11,257 | defect | 79960e136dc17c8f0e5d3a049e078dbe94b7c68c | 1dac88cebb7bb8a2582013555f0011ef362644e8 | test: fix and run tests on Windows | <!--
😀 Wonderful! Thank you for opening a pull request for TypeORM.
Please fill in the information below to expedite the review
and (hopefully) merge of your change.
If unsure about something.. just do as best as you're able,
or reach out through our community support channels!
https://github.co... | diff --git a/test/functional/multi-database/multi-database-basic-functionality/multi-database-basic-functionality.ts b/test/functional/multi-database/multi-database-basic-functionality/multi-database-basic-functionality.ts
index e789ffbc272..3091c7e6ffa 100644
--- a/test/functional/multi-database/multi-database-basic-f... | 2 | 1 | 0 | [{"id": "G0", "claim": "The filepathToName() test block should use an early return instead of wrapping its body in a conditional, especially since the max line length is 80.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The file (the rimraf cal... | null |
typeorm__typeorm__11267 | typeorm/typeorm | 11,267 | defect | fa3cd436a28e8a9dacb9be3da7f2896478d0bccd | b42d508206ab03e65a9cd4d34bda3a450f7e6596 | fix: prevent eager-loaded entities from overwriting manual relations | ### Description of change
The issue was caused by the way TypeORM processing queries. For each join, it checks if the join for that table exists. However, if the join has a condition, it will always add the join, even if a previous join for the same table already exists.
In the case of eager loading, TypeORM crea... | diff --git a/src/metadata/RelationMetadata.ts b/src/metadata/RelationMetadata.ts
index a349728615d..f521159229a 100644
--- a/src/metadata/RelationMetadata.ts
+++ b/src/metadata/RelationMetadata.ts
@@ -520,6 +520,8 @@ export class RelationMetadata {
entity,
)
} else {
+ ... | 8 | 4 | 2 | [{"id": "G0", "claim": "The new merge logic should skip merging when the incoming value is not an object (e.g. null or a primitive) and for array-based (to-many) and lazy relations, otherwise clearing a relation or merging such values could fail or corrupt relation data.", "category": "correctness", "verdict": "uncerta... | null |
typeorm__typeorm__11269 | typeorm/typeorm | 11,269 | defect | 61a6f971afa6c82fb6abbc57839dac25a81db775 | 84895f49e58b16042d13a6807e30c133722ef8a6 | fix: change how array columns are compared on column changed detection | Closes: #5967
<!--
😀 Wonderful! Thank you for opening a pull request for TypeORM.
Please fill in the information below to expedite the review
and (hopefully) merge of your change.
If unsure about something.. just do as best as you're able,
or reach out through our community support channels!
... | diff --git a/src/persistence/SubjectChangedColumnsComputer.ts b/src/persistence/SubjectChangedColumnsComputer.ts
index c7dd51a816a..dfd3972a715 100644
--- a/src/persistence/SubjectChangedColumnsComputer.ts
+++ b/src/persistence/SubjectChangedColumnsComputer.ts
@@ -83,6 +83,12 @@ export class SubjectChangedColumnsComput... | 1 | 1 | 1 | [{"id": "G0", "claim": "Array columns skip element normalization, so date/time array elements are compared without the normalization applied to non-array columns, leaving equivalent-value changes detected as changed; the reviewer asks whether elements should be normalized before comparison, and later asks to include th... | null |
typeorm__typeorm__11342 | typeorm/typeorm | 11,342 | defect | 5d6d8936620d59d2cc31c57bbedfa83b2f37d63f | 05f30e3ecda22bbe74d16819dca3b88ef0cf5c85 | build: run format in ci | ### Description of change
Runs `npm run format` in CI. If any files are changed by the format command, CI will fail with an error message.
This PR also formats all existing files via `npm run format` to ensure we pass formatting checks going forward.
### Pull-Request Checklist
- [x] Code is up-to-date with ... | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 61d9ef7b5e6..e2f31d8f6ab 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -20,10 +20,17 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: "18.x"
+
- uses: actions/checkout@v4
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The CI format step should use `--check` instead of writing files, e.g. by adding a dedicated check script or calling prettier --check directly, and the git add/status/diff commands below it should be removed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introd... | null |
typeorm__typeorm__11357 | typeorm/typeorm | 11,357 | defect | 00d5639efb3a0866fdc8e4fb7222449fee8fcd99 | 45566af73467551320481f06de52b4c2a0d72e3c | refactor: database server version fetching & comparison | ### Description of change
Refactor the way the database server version is being fetched as well as the version comparison utils:
* improve code reuse for MySQL/MariaDB and Postgres drivers
* fetch the version correctly for MariaDB servers
* implement version fetching upon connect the SAP driver
* refactor `Vers... | diff --git a/src/driver/DriverUtils.ts b/src/driver/DriverUtils.ts
index 6901d13a94a..de810882a08 100644
--- a/src/driver/DriverUtils.ts
+++ b/src/driver/DriverUtils.ts
@@ -34,10 +34,7 @@ export class DriverUtils {
}
static isReleaseVersionOrGreater(driver: Driver, version: string): boolean {
- retur... | 4 | 3 | 1 | [{"id": "G0", "claim": "Add a type annotation to the query result in MysqlQueryRunner.getVersion, like PostgresQueryRunner already has.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Non-numeric components in version strings should be handled ge... | null |
typeorm__typeorm__11400 | typeorm/typeorm | 11,400 | defect | 45577df8b729697d8b49057657d0032d0e66ce77 | 5ce82adf0a229dada7578bbbe2a3b004ada93f9a | fix: Multiple relations with same columns cause invalid SQL to be generated | Closes: #1668
Closes: #4800
Closes: #9788
Closes: #9814
Closes: #10121
Closes: #10148
Closes: #11109
Closes: #11132
Closes: #11180
### Description of change
In `RelationJoinColumnBuilder.collectColumns,` `relationalColumn` is used by reference and `referencedColumn` is overwritten.
Solution: Create a cop... | diff --git a/src/metadata-builder/RelationJoinColumnBuilder.ts b/src/metadata-builder/RelationJoinColumnBuilder.ts
index 1fe64ef1e80..0d09a6bcabd 100644
--- a/src/metadata-builder/RelationJoinColumnBuilder.ts
+++ b/src/metadata-builder/RelationJoinColumnBuilder.ts
@@ -233,6 +233,11 @@ export class RelationJoinColumnBui... | 10 | 8 | 1 | [{"id": "G0", "claim": "Tests that assert on the row order returned by .find() are non-deterministic and fail on Node 18, so the queries should be made deterministic (or the assertions made order-insensitive).", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim... | null |
typeorm__typeorm__117 | typeorm/typeorm | 117 | defect | a11eea57fe402fc7d6e40dd31844c12138997be2 | 151e3781d8e515d2913ba5cc425aaf90dd162cbf | Unique constraint now takes in table name in postgres and mssql | Added mssql to docker-compose
typeorm/typeorm/issues#108 | diff --git a/.gitignore b/.gitignore
index 0186875d4b0..e8f4bb83df8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,5 @@ build/
coverage/
node_modules/
npm-debug.log
-ormconfig.json
\ No newline at end of file
+ormconfig.json
+.vscode
\ No newline at end of file
diff --git a/docker-compose.yml b/docker-compose.y... | 4 | 3 | 0 | [{"id": "G0", "claim": "The `declare function require(module: string): any;` line added to gulpfile.ts should not be there because require is already defined by the @types/node package.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The mssql se... | null |
typeorm__typeorm__11789 | typeorm/typeorm | 11,789 | defect | 6ed24f82359cba5eab504c7109cfbb40c639d3f1 | 40de183bf09e9d28abf2c26f92970ec69fe7b4e2 | fix(cli): init command reading package.json from two folders up | ### **User description**
### Description of change
When package is built or when we run tests, the `package.json` is one level closer to `InitCommand`...
It's a backport of part of the fix from #11787
### Pull-Request Checklist
- [x] Code is up-to-date with the `master` branch
- [ ] This pull request... | diff --git a/src/commands/InitCommand.ts b/src/commands/InitCommand.ts
index cf4d5e5bbb9..db017fb0fde 100644
--- a/src/commands/InitCommand.ts
+++ b/src/commands/InitCommand.ts
@@ -6,8 +6,6 @@ import { TypeORMError } from "../error"
import { PlatformTools } from "../platform/PlatformTools"
import { CommandUtils } fro... | 4 | 1 | 1 | [{"id": "G0", "claim": "The dynamic read and JSON.parse of package.json at InitCommand.ts line 682 lacks error handling for the case where the file does not exist or is malformed.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The file path built fr... | null |
typeorm__typeorm__11933 | typeorm/typeorm | 11,933 | defect | 710d17639cc6e2f075b034c56134ae0cce42e340 | 0b9b624f1dfd2821773e76e330deadbc25f69373 | feat(sqlite): add support for jsonb column type in SQLite | ### Description of Change
This pull request (PR) introduces support for the `jsonb` datatype in SQLite.
Example:
```typescript
@Entity()
export class Record {
@PrimaryGeneratedColumn()
id: number
@Column("jsonb")
data: any
@Column({
type: "jsonb",
default: { foo: "bar" }
})
def... | diff --git a/docs/docs/drivers/sqlite.md b/docs/docs/drivers/sqlite.md
index 5100d144704..7263dded7c4 100644
--- a/docs/docs/drivers/sqlite.md
+++ b/docs/docs/drivers/sqlite.md
@@ -75,4 +75,13 @@ See [Data Source Options](../data-source/2-data-source-options.md) for the commo
## Column Types
-`int`, `int2`, `int8`... | 19 | 10 | 4 | [{"id": "G0", "claim": "The orUpdate `overwrite` path generates `column = EXCLUDED.column` without wrapping EXCLUDED.column with jsonb()/json() for SQLite jsonb columns, causing type mismatches: upserts work with the `columns` parameter but fail with `.orUpdate({ overwrite: [...] })`.", "category": "correctness", "verd... | null |
typeorm__typeorm__11936 | typeorm/typeorm | 11,936 | defect | 9d07ec3d76ba0696d32fe792c549f66cbb363fe3 | d54d0a5baa3a1db103e9b5ca39dc17258d51c01f | fix(redis): redis cache version detection | ### Description of change
Fixes logic to determine if the provided redis client uses a promise or callback based API. This fix calls ping to check if the response returns a function (and therefore uses promises).
### Pull-Request Checklist
<!--
Please make sure to review and check all of the following.
... | diff --git a/src/cache/RedisQueryResultCache.ts b/src/cache/RedisQueryResultCache.ts
index 2af866006b3..363f3d92c40 100644
--- a/src/cache/RedisQueryResultCache.ts
+++ b/src/cache/RedisQueryResultCache.ts
@@ -29,9 +29,10 @@ export class RedisQueryResultCache implements QueryResultCache {
protected clientType: "red... | 8 | 2 | 1 | [{"id": "G1", "claim": "The guard that forces non-redis clients to the callback branch is probably wrong because ioredis also supports promises, so detection could set isPromiseBasedApi to true for ioredis.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "de... | null |
typeorm__typeorm__11982 | typeorm/typeorm | 11,982 | defect | 24977e3dac6d5d471f73e60371cd54d8627de46c | 4f38bb12c8e7e6f9ed3d8ab0e8c3105a0156c6ad | fix(persistence)!: handle non-nullable FK in orphaned row nullification | Fixes #3105
When a one-to-many relation with cascade is saved and children are replaced,
TypeORM's `OneToManySubjectBuilder` attempts to nullify the FK on orphaned rows.
If the FK column is `NOT NULL`, this fails with a constraint violation.
This PR checks FK column nullability before choosing the orphan strategy:
- ... | diff --git a/src/persistence/subject-builder/OneToManySubjectBuilder.ts b/src/persistence/subject-builder/OneToManySubjectBuilder.ts
index 3da6e281114..b0321a221ee 100644
--- a/src/persistence/subject-builder/OneToManySubjectBuilder.ts
+++ b/src/persistence/subject-builder/OneToManySubjectBuilder.ts
@@ -48,6 +48,8 @@ e... | 7 | 5 | 4 | [{"id": "G0", "claim": "The regression test for issue #3105 should live in the functional test suite (test/functional) rather than only under test/github-issues, per the repo's preferred testing location for issue fixes.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "... | null |
typeorm__typeorm__12030 | typeorm/typeorm | 12,030 | defect | 42819beca934082bd86db1791cd2797c6e29fc5a | 2b6168d3c1e360a1b896e2b28e660122425410ab | fix(upsert): handle update false or generatedType properly | Close #10889
<!--
😀 Wonderful! Thank you for opening a pull request for TypeORM.
Please fill in the information below to expedite the review
and (hopefully) merge of your change.
If unsure about something.. just do as best as you're able,
or reach out through our community support channels!
h... | diff --git a/docs/docs/working-with-entity-manager/5-entity-manager-api.md b/docs/docs/working-with-entity-manager/5-entity-manager-api.md
index 228d9fa855c..593d0efe367 100644
--- a/docs/docs/working-with-entity-manager/5-entity-manager-api.md
+++ b/docs/docs/working-with-entity-manager/5-entity-manager-api.md
@@ -218... | 3 | 2 | 0 | [{"id": "G0", "claim": "The `if (this.expressionMap.onIgnore)` branch added in the MySQL ON-DUPLICATE-KEY-UPDATE path of InsertQueryBuilder is unnecessary and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The upsert query con... | null |
typeorm__typeorm__12090 | typeorm/typeorm | 12,090 | defect | bfa9d130aff128e060c54c34df24f2194b4dc87b | d8140d88988a4389ebcbf203294550c5a81ba48c | refactor(QueryBuilder)!: remove onConflict(), deprecated orUpdate() overload, and setNativeParameters() | Removes deprecated QueryBuilder methods as part of #12078:
- `InsertQueryBuilder.onConflict()` — use `orIgnore()` or `orUpdate()` instead
- Deprecated `orUpdate()` overload accepting `{ columns?, overwrite?, conflict_target? }` — use the array-based signature
- `QueryBuilder.setNativeParameters()` — use `setParameters... | diff --git a/docs/docs/guides/8-migration-v1.md b/docs/docs/guides/8-migration-v1.md
index a0d095c657a..02fbeaf68fa 100644
--- a/docs/docs/guides/8-migration-v1.md
+++ b/docs/docs/guides/8-migration-v1.md
@@ -112,3 +112,62 @@ Glob patterns are now handled by `tinyglobby` instead of `glob`. While `tinyglob
`DataSource`... | 5 | 1 | 1 | [{"id": "G0", "claim": "The migration guide's recommended replacement of onConflict(`(\"id\") DO NOTHING`) with .orIgnore() is not behaviorally equivalent, because orIgnore() cannot express a conflict target and always emits a bare ON CONFLICT DO NOTHING, which can silently broaden which conflicts are ignored (and a st... | null |
typeorm__typeorm__12104 | typeorm/typeorm | 12,104 | defect | 91274bcc037f30516ce40d61084362d361187bfc | e9741a886655d75d0f39dca332ae4f7ac8b6c0ec | refactor!: remove internal nativeParameters plumbing from drivers and query builders | Follow-up to #12090. Removes the internal `nativeParameters` property and its flow through all drivers, which became dead code after the public API removal (`setNativeParameters()`, `onConflict()`).
- Removed `nativeParameters` property from `QueryExpressionMap` and its cloning in `clone()`
- Removed `nativeParameters... | diff --git a/docs/docs/guides/8-migration-v1.md b/docs/docs/guides/8-migration-v1.md
index 1946d4c9bb7..2af9d1c74e4 100644
--- a/docs/docs/guides/8-migration-v1.md
+++ b/docs/docs/guides/8-migration-v1.md
@@ -198,3 +198,66 @@ The same applies to find options:
### `WhereExpression` type alias
The deprecated `WhereEx... | 2 | 1 | 0 | [{"id": "G0", "claim": "The migration guide's example suggests replacing a parameterized onConflict(... DO UPDATE SET ... = :param) with orUpdate([...], [...]), but the remaining orUpdate array signature only generates updates from the inserted row values (EXCLUDED/VALUES) and cannot express arbitrary expressions/param... | null |
typeorm__typeorm__12114 | typeorm/typeorm | 12,114 | defect | 0002681f9d0ba3550aba02424f84d16a56cd15a5 | 12b34218330e7f97dc957e9fa89f4c6697bae260 | refactor!: remove deprecated findByIds from Repository and EntityManager | Removes the deprecated `findByIds` method from all public APIs:
- `EntityManager.findByIds()`
- `Repository.findByIds()`
- `BaseEntity.findByIds()`
- `MongoEntityManager.findByIds()`
- `MongoRepository.findByIds()`
The method was deprecated in favor of `findBy` with the `In` operator:
```typescript
// Before
const u... | diff --git a/docs/docs/guides/8-migration-v1.md b/docs/docs/guides/8-migration-v1.md
index 6e65446804f..ff748b77bfe 100644
--- a/docs/docs/guides/8-migration-v1.md
+++ b/docs/docs/guides/8-migration-v1.md
@@ -228,3 +228,17 @@ The same applies to find options:
### `WhereExpression` type alias
The deprecated `WhereEx... | 6 | 5 | 3 | [{"id": "G0", "claim": "SubjectDatabaseEntityLoader and PlainObjectToDatabaseEntityTransformer should contain as little driver-dependent logic as possible, and maybe findByIds should not have been removed from Mongo if that means moving the whole implementation into these classes.", "category": "design", "verdict": "su... | null |
typeorm__typeorm__12197 | typeorm/typeorm | 12,197 | defect | 824eae4c98df68d5d9def2ed7c7f78f249ca9389 | 78c9f6f37410c791da32d863b118a8bb8e95cea6 | fix(query-runner): parameterize SQL queries across all drivers | Replace string concatenation with parameterized queries across all database drivers to prevent SQL injection via schema/database/table/column/view names.
- MySQL, Aurora MySQL: `clearDatabase()`, `hasDatabase()`, `hasTable()`, `hasColumn()`
- PostgreSQL: `hasDatabase()`, `hasSchema()`, `hasTable()`, `hasColumn()`
- SQ... | diff --git a/src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts b/src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts
index c17ea8c5064..77e8e3e5205 100644
--- a/src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts
+++ b/src/driver/aurora-mysql/AuroraMysqlQueryRunner.ts
@@ -237,7 +237,8 @@ export class AuroraMysqlQueryRunner... | 4 | 3 | 1 | [{"id": "G0", "claim": "SqlServerQueryRunner.hasTable() and hasColumn() still interpolate parsedTableName.database into the quoted SQL identifier, so a caller-provided 3-part name (db.schema.table) can break out of the quoting and inject SQL even though the WHERE values are parameterized.", "category": "security", "ver... | null |
typeorm__typeorm__12209 | typeorm/typeorm | 12,209 | defect | 9c0176019a927088a6f23e6caa309074df3c6ea8 | ac7beaabecbb13bdc65aee662fe0e4f4b146421a | fix(query-builder): reject semicolons in raw SQL expression methods | - Add runtime validation to reject semicolons in `select`, `addSelect`, `groupBy`, `addGroupBy`, `orderBy`, and `addOrderBy` to prevent statement stacking attacks (e.g. `qb.groupBy("1; DELETE FROM post;")`)
- Unskip regression tests and assert that semicolon-containing inputs throw instead of executing | diff --git a/src/driver/cockroachdb/CockroachQueryRunner.ts b/src/driver/cockroachdb/CockroachQueryRunner.ts
index 2b0316018d8..eedb268b39b 100644
--- a/src/driver/cockroachdb/CockroachQueryRunner.ts
+++ b/src/driver/cockroachdb/CockroachQueryRunner.ts
@@ -464,7 +464,8 @@ export class CockroachQueryRunner
*/
... | 11 | 6 | 4 | [{"id": "G0", "claim": "UpdateQueryBuilder and SoftDeleteQueryBuilder only reject semicolons in the ORDER BY sort key but do not runtime-validate the string-overload order/nulls arguments, which are concatenated into the generated SQL, so the statement-stacking mitigation can still be bypassed through them.", "category... | null |
typeorm__typeorm__12217 | typeorm/typeorm | 12,217 | defect | 0b8e93743afdc60bd96e53916a85cbe9cc0c5166 | 4bac26b9a57ec20f694940f1462f53026dae755a | fix(query-builder): validate orderBy condition values at runtime | `OrderByCondition` values are concatenated directly into the ORDER BY clause without runtime validation. Although TypeScript constrains them to `"ASC" | "DESC"`, at runtime a caller could pass arbitrary strings like `"ASC; DELETE FROM post;"` to achieve statement stacking.
- Add `validateOrderByCondition()` that check... | diff --git a/src/query-builder/SelectQueryBuilder.ts b/src/query-builder/SelectQueryBuilder.ts
index 67ded1fce18..b6f328dda03 100644
--- a/src/query-builder/SelectQueryBuilder.ts
+++ b/src/query-builder/SelectQueryBuilder.ts
@@ -1441,7 +1441,8 @@ export class SelectQueryBuilder<Entity extends ObjectLiteral>
... | 8 | 2 | 2 | [{"id": "G1", "claim": "UpdateQueryBuilder and SoftDeleteQueryBuilder still accept runtime orderBy values (OrderByCondition objects and the string order/nulls arguments) without the runtime validation added to SelectQueryBuilder, leaving SQL injection possible through those builders.", "category": "security", "verdict"... | null |
typeorm__typeorm__12256 | typeorm/typeorm | 12,256 | defect | 5797d972bdb602d302d92aa29d2e19aeb584962c | 8877aba7102c9c5d3ea4ce507678ea54a2c20cb7 | fix(query-builder): follow-up fixes for eager load relation strategy | Follow-up fixes addressing Qodo code review feedback that arrived after #11326 was merged.
- Restore DataSource-level strategy test coverage for self-referencing relations that was lost during test consolidation
- Replace silent `return` with `TypeORMError` when `referencedColumn` is unexpectedly missing in `RelationI... | diff --git a/src/query-builder/RelationIdLoader.ts b/src/query-builder/RelationIdLoader.ts
index 1ecdfe5256d..5f06fbb0b13 100644
--- a/src/query-builder/RelationIdLoader.ts
+++ b/src/query-builder/RelationIdLoader.ts
@@ -4,6 +4,7 @@ import type { DataSource } from "../data-source/DataSource"
import type { ObjectLitera... | 5 | 2 | 2 | [{"id": "G0", "claim": "SelectQueryBuilder keys eager-load cycle detection by tableName, which is not unique across schemas/databases and can be shared by STI/entity-child metadatas, so distinct entities can be treated as already visited and their eager relations silently skipped.", "category": "correctness", "verdict"... | null |
typeorm__typeorm__12257 | typeorm/typeorm | 12,257 | defect | 950ce01a6c00b248e8d4529f31b51e9eb86d9667 | db7c5eecff998444f8f995c6fa58e1a3965199df | refactor!: remove `app-root-path` | ### Description of change
The PR removes the dependency on `app-root-path`, reducing the number of direct dependency to 10.
### Pull-Request Checklist
- [x] Code is up-to-date with the `master` branch
- [ ] This pull request links relevant issues as `Fixes #00000`
- [x] There are new or updated tests validat... | diff --git a/.gitignore b/.gitignore
index 59337c9c11f..9505fdfcb13 100644
--- a/.gitignore
+++ b/.gitignore
@@ -21,11 +21,10 @@ node_modules/
*.iml
### TypeORM ###
+temp/
ormconfig.json
ormlogs.log
-/test/github-issues/799/tmp/*
-
### Stryker ###
reports/
.stryker-tmp
diff --git a/.vscode/settings.json b/.v... | 13 | 6 | 2 | [{"id": "G0", "claim": "FileLogger.write() calls PlatformTools.appendFileSync with no error handling, so any filesystem error (e.g. an unwritable CWD) can throw through query execution and start failing requests.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1",... | null |
typeorm__typeorm__12286 | typeorm/typeorm | 12,286 | defect | cfba9e77cc098f37896f935681dee70a20757830 | 6b67f3101eb89e30f25886c7ceb21a8e9a058939 | fix(cascade): support cascade remove for OneToMany relations with composite PKs | `CascadesSubjectBuilder` was missing `isCascadeRemove` support — when `cascade: true`
included remove and `operationType` was `"remove"`, child entities in OneToMany relations
were never marked as `mustBeRemoved`. This caused FK constraint violations on databases
that enforce referential integrity during DELETE.
- Add... | diff --git a/docs/docs/releases/1.0/02-upgrading-from-0.3.md b/docs/docs/releases/1.0/02-upgrading-from-0.3.md
index 027a648db3e..3c58b269178 100644
--- a/docs/docs/releases/1.0/02-upgrading-from-0.3.md
+++ b/docs/docs/releases/1.0/02-upgrading-from-0.3.md
@@ -459,6 +459,10 @@ When `orphanedRowAction` is `"nullify"` (t... | 7 | 6 | 4 | [{"id": "G0", "claim": "Adding isCascadeRemove to the any-cascade guard makes save() traverse remove-only relations and recursively cascade-insert/update deeper entities, breaking cascade semantics.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Dur... | null |
typeorm__typeorm__12360 | typeorm/typeorm | 12,360 | defect | 6020d3164b8c47040a1a55dcbdb180f0eea248dd | 2dff6c1771d6c19eba93c4d480a9baf088373e32 | feat(codemod): detect incompatible ecosystem packages and bump dependency versions | Teach the codemod to detect third-party packages that are incompatible with TypeORM 1.0 and warn users during migration.
### Upgrades (auto-bumped in `package.json`)
- `@google-cloud/spanner` — minimum `^8.0.0`, recommended `^8.6.0`
- `@nestjs/typeorm` — minimum `^11.0.1` (first version supporting TypeORM 1.0)
- `bet... | diff --git a/package.json b/package.json
index 1f46aebc265..40512990a86 100644
--- a/package.json
+++ b/package.json
@@ -120,7 +120,7 @@
"@types/sinon-chai": "^4.0.0",
"@types/source-map-support": "^0.5.10",
"@types/yargs": "^17.0.35",
- "better-sqlite3": "^12.8.0",
+ "better-sqlite3": "^12.9.0",
... | 2 | 1 | 1 | [{"id": "G0", "claim": "The new user-facing `incompatible` errors and `warnings` the codemod emits for ecosystem packages are not documented in the codemod README or the v1 upgrading guide, so users get no explanation of these diagnostics or what to do about them.", "category": "documentation", "verdict": "uncertain", ... | null |
typeorm__typeorm__2985 | typeorm/typeorm | 2,985 | defect | 80e82f4a42299656adb68fb119a6fa1c10156e38 | 92a87f99c244420649b3e027140968c7d78bf1eb | Only check for discriminator conflicts on STI entities | If an entity has the same discriminator value as one using
@TableInheritance this should be allowed as there is no way for them to
conflict. Fixes #2984. | diff --git a/src/metadata-builder/EntityMetadataValidator.ts b/src/metadata-builder/EntityMetadataValidator.ts
index dfac2da29ca..22c8db1a991 100644
--- a/src/metadata-builder/EntityMetadataValidator.ts
+++ b/src/metadata-builder/EntityMetadataValidator.ts
@@ -65,7 +65,7 @@ export class EntityMetadataValidator {
... | 3 | 3 | 1 | [{"id": "G0", "claim": "The test should not run on just one database (postgres) when the fix is not database-type specific.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The discriminator-conflict check needs to verify the two entities are in the same ... | null |
typeorm__typeorm__3414 | typeorm/typeorm | 3,414 | defect | 3e7a976ef80aac921d99bc1aaa98b9868bbaaf32 | f1b8d78660aea856914addba26ace3e3f0faa278 | fix(postgres,mysql): better support for enum and enum array |
- better support all types of typescript enums (numeric, string, heterogeneous) + tests + docs - Fix https://github.com/typeorm/typeorm/issues/3393, Fix https://github.com/typeorm/typeorm/issues/3072
```typescript
export enum NumericEnum {
ADMIN,
EDITOR,
MODERATOR,
GHOST
}
export enum Str... | diff --git a/docs/entities.md b/docs/entities.md
index 085beb4f9cb..e8a0124bde6 100644
--- a/docs/entities.md
+++ b/docs/entities.md
@@ -10,6 +10,7 @@
* [Column types for `postgres`](#column-types-for-postgres)
* [Column types for `sqlite` / `cordova` / `react-native` / `expo`](#column-types-for-sqlite--cordova--... | 1 | 1 | 1 | [{"id": "G0", "claim": "A value defined as a string-numeric enum (e.g. \"1\") would be silently converted to a number even though the user expects numbers only for numeric enums — it should be returned as a string.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
typeorm__typeorm__4260 | typeorm/typeorm | 4,260 | defect | 8757e769d2e2d39240ff70eaa6cd2dc24be202a4 | 391f557089049eb7620754e22abfa0ff15c8f950 | fix: call listeners for array embeddeds | fix #4071 | diff --git a/package-lock.json b/package-lock.json
index 8570d794f22..a3d635d1777 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "typeorm",
- "version": "0.2.17",
+ "version": "0.2.18",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
diff --git a/src/metadata/E... | 2 | 1 | 0 | [{"id": "G0", "claim": "It would be better to add a new separate test that covers exactly the array-embeddeds listeners use case instead of folding it into the existing test.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Asks whether the fix is mongodb... | null |
typeorm__typeorm__6685 | typeorm/typeorm | 6,685 | defect | 802e0f6e8ac1466fea4fb9cbb85ba361c677532c | 97cbda552ca64cf2e456a066cf935babf62b8c43 | feat: Beautify generated SQL for migrations | Allows user to pass an optional flag to beautify generated SQL for migrations
Closes: #4415
---
Had a stab at [issue #4415](https://github.com/typeorm/typeorm/issues/4415) - adds an external dependency `@sqltools/formatter` to actually do the formatting, though it's a pretty small package.
Tests may be a li... | diff --git a/docs/migrations.md b/docs/migrations.md
index 3cbd03f8ecd..639ba8dd1c8 100644
--- a/docs/migrations.md
+++ b/docs/migrations.md
@@ -195,7 +195,7 @@ export class PostRefactoringTIMESTAMP implements MigrationInterface {
```
See, you don't need to write the queries on your own.
-The rule of thumb for gene... | 3 | 1 | 0 | [{"id": "G0", "claim": "Consider making the SQL beautification the default behaviour instead of adding a flag for it.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The deep import from '@sqltools/formatter/lib/sqlFormatter' may be unsafe; the package's to... | null |
typeorm__typeorm__7296 | typeorm/typeorm | 7,296 | defect | af2c5c4dbe360d2cdcdb3398f5000a2ef0999d3d | 2f245e05b97db55ef7723f859d1e667917c4efaa | fix: resolve issue with find with relations returns soft-deleted entities |
### Description of change
This pull request includes fix for soft delete behavior when including soft deletes relationships.
fix: resolve issue with find with relations returns soft-deleted entities #6265
### Pull-Request Checklist
- [x] Code is up-to-date with the `master` branch
- [x] `npm run lint` passes ... | diff --git a/src/query-builder/SelectQueryBuilder.ts b/src/query-builder/SelectQueryBuilder.ts
index d4e1caa97b2..80afb98bc3c 100644
--- a/src/query-builder/SelectQueryBuilder.ts
+++ b/src/query-builder/SelectQueryBuilder.ts
@@ -1336,7 +1336,10 @@ export class SelectQueryBuilder<Entity> extends QueryBuilder<Entity> imp... | 5 | 2 | 1 | [{"id": "G0", "claim": "SQL keywords in the generated join condition should be uppercase, i.e. `IS NULL` and `AND`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added to verify the new functionality (existing tests for non-rela... | null |
typeorm__typeorm__7981 | typeorm/typeorm | 7,981 | defect | 4c8debb7ba705f48843f2ecc01fe30b40a64f1d8 | 9357058911cece8e54e44263e90d6c8817d60cfd | feat: add relations option to tree queries | Add possibility to load relations of tree entities
### Description of change
The change adds an optional `options` parameter to the findTrees() function.
The only option that can currently be set is `relations` which is an array of all relations that should be loaded for the entities. It works the same way as t... | diff --git a/docs/tree-entities.md b/docs/tree-entities.md
index 0a0b5505e05..c75a90ce894 100644
--- a/docs/tree-entities.md
+++ b/docs/tree-entities.md
@@ -203,6 +203,9 @@ There are other special methods to work with tree entities through `TreeReposito
```typescript
const treeCategories = await repository.findTrees(... | 6 | 2 | 0 | [{"id": "G0", "claim": "applyRelationsRecursively should stay private/protected rather than being made public, to limit the public API footprint that would have to be supported as API.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs example should ... | null |
typeorm__typeorm__8261 | typeorm/typeorm | 8,261 | defect | 861573377bb33b73232399c21b1b3a5c07b58036 | d3e88cf4a7b38a43103b4055d4f0af6e8a4cac53 | feat: Add dependency configuraiton for views #8240 | ### Description of change
See #8240 for detailed description of the problem.
The PR adds dependsOn option to @View decorator, where dependencies can be listed. Also use these dependencies to order drop/create view correctly when generating migrations
### Pull-Request Checklist
- [x] Code is up-to-date with... | diff --git a/docs/view-entities.md b/docs/view-entities.md
index be94d590ce9..dd062242b57 100644
--- a/docs/view-entities.md
+++ b/docs/view-entities.md
@@ -15,11 +15,12 @@ You can create a view entity by defining a new class and mark it with `@ViewEnti
* `database` - database name in selected DB server.
* `schema` -... | 4 | 2 | 1 | [{"id": "G0", "claim": "Explicitly defining the order of views in the `entities` section of the connection options might solve the view-ordering problem, making the PR's dependsOn mechanism unnecessary.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The ... | null |
typeorm__typeorm__8536 | typeorm/typeorm | 8,536 | defect | 26581d0264268045496b43f7a0f338eb9f2b70cc | 4724412237576237f19ca3ddc20336c782650bb1 | feat: add ESM support | ### Description of change
* Support importing TypeORM in ESM projects
* Support loading ESM entity and connection config files
* Solution to circular dependency imports in ESM projects
* Added support for generating base ESM projects using the `typeorm init` command
* New section in the docs about ESM
* Updated t... | diff --git a/README.md b/README.md
index 7d61ddf09ad..2f3134c1a85 100644
--- a/README.md
+++ b/README.md
@@ -321,6 +321,9 @@ That's it, your application should successfully run and insert a new user into t
You can continue to work with this project and integrate other modules you need and start
creating more entities... | 4 | 3 | 0 | [{"id": "G0", "claim": "Importing named exports such as `BaseEntity` from 'typeorm' in an ESM project throws `SyntaxError: The requested module 'typeorm' does not provide an export named 'BaseEntity'`, and the commenter asks whether this PR would solve that situation.", "category": "correctness", "verdict": "supported"... | null |
typeorm__typeorm__8626 | typeorm/typeorm | 8,626 | defect | 1446e023161022ded8a0ccebce8ec8a45f0a1208 | 2d80a9549774d5fa65ee8b8e74b4c0f23f52ac4e | feat: Embedded entities with entity schema | <!--
😀 Wonderful! Thank you for opening a pull request for TypeORM.
Please fill in the information below to expedite the review
and (hopefully) merge of your change.
If unsure about something.. just do as best as you're able,
or reach out through our community support channels!
https://github.co... | diff --git a/package-lock.json b/package-lock.json
index df9daf25af1..10246be2582 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5,6 +5,7 @@
"requires": true,
"packages": {
"": {
+ "name": "typeorm",
"version": "0.2.41",
"license": "MIT",
"dependencies": {
diff --git a/s... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new \"embedded\" table type is unnecessary — embedded entities already work without it, and entity schema definitions should instead be converted into metadata the way decorator-based definitions are.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
typeorm__typeorm__9303 | typeorm/typeorm | 9,303 | defect | bb33cd0f23d566c0d87fcb57e42bd611761cc106 | e4e79a00e8830a46fc77e47e9e1a2db8bac822e8 | feat: implement exists query method | Adding `Exists` method to query builder and EntityManager, to check whether a row exists given the conditions
Closes: #2815
### Description of change
Added a new methods to check if a row exists.
Also added a method to add `EXISTS` clause to a given query.
### Pull-Request Checklist
- [X] Code is up-to... | diff --git a/src/entity-manager/EntityManager.ts b/src/entity-manager/EntityManager.ts
index da8da0e9543..7484ccf724f 100644
--- a/src/entity-manager/EntityManager.ts
+++ b/src/entity-manager/EntityManager.ts
@@ -945,6 +945,23 @@ export class EntityManager {
}
}
+ /**
+ * Checks whether any entit... | 7 | 4 | 2 | [{"id": "G0", "claim": "executeExistsQuery takes a queryRunner parameter but ignores it, so the exists query does not run on the caller's query runner/transaction.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Tests should be added for EntityManage... | null |
typeorm__typeorm__9978 | typeorm/typeorm | 9,978 | defect | f5b93c14b5efa1a55aed0211a4757af1b3d6e66b | e03c07a1abb81018cf235e1f7772a4dfbe5945c7 | fix(select-buildwhere): support More/LessThanOrEqual for relations | ### Description of change
Tweak `SelectQueryBuilder.buildWhere()` to recognise more find operators
(namely, `MoreThanOrEqual` and `LessThanOrEqual`) and output the SQL equivalent.
- Recognise `moreThanOrEqual` and `lessThanOrEqual`, in addition to
`moreThan` and `lessThan`
- If the find operator ends with `... | diff --git a/src/query-builder/SelectQueryBuilder.ts b/src/query-builder/SelectQueryBuilder.ts
index d3b01053fe9..fefeb8f52f7 100644
--- a/src/query-builder/SelectQueryBuilder.ts
+++ b/src/query-builder/SelectQueryBuilder.ts
@@ -4322,11 +4322,18 @@ export class SelectQueryBuilder<Entity extends ObjectLiteral>
... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added MoreThanOrEqual/LessThanOrEqual condition and SQL-operator selection would be easier to understand written as simple if-elseif statements (revert the reworked version and use the plain === chain) instead of the array-includes plus startsWith/endsWith concatenation.", "category": "maint... | null |
typescript-eslint__tslint-to-eslint-config__1009 | typescript-eslint/tslint-to-eslint-config | 1,009 | defect | 2c9b1038400484c83f716fc51ef47d67f3dcb849 | 311570b30178e5c86a0d342461ddb65e824d21b9 | Added prefer-array-literal converter | ## PR Checklist
- [x] Addresses an existing issue: fixes #866
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-to-eslint-config/labels/status%3A%20accepting%20prs)
## Overview
No rule options. Nice and easy. | diff --git a/src/converters/lintConfigs/rules/ruleConverters.ts b/src/converters/lintConfigs/rules/ruleConverters.ts
index 82f53ff2d..f97b98949 100644
--- a/src/converters/lintConfigs/rules/ruleConverters.ts
+++ b/src/converters/lintConfigs/rules/ruleConverters.ts
@@ -110,6 +110,7 @@ import { convertOneLine } from "./r... | 1 | 1 | 1 | [{"id": "G0", "claim": "The prefer-array-literal converter should also turn off the core ESLint rule \"no-array-constructor\": \"off\" to avoid reporting incorrect errors, per the typescript-eslint no-array-constructor documentation.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
typescript-eslint__tslint-to-eslint-config__193 | typescript-eslint/tslint-to-eslint-config | 193 | defect | c77f1b19430b7f2ba59be1c33948fa526861c9ae | c29646e47f409e04c4085571c2a8f5002a44ffd5 | add converter for space-within-parens rule | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: fixes #184
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint... | diff --git a/src/rules/converters.ts b/src/rules/converters.ts
index f1a6289b0..0f8485777 100644
--- a/src/rules/converters.ts
+++ b/src/rules/converters.ts
@@ -91,6 +91,7 @@ import { convertPromiseFunctionAsync } from "./converters/promise-function-async
import { convertRadix } from "./converters/radix";
import { co... | 1 | 1 | 1 | [{"id": "G0", "claim": "The converter passes TSLint's rule arguments (e.g. a numeric min-spaces) straight through, but ESLint's space-in-parens only accepts \"always\"/\"never\", so the arguments need to be converted from the TSLint way to the ESLint way.", "category": "correctness", "verdict": "supported", "priority":... | null |
typescript-eslint__tslint-to-eslint-config__194 | typescript-eslint/tslint-to-eslint-config | 194 | defect | c77f1b19430b7f2ba59be1c33948fa526861c9ae | f48082abd7a667aba30a8db2516ebfeb25c114dd | Adds no-for-in converter along with tests | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: fixes #170
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-... | diff --git a/src/rules/converters.ts b/src/rules/converters.ts
index f1a6289b0..66a0d13fa 100644
--- a/src/rules/converters.ts
+++ b/src/rules/converters.ts
@@ -44,6 +44,7 @@ import { convertNoEmptyInterface } from "./converters/no-empty-interface";
import { convertNoEval } from "./converters/no-eval";
import { conve... | 1 | 1 | 1 | [{"id": "G0", "claim": "The converter wrongly forwards tslint's ruleArguments to no-restricted-syntax, whose arguments must be string selectors or selector/message objects that no-for-in never provides; it should supply a fixed ruleArguments that just bans the for-in syntax.", "category": "correctness", "verdict": "sup... | null |
typescript-eslint__tslint-to-eslint-config__204 | typescript-eslint/tslint-to-eslint-config | 204 | defect | 9cc263f01ed1a3b69db96583b9971fc533ac4cb5 | d8c1bfe8e825ff7e74f041a29ff25d0cf4c2ad83 | Add missing converter: file-name-casing | Linked to issue: #161
## PR Checklist
- [x] Addresses an existing issue: fixes #161
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-to-eslint-config/labels/status%3A%20accepting%20prs)
## Overview
Add converter for file-name-casing. Map casings to ... | diff --git a/src/rules/converters.ts b/src/rules/converters.ts
index 96a036500..db091d4d1 100644
--- a/src/rules/converters.ts
+++ b/src/rules/converters.ts
@@ -13,6 +13,7 @@ import { convertCurly } from "./converters/curly";
import { convertCyclomaticComplexity } from "./converters/cyclomatic-complexity";
import { c... | 4 | 4 | 1 | [{"id": "G0", "claim": "collectArguments should use a plain object initialized outside the function instead of a Map, since only .get is used and always for keys guaranteed to exist.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The IGNORE_CASE... | null |
typescript-eslint__tslint-to-eslint-config__205 | typescript-eslint/tslint-to-eslint-config | 205 | defect | 9cc263f01ed1a3b69db96583b9971fc533ac4cb5 | 75c8e27c43bfdd9977c1ad7b734f1f18a314f8d3 | Added no-unused-expression converter | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [X] Addresses an existing issue: fixes #177
- [X] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint... | diff --git a/src/rules/converters.ts b/src/rules/converters.ts
index 96a036500..678d9a729 100644
--- a/src/rules/converters.ts
+++ b/src/rules/converters.ts
@@ -79,6 +79,7 @@ import { convertNoUnnecessaryQualifier } from "./converters/no-unnecessary-quali
import { convertNoUnnecessarySemicolons } from "./converters/no... | 1 | 1 | 1 | [{"id": "G0", "claim": "The converter needs to account for TSLint's allow-fast-null-checks and allow-new options, which it does not handle.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
typescript-eslint__tslint-to-eslint-config__223 | typescript-eslint/tslint-to-eslint-config | 223 | defect | 3acdba100e93286dd094b36525c10cf0bd84a7f2 | 535bdc177cdfc0fd6b040bf2b524406e10bdbc3a | Implement no-submodule-imports converter | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: fixes #175
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-... | diff --git a/src/rules/converters.ts b/src/rules/converters.ts
index 11b38357a..f980fd285 100644
--- a/src/rules/converters.ts
+++ b/src/rules/converters.ts
@@ -72,6 +72,7 @@ import { convertNoReturnAwait } from "./converters/no-return-await";
import { convertNoSparseArrays } from "./converters/no-sparse-arrays";
imp... | 2 | 1 | 1 | [{"id": "G0", "claim": "TSLint allows whole packages like `rxjs` while ESLint's no-internal-modules expects minimatch/glob patterns, so the converter should turn a package name such as `rxjs` into `rxjs/*` instead of passing it through.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "in... | null |
typescript-eslint__tslint-to-eslint-config__231 | typescript-eslint/tslint-to-eslint-config | 231 | defect | 6ae5bb7db115391a03e717a6134ed1a54612c0c3 | cb72bb218bea131ebb5d6404986d52daa14a104d | Fix member access converter | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: fixes #139
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-... | diff --git a/src/rules/converters/member-access.ts b/src/rules/converters/member-access.ts
index ccca098fc..d770e284f 100644
--- a/src/rules/converters/member-access.ts
+++ b/src/rules/converters/member-access.ts
@@ -1,15 +1,67 @@
import { RuleConverter } from "../converter";
-export const convertMemberAccess: RuleC... | 6 | 6 | 0 | [{"id": "G0", "claim": "The `Off` member of the `AccessibilityLevel` enum is unused in the code, so it can be left out.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `.map` call on the rule arguments implies returning a value and is confusi... | null |
typescript-eslint__tslint-to-eslint-config__280 | typescript-eslint/tslint-to-eslint-config | 280 | defect | 2cccfd0f744db746601c9389cd1323d043e295f0 | 182621a7f39e5a35bdeb64f3c2d796c08df32f91 | feat: add import-blacklist converter #277 | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: fixes #277
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-... | diff --git a/src/rules/converters.ts b/src/rules/converters.ts
index 4a4ce1a1f..844a97d7c 100644
--- a/src/rules/converters.ts
+++ b/src/rules/converters.ts
@@ -18,6 +18,7 @@ import { convertEofline } from "./converters/eofline";
import { convertFileNameCasing } from "./converters/file-name-casing";
import { convertF... | 4 | 3 | 1 | [{"id": "G0", "claim": "The test should use Jest's test.each(table)(name, fn) API.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The intermediate tslintRules local variable can be removed, as a nitpick that is not a merge blocker.", "category": "maintain... | null |
typescript-eslint__tslint-to-eslint-config__284 | typescript-eslint/tslint-to-eslint-config | 284 | defect | 2cccfd0f744db746601c9389cd1323d043e295f0 | 033f1eaba2a255892ca0f4dc066c791354f12c5b | feat: add missing merger [member-delimiter-style] #254 | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: fixes #254
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint... | diff --git a/src/rules/mergers.ts b/src/rules/mergers.ts
index 446d68615..3697234f4 100644
--- a/src/rules/mergers.ts
+++ b/src/rules/mergers.ts
@@ -1,5 +1,6 @@
import { mergeBanTypes } from "./mergers/ban-types";
import { mergeIndent } from "./mergers/indent";
+import { mergeNoMemberDelimiterStyle } from "./mergers/... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new merger's added line has a branch not hit by any test (there is no test case for only the old object config existing, without new config), so the repository's 100% coverage requirement is failing.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
typescript-eslint__tslint-to-eslint-config__413 | typescript-eslint/tslint-to-eslint-config | 413 | defect | 4165d5c898116ba675152ab4a29b7e779dc72464 | c6ac9d75a16a58395e33d7c5c95cef5223fc2179 | Add one-line rule converter | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: fixes #410
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-... | diff --git a/src/rules/converters/one-line.ts b/src/rules/converters/one-line.ts
new file mode 100644
index 000000000..a8652a87d
--- /dev/null
+++ b/src/rules/converters/one-line.ts
@@ -0,0 +1,17 @@
+import { RuleConverter } from "../converter";
+
+export const CheckAllTokensMsg = "ESLint's brace-style will check all t... | 2 | 2 | 2 | [{"id": "G0", "claim": "The converter's notice logic is backwards: with no rule arguments the rule does nothing and should be ignored, with some it should add the check-all-tokens notice, and with all arguments enabled there should be no notice.", "category": "correctness", "verdict": "supported", "priority": "P1", "sc... | null |
typescript-eslint__tslint-to-eslint-config__432 | typescript-eslint/tslint-to-eslint-config | 432 | defect | cdf8a69d26ca3e393a2c9114f4bbc3fc6a678497 | 972ee32dc8db6619f3abfaefb9dd322cdaaa2ba7 | Add codelyzer component-class-suffix converter | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: references #421
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/ts... | diff --git a/src/rules/converters/codelyzer/component-class-suffix.ts b/src/rules/converters/codelyzer/component-class-suffix.ts
new file mode 100644
index 000000000..e2937945d
--- /dev/null
+++ b/src/rules/converters/codelyzer/component-class-suffix.ts
@@ -0,0 +1,15 @@
+import { RuleConverter } from "../../converter";... | 1 | 1 | 1 | [{"id": "G0", "claim": "The options in angular-eslint look like they use an object with a `suffixes` member, so the converter should pass the TSLint rule arguments wrapped in such an object instead of as the raw arguments array.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced... | null |
typescript-eslint__tslint-to-eslint-config__567 | typescript-eslint/tslint-to-eslint-config | 567 | defect | 39c261769ea7d3091ea13db799ac63f20f28dc4a | 49ebc6713b28b09aad7601bc07c56297ee005244 | Added Codelyzer template-no-call-expression converter | ## PR Checklist
- [x] Addresses an existing issue: fixes #508
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-to-eslint-config/labels/status%3A%20accepting%20prs)
## Overview
Another non-configurable rule. ⚡
http://codelyzer.com/rules/template-no-cal... | diff --git a/src/rules/converters/codelyzer/template-no-call-expression.ts b/src/rules/converters/codelyzer/template-no-call-expression.ts
new file mode 100644
index 000000000..b447971d3
--- /dev/null
+++ b/src/rules/converters/codelyzer/template-no-call-expression.ts
@@ -0,0 +1,12 @@
+import { RuleConverter } from "..... | 1 | 1 | 1 | [{"id": "G0", "claim": "The converter emits the wrong @angular-eslint rule name and plugin name; it should return ruleName \"@angular-eslint/template/no-call-expression\" and plugin \"@angular-eslint/eslint-plugin-template\" (with the test expectations updated to match).", "category": "correctness", "verdict": "support... | null |
typescript-eslint__tslint-to-eslint-config__569 | typescript-eslint/tslint-to-eslint-config | 569 | defect | 39c261769ea7d3091ea13db799ac63f20f28dc4a | b741238ce99443cd9c65f240e1e4a170b2941cae | Added Codelyzer template-no-negated-async converter | ## PR Checklist
- [x] Addresses an existing issue: fixes #510
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-to-eslint-config/labels/status%3A%20accepting%20prs)
## Overview
Another non-configurable rule. ⚡
http://codelyzer.com/rules/template-no-neg... | diff --git a/src/rules/converters/codelyzer/template-no-negated-async.ts b/src/rules/converters/codelyzer/template-no-negated-async.ts
new file mode 100644
index 000000000..f50a8f31d
--- /dev/null
+++ b/src/rules/converters/codelyzer/template-no-negated-async.ts
@@ -0,0 +1,12 @@
+import { RuleConverter } from "../../co... | 1 | 1 | 1 | [{"id": "G0", "claim": "The converter emits the wrong rule name and plugin — `@angular-eslint/template-no-negated-async` should be `@angular-eslint/template/no-negated-async` and the plugin should be `@angular-eslint/eslint-plugin-template` instead of `@angular-eslint/eslint-plugin` — in both the converter and its test... | null |
typescript-eslint__tslint-to-eslint-config__601 | typescript-eslint/tslint-to-eslint-config | 601 | defect | 049b6f950fdc5b8a3df233fb82c9f8fba001578e | ff1b9a03ead9a7533e310cacf6e8edf9a379cdf6 | improve type safety with regards to config files | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [ ] Addresses an existing issue: fixes #000
- [ ] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-... | diff --git a/src/creation/eslint/createEnv.test.ts b/src/creation/eslint/createEnv.test.ts
index c648ca567..a2cfe2738 100644
--- a/src/creation/eslint/createEnv.test.ts
+++ b/src/creation/eslint/createEnv.test.ts
@@ -63,6 +63,20 @@ describe("createEnv", () => {
});
});
+ it("handles an environment wh... | 2 | 2 | 0 | [{"id": "G0", "claim": "The unit test 'declares a correct DeepPartial type' in findReportedConfiguration.test.ts, which tests the type system itself, is unnecessary and should be removed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test name shou... | null |
typescript-eslint__tslint-to-eslint-config__681 | typescript-eslint/tslint-to-eslint-config | 681 | defect | a93f2678b403c862c33b2de7700eb5e54e7a3878 | 60e2aa02c58bf7031a5227b94fd812984a2f046c | Add notice to arrow-return-shorthand converter | <!--
👋 Hi, thanks for sending a PR to tslint-to-eslint-config! 💖
Please fill out all fields below to ensure your PR is reviewed quickly.
-->
## PR Checklist
- [x] Addresses an existing issue: fixes #345
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-... | diff --git a/src/rules/converters/arrow-return-shorthand.ts b/src/rules/converters/arrow-return-shorthand.ts
index 58167f801..2cde41375 100644
--- a/src/rules/converters/arrow-return-shorthand.ts
+++ b/src/rules/converters/arrow-return-shorthand.ts
@@ -1,5 +1,8 @@
import { RuleConverter } from "../converter";
+expor... | 1 | 1 | 0 | [{"id": "G0", "claim": "The notice string should read \"has a one-line return on it\" instead of \"has one-line return on it\" (grammar fix, offered as a suggestion).", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
typescript-eslint__tslint-to-eslint-config__861 | typescript-eslint/tslint-to-eslint-config | 861 | defect | f613796cdbfb36350fea44ffa6dd8090f717b28e | a755106b2a635afc0286ba951b991820b2096c80 | Added jsx-space-before-trailing-slash converter | ## PR Checklist
- [x] Addresses an existing issue: fixes #526
- [x] That issue was marked as [`status: accepting prs`](https://github.com/typescript-eslint/tslint-to-eslint-config/labels/status%3A%20accepting%20prs)
## Overview
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-sp... | diff --git a/src/converters/lintConfigs/rules/ruleConverters.ts b/src/converters/lintConfigs/rules/ruleConverters.ts
index 4baf906e4..6374882ea 100644
--- a/src/converters/lintConfigs/rules/ruleConverters.ts
+++ b/src/converters/lintConfigs/rules/ruleConverters.ts
@@ -180,6 +180,7 @@ import { convertJsxBooleanValue } f... | 1 | 1 | 1 | [{"id": "G0", "claim": "The converter should emit the rule `react/jsx-tag-spacing` instead of `react/jsx-space-before-closing`.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}] | null |
typescript-eslint__tslint-to-eslint-config__87 | typescript-eslint/tslint-to-eslint-config | 87 | defect | 65975194028174a5e98881e110bb6ec4849d14e5 | efd7efb31411ec4269312c07643f5aa20dbe6f9e | Print Rule Notices | ## PR Checklist
- [x] Addresses an existing issue: fixes #7
- [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/tslint-to-eslint-config/labels/status%3A%20accepting%20prs)
## Overview
This PR updates `reportConversionResults` to print out rule notices.
| diff --git a/src/reporting/reportConversionResults.test.ts b/src/reporting/reportConversionResults.test.ts
index bbd335d2d..9c2ef1487 100644
--- a/src/reporting/reportConversionResults.test.ts
+++ b/src/reporting/reportConversionResults.test.ts
@@ -1,3 +1,4 @@
+import { EOL } from "os";
import { ESLintRuleOptions } fr... | 3 | 3 | 1 | [{"id": "G0", "claim": "The nested loop in `logNotices` could be written more idiomatically: print the header line only when needed (move the `logger.stdout.write` inside the `if (rule.notices !== undefined)` block) or, preferably, type the filter callback as a predicate such as `(ruleOptions): ruleOptions is RuleWithN... | null |
typescript-eslint__typescript-eslint__10477 | typescript-eslint/typescript-eslint | 10,477 | defect | 0bff5f3e658f0b7f2a856ff3d8d6790b1a95e00d | 2e75e31bff5d7cfd8adc11fd21881bb699a40df9 | fix(eslint-plugin): [consistent-generic-constructors] ignore when constructor is typed array | ## PR Checklist
- [x] Addresses an existing open issue: fixes #10445
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/packages/eslint-plugin/src/rules/consistent-generic-constructors.ts b/packages/eslint-plugin/src/rules/consistent-generic-constructors.ts
index 9c92cd98188c..dc0321552b2d 100644
--- a/packages/eslint-plugin/src/rules/consistent-generic-constructors.ts
+++ b/packages/eslint-plugin/src/rules/consistent-gener... | 3 | 2 | 1 | [{"id": "G0", "claim": "Matching only the type name makes the rule wrongly ignore a locally redeclared class such as class Uint8Array<T>, so the rule should use the scope manager to tell a global built-in from something declared in the file.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"... | null |
typescript-eslint__typescript-eslint__11006 | typescript-eslint/typescript-eslint | 11,006 | defect | 953294dfb1700f0dca06d40f458bc95e9ee2a8f6 | 0d81a5bdfac60e4c94ab24ddb29293184a95980e | fix(eslint-plugin): [no-deprecated] fix double-report on computed literal identifiers | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #10958
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/rules/no-deprecated.ts b/packages/eslint-plugin/src/rules/no-deprecated.ts
index 94d7a5ed7262..7c2c0bbd1546 100644
--- a/packages/eslint-plugin/src/rules/no-deprecated.ts
+++ b/packages/eslint-plugin/src/rules/no-deprecated.ts
@@ -10,13 +10,14 @@ import {
createRule,
getPar... | 2 | 2 | 1 | [{"id": "G0", "claim": "Computed member access with an identifier key (const key = 'recommended'; myObject[key]) is not reported because the rule only handles literal keys, even though TypeScript knows the accessed property is deprecated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "... | null |
typescript-eslint__typescript-eslint__11323 | typescript-eslint/typescript-eslint | 11,323 | defect | 76cc62cb37353711b64e3353bb62e2e0a688d629 | 5a2d0205a9a7fcdd063caa2fa18c817dc92bd0ef | feat(eslint-plugin-internal): [no-dynamic-tests] new internal Lint rule to ban dynamic syntax in generating tests | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11052
- [x] That issue was marked as [accepting pr... | diff --git a/packages/eslint-plugin-internal/src/rules/index.ts b/packages/eslint-plugin-internal/src/rules/index.ts
index 806618f909e4..e51eafd1910f 100644
--- a/packages/eslint-plugin-internal/src/rules/index.ts
+++ b/packages/eslint-plugin-internal/src/rules/index.ts
@@ -2,6 +2,7 @@ import type { Linter } from '@typ... | 7 | 7 | 5 | [{"id": "G0", "claim": "The '// Check RuleTester.run calls' comment is already clear from the isRuleTesterCall call and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The '// Check each element in the array' comment is only re... | null |
typescript-eslint__typescript-eslint__11359 | typescript-eslint/typescript-eslint | 11,359 | defect | 5b378e290e56eefe638f22444d55bc5c0744c28c | a1d06d3f70b94b4852fad9e3fc5acbeeac2b0999 | fix(eslint-plugin): [no-deprecated] should report deprecated exports and reexports | ## PR Checklist
- [x] Addresses an existing open issue: fixes #11197
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/packages/eslint-plugin/src/rules/no-deprecated.ts b/packages/eslint-plugin/src/rules/no-deprecated.ts
index 725ddaf3fce9..eb12b788e926 100644
--- a/packages/eslint-plugin/src/rules/no-deprecated.ts
+++ b/packages/eslint-plugin/src/rules/no-deprecated.ts
@@ -161,13 +161,11 @@ export default createRule<Optio... | 1 | 1 | 1 | [{"id": "G0", "claim": "The ExportSpecifier handler should use a conditional type check instead of casting node.exported to TSESTree.Identifier (or widen checkIdentifier to accept string literals), and the string-literal export specifier cases such as export { foo as 'bar' } should be tested.", "category": "correctness... | null |
typescript-eslint__typescript-eslint__11430 | typescript-eslint/typescript-eslint | 11,430 | defect | fee2bc6a0b0ce1c09a276fd910b639ed553f73d2 | 77bcc24cabd48ef261fb46f4a2a6b84e55fdb7b2 | fix(eslint-plugin): [no-floating-promises] allowForKnownSafeCalls now supports function names (fixes #11423) | ## PR Checklist
- [x] Addresses an existing open issue: fixes #11423
- [x] That issue was marked as accepting prs
- [x] Steps in Contributing were taken
## Overview
The allowForKnownSafeCalls option was only checking type-based matching using typeMatchesSomeSpecifier and completely ignoring value-based (func... | diff --git a/packages/eslint-plugin/docs/rules/no-floating-promises.mdx b/packages/eslint-plugin/docs/rules/no-floating-promises.mdx
index 12bf7465b537..977b10b2a078 100644
--- a/packages/eslint-plugin/docs/rules/no-floating-promises.mdx
+++ b/packages/eslint-plugin/docs/rules/no-floating-promises.mdx
@@ -258,7 +258,7 ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Rename the helper isKnownSafePromiseReturn to isKnownSafePromiseCall, because the function now checks the callee name rather than the promise return, so the name no longer matches its stated intent.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}... | null |
typescript-eslint__typescript-eslint__11456 | typescript-eslint/typescript-eslint | 11,456 | defect | 88b063e0de30f24d619dc748dbec51362b3fdb9a | 5a853f564b854d9555b4a53c31e20ada5d33d0fc | feat(eslint-plugin): [no-unused-vars] support explicit resource management with `ignoreUsingDeclarations` option | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11424
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/rules/no-unused-vars.ts b/packages/eslint-plugin/src/rules/no-unused-vars.ts
index f2bfa26bb1a8..fb63c9eb2d41 100644
--- a/packages/eslint-plugin/src/rules/no-unused-vars.ts
+++ b/packages/eslint-plugin/src/rules/no-unused-vars.ts
@@ -35,6 +35,7 @@ export type Options = [
... | 2 | 2 | 1 | [{"id": "G0", "claim": "The rule should not use an `else if` after the unconditional `continue` (restructure it along the lines of no-else-return).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The PR's tests should be aligned with eslint#19828... | null |
typescript-eslint__typescript-eslint__11490 | typescript-eslint/typescript-eslint | 11,490 | defect | 270fa594102856ca9cc06ca897819c3c196c1314 | 566410b9d6aab5ca9b86c5a7b16f4df11513832e | fix(eslint-plugin): [no-unnecessary-type-conversion] ignore enum members | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11472
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-type-conversion.ts b/packages/eslint-plugin/src/rules/no-unnecessary-type-conversion.ts
index 09af31518b11..0fec352a0ae1 100644
--- a/packages/eslint-plugin/src/rules/no-unnecessary-type-conversion.ts
+++ b/packages/eslint-plugin/src/rules/no-unnecessary-type... | 2 | 1 | 1 | [{"id": "G0", "claim": "The added isEnumMemberType code in no-unnecessary-type-conversion.ts trips three lint rules (no-unnecessary-condition on the `??` at 27:12 and on the optional chain at 27:23, and internal/no-poorly-typed-ts-props for Type.symbol) and must be fixed.", "category": "maintainability", "verdict": "su... | null |
typescript-eslint__typescript-eslint__11531 | typescript-eslint/typescript-eslint | 11,531 | defect | 31a73361bd6449974c89b78ef77be0d04e77510b | 240396277d856260f0dea9475d42310222d79c40 | feat: deprecate tseslint.config() | > [!IMPORTANT]
> If you've come across this PR looking for info on migrating off of `tseslint.config()`, please see https://typescript-eslint.io/packages/typescript-eslint#migrating-to-defineconfig
---
## PR Checklist
- [x] Addresses an existing open issue: fixes #10935
- [x] That issue was marked as [accep... | diff --git a/docs/getting-started/Quickstart.mdx b/docs/getting-started/Quickstart.mdx
index 232fe15966d5..0db759fdd584 100644
--- a/docs/getting-started/Quickstart.mdx
+++ b/docs/getting-started/Quickstart.mdx
@@ -35,9 +35,10 @@ Next, create an `eslint.config.mjs` config file in the root of your project, and
// @ts-c... | 3 | 2 | 0 | [{"id": "G0", "claim": "The docs sentence added in Quickstart.mdx should capitalize \"ESLint\" and use a more distinct link text, per the suggested rewording.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The migration-guide link text should avoi... | null |
typescript-eslint__typescript-eslint__11537 | typescript-eslint/typescript-eslint | 11,537 | defect | 9ea09a544fe546b9e239afecbac11b19257f1dcf | 99649966e58d224e6b4e08fbdab99d374c91d21e | fix(typescript-estree): match filenames starting with a period when using glob in allowDefaultProject | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11494
- [x] That issue was marked as [accepting prs... | diff --git a/packages/typescript-estree/src/useProgramFromProjectService.ts b/packages/typescript-estree/src/useProgramFromProjectService.ts
index 9a046ee2c907..9a365029de02 100644
--- a/packages/typescript-estree/src/useProgramFromProjectService.ts
+++ b/packages/typescript-estree/src/useProgramFromProjectService.ts
@... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new test's name misspells \"matches\" as \"matchs\" and should be corrected to \"matches filenames starting with a period\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
typescript-eslint__typescript-eslint__11603 | typescript-eslint/typescript-eslint | 11,603 | defect | 85d8dea3e1ed04c6c885d8c6cc6c3caeeaca0ec6 | 3e36eba76c244bf8c51d8783af09be4456dd5f3b | fix(eslint-plugin): [no-deprecated] ignore deprecated `export import`s | ## PR Checklist
- [x] Addresses an existing open issue: fixes #11586
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/packages/eslint-plugin/src/rules/no-deprecated.ts b/packages/eslint-plugin/src/rules/no-deprecated.ts
index 71b333488b55..f186feec02ae 100644
--- a/packages/eslint-plugin/src/rules/no-deprecated.ts
+++ b/packages/eslint-plugin/src/rules/no-deprecated.ts
@@ -157,6 +157,10 @@ export default createRule<Option... | 1 | 1 | 1 | [{"id": "G0", "claim": "Add a test case covering the `import x = require(...)` form that the new TSImportEqualsDeclaration handling and its comment say are treated as declarations.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
typescript-eslint__typescript-eslint__11616 | typescript-eslint/typescript-eslint | 11,616 | defect | 2f0c6ac62b797e2e57393962ae315078c6811a03 | c3ac10ce6dad5ea219ad3aefceb31886d43e843a | feat(eslint-plugin): expose rule name via RuleModule interface | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11608
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars-eslint.test.ts b/packages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars-eslint.test.ts
index d05d538d2731..a4b5a1a8788e 100644
--- a/packages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars-eslint.test.ts
+++ b/packages/esli... | 4 | 3 | 1 | [{"id": "G0", "claim": "The test rule's name field should be 'use-every-a' instead of 'rule' for consistency with the defineRule call in the same block.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added 'Rule name' property in RuleModule ... | null |
typescript-eslint__typescript-eslint__11617 | typescript-eslint/typescript-eslint | 11,617 | defect | 2f0c6ac62b797e2e57393962ae315078c6811a03 | e66ffef8adf416dfe6f83ac90eea777b2a8f8974 | fix(eslint-plugin): [no-base-to-string] check if superclass is ignored | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11520
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/rules/no-base-to-string.ts b/packages/eslint-plugin/src/rules/no-base-to-string.ts
index 26eadce99839..f69afdffd4b6 100644
--- a/packages/eslint-plugin/src/rules/no-base-to-string.ts
+++ b/packages/eslint-plugin/src/rules/no-base-to-string.ts
@@ -205,6 +205,37 @@ export default c... | 2 | 2 | 0 | [{"id": "G0", "claim": "Replace the manual flags check in hasBaseTypes with fewer characters and a bit more type safety using tsutils.isObjectType and tsutils.isObjectFlagSet.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The confusing isIgnore... | null |
typescript-eslint__typescript-eslint__11635 | typescript-eslint/typescript-eslint | 11,635 | defect | 9fd1cc6c5aeaca5791aa8190ffa665cac7f91a01 | 56bdc0799458e8ea46a44f61cf00280dd5d5438c | feat(typescript-estree): mention file specifics in project service allowDefaultProject error | ## PR Checklist
- [x] Addresses an existing open issue: fixes #10048
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/docs/packages/Parser.mdx b/docs/packages/Parser.mdx
index 52a294e67e41..8b6e3b09487e 100644
--- a/docs/packages/Parser.mdx
+++ b/docs/packages/Parser.mdx
@@ -53,7 +53,7 @@ interface ParserOptions {
jsxPragma?: string | null;
lib?: string[];
programs?: import('typescript').Program[];
- project?: s... | 3 | 3 | 2 | [{"id": "G0", "claim": "The documented `project` option type in TypeScript_ESTree.mdx was changed to include `ts.Project`/`ts.Project[]` and that doesn't match the underlying types — was this intentional?", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "clai... | null |
typescript-eslint__typescript-eslint__11659 | typescript-eslint/typescript-eslint | 11,659 | defect | c1f891d4aa09455ac6dcf76e2f611cc392faf679 | d723a38624d3f2a2ff2417b8a937bb3845a26830 | feat(eslint-plugin): [no-unsafe-member-access] add allowOptionalChaining option | ## PR Checklist
- [x] Addresses an existing open issue: fixes #2728
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/packages/eslint-plugin/docs/rules/no-unsafe-member-access.mdx b/packages/eslint-plugin/docs/rules/no-unsafe-member-access.mdx
index 2f1eb0edbf0f..9f71ea0ebf9b 100644
--- a/packages/eslint-plugin/docs/rules/no-unsafe-member-access.mdx
+++ b/packages/eslint-plugin/docs/rules/no-unsafe-member-access.mdx
@@ -6... | 3 | 3 | 1 | [{"id": "G0", "claim": "The docs sentence 'Optional chaining makes is more safe than normal property accesses...' should be reworded to 'Optional chaining makes it safer than normal property accesses...'.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "clai... | null |
typescript-eslint__typescript-eslint__11660 | typescript-eslint/typescript-eslint | 11,660 | defect | 9530e0266919d5bb539023dd949f199d6a2d593a | 50f7cc2f40d29dd99c0003b54bbebdb0ba472ea9 | fix(eslint-plugin): [prefer-readonly-parameter-types] ignore tagged primitives | ## PR Checklist
- [x] Addresses an existing open issue: fixes #1790
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/packages/eslint-plugin/src/rules/prefer-readonly-parameter-types.ts b/packages/eslint-plugin/src/rules/prefer-readonly-parameter-types.ts
index 71e5efe2f74d..15f90484bf2b 100644
--- a/packages/eslint-plugin/src/rules/prefer-readonly-parameter-types.ts
+++ b/packages/eslint-plugin/src/rules/prefer-readonly-... | 2 | 2 | 1 | [{"id": "G0", "claim": "A parameter whose type is a union of two tagged primitives (e.g. MySpecialString | OtherSpecialString) should not be flagged by the rule.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Both type.types.length === 2 and type.ty... | null |
typescript-eslint__typescript-eslint__11667 | typescript-eslint/typescript-eslint | 11,667 | defect | db09a7d5e551964b52b14cdb7bcd08ab094ef2b0 | d63ef18a3b7ec3ca2c167ab3b1e5a0b978d75cea | fix(eslint-plugin): [no-misused-promises] special-case `.finally` not to report when a promise returning function is provided as an argument | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #10959
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/rules/no-misused-promises.ts b/packages/eslint-plugin/src/rules/no-misused-promises.ts
index aa225d4e0aa2..dc3cdd13d9a8 100644
--- a/packages/eslint-plugin/src/rules/no-misused-promises.ts
+++ b/packages/eslint-plugin/src/rules/no-misused-promises.ts
@@ -6,10 +6,13 @@ import * as... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new isPromiseFinallyMethod helper should use the existing parseFinallyCall helper from util/promiseUtils instead of manually checking the callee type and statically resolved member name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
typescript-eslint__typescript-eslint__11719 | typescript-eslint/typescript-eslint | 11,719 | defect | ea2ee6b65a2f14dd2c3fc8d12be969cbeaef80a8 | 428521fe589f699e2da521fb2eb7ce613f41a3fe | feat(eslint-plugin): expose rule name via RuleModule interface | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11608
- [x] That issue was marked as [accepting prs... | diff --git a/packages/rule-tester/src/RuleTester.ts b/packages/rule-tester/src/RuleTester.ts
index 723bc6b17227..25a3651bb0b5 100644
--- a/packages/rule-tester/src/RuleTester.ts
+++ b/packages/rule-tester/src/RuleTester.ts
@@ -444,9 +444,10 @@ export class RuleTester extends TestFramework {
return normalizedTests;... | 4 | 4 | 2 | [{"id": "G0", "claim": "The pull request should add tests ensuring the regressions noted in issue #11608 and the issues linked there do not happen again.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Defaulting the rule name to '' is an odd default; th... | null |
typescript-eslint__typescript-eslint__11764 | typescript-eslint/typescript-eslint | 11,764 | defect | 1d15881d73cf120ba1aeaa763597a521d403d036 | 8eaddd50a9ab014d1bfd81efd915051269d36aac | fix(eslint-plugin): [restrict-template-expressions] check base types in allow list | Fixes #11759
## PR Checklist
- [x] Addresses an existing open issue: fixes #11759
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%
3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.i... | diff --git a/packages/eslint-plugin/src/rules/restrict-template-expressions.ts b/packages/eslint-plugin/src/rules/restrict-template-expressions.ts
index 069388b7eb0d..e9b1069d2609 100644
--- a/packages/eslint-plugin/src/rules/restrict-template-expressions.ts
+++ b/packages/eslint-plugin/src/rules/restrict-template-expr... | 4 | 4 | 1 | [{"id": "G0", "claim": "Remove the explanatory comments added in the test file, since the tests are clear enough and comments tend to go stale.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Move the `hasBaseTypes` helper duplicated from `no-bas... | null |
typescript-eslint__typescript-eslint__11767 | typescript-eslint/typescript-eslint | 11,767 | defect | d26e9de6874eb36216f1ebe8370c218d8de08881 | 3d0cf2a9f6901248258be4bf78c2232268c82897 | fix(eslint-plugin): honor ignored base types on generic classes | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11758
- [x] That issue was marked as [accepting pr... | diff --git a/packages/eslint-plugin/src/rules/no-base-to-string.ts b/packages/eslint-plugin/src/rules/no-base-to-string.ts
index 48fca65676ed..1d4542f73946 100644
--- a/packages/eslint-plugin/src/rules/no-base-to-string.ts
+++ b/packages/eslint-plugin/src/rules/no-base-to-string.ts
@@ -211,14 +211,37 @@ export default ... | 2 | 2 | 0 | [{"id": "G0", "claim": "The getBaseTypesForType implementation uses a confusing `let` with several points of duplication and should be streamlined to a single interfaceTarget/interfaceType form.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "isI... | null |
typescript-eslint__typescript-eslint__11785 | typescript-eslint/typescript-eslint | 11,785 | defect | 2929b876042dca10b9d2c3cbedbc6857a3a403f8 | b95b746f9bb18381708a2dcb61dd911581fe9df1 | fix(eslint-plugin): [no-unused-private-class-members] private destructured class member is defined but used | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11771
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/util/class-scope-analyzer/classScopeAnalyzer.ts b/packages/eslint-plugin/src/util/class-scope-analyzer/classScopeAnalyzer.ts
index b72ece7f9a25..50f4cb867107 100644
--- a/packages/eslint-plugin/src/util/class-scope-analyzer/classScopeAnalyzer.ts
+++ b/packages/eslint-plugin/src/u... | 3 | 3 | 1 | [{"id": "G0", "claim": "The fix misses the destructuring-assignment cases such as `let property; ({ property } = this);` and `const foo = ({ property } = this) => {}`, which are not covered by the VariableDeclarator-only handling.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
typescript-eslint__typescript-eslint__11813 | typescript-eslint/typescript-eslint | 11,813 | defect | 5ac66a60cc4e391df78cb788054029ec9127c21c | 2d80906b2b42a7ad491e59c1acda126fe933da37 | fix(eslint-plugin): [method-signature-style] ignore methods that return `this` | ## PR Checklist
- [x] Addresses an existing open issue: fixes #1991
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/packages/eslint-plugin/src/rules/method-signature-style.ts b/packages/eslint-plugin/src/rules/method-signature-style.ts
index c4e76b0593a4..8480ecb98eba 100644
--- a/packages/eslint-plugin/src/rules/method-signature-style.ts
+++ b/packages/eslint-plugin/src/rules/method-signature-style.ts
@@ -4,6 +4,7 @@ i... | 1 | 1 | 1 | [{"id": "G0", "claim": "The snapshot S1 code leaves two lines of the new fixer-skip logic uncovered; a test with a method returning `this` plus a duplicate returning `Promise<this>` (or equivalent) should be added to cover it.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
typescript-eslint__typescript-eslint__11826 | typescript-eslint/typescript-eslint | 11,826 | defect | 32b7e891bd60ae993e85018ceefa2a0c07590688 | 2f02909e768fc9e6b69408c863c5d91198748ee8 | fix(eslint-plugin): [no-unnecessary-type-assertion] correct handling of undefined vs. void |
<!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11529
- [x] That issue was marked as [accepting ... | diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-type-assertion.ts b/packages/eslint-plugin/src/rules/no-unnecessary-type-assertion.ts
index a78a8ab9d508..32cc34917362 100644
--- a/packages/eslint-plugin/src/rules/no-unnecessary-type-assertion.ts
+++ b/packages/eslint-plugin/src/rules/no-unnecessary-type-as... | 3 | 3 | 2 | [{"id": "G0", "claim": "The new IIFE valid cases needlessly store results in variables; split them into simpler expression tests and trim the unnecessary variables from the rest.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "getUncastType hardcodes the... | null |
typescript-eslint__typescript-eslint__11865 | typescript-eslint/typescript-eslint | 11,865 | defect | 8017d07079ebab7eec4ab38c7a8c0d4a2103621a | 4d73fdb0269bbd62f1246d833725f8f6301f7e87 | fix(eslint-plugin): [prefer-optional-chain] remove dangling closing parenthesis | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11818
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/rules/prefer-optional-chain-utils/analyzeChain.ts b/packages/eslint-plugin/src/rules/prefer-optional-chain-utils/analyzeChain.ts
index a2b11134e540..d3f6d1a3d1c0 100644
--- a/packages/eslint-plugin/src/rules/prefer-optional-chain-utils/analyzeChain.ts
+++ b/packages/eslint-plugin... | 1 | 1 | 1 | [{"id": "G0", "claim": "Counting parentheses over raw sourceCode.text also counts parens inside comments, so the fixer produces wrong output for cases like `foo && /* gotcha :( */ (foo.bar && (foo.bar as any).baz)`; the logic should instead look for parentheses via tokens (e.g. sourceCode.getToken).", "category": "corr... | null |
typescript-eslint__typescript-eslint__11871 | typescript-eslint/typescript-eslint | 11,871 | defect | 647487d972ec2cfc09c45b31b559e816025236fd | e8a9bedd3e9a6e7545c4b9e8fe443054f253ba00 | feat(eslint-plugin): [no-useless-default-assignment] fix some cases to optional syntax | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11847
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts b/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts
index 227bc73cf5c9..b6f154ba84ae 100644
--- a/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts
+++ b/packages/eslint-plugin/src/rules/no-useless-default-ass... | 3 | 3 | 1 | [{"id": "G0", "claim": "The preferOptionalSyntax message should say that `= undefined` to make a parameter optional \"adds unnecessary runtime logic\" instead of \"is verbose\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The fix callback in re... | null |
typescript-eslint__typescript-eslint__11899 | typescript-eslint/typescript-eslint | 11,899 | defect | e4c57f5996a9a3aed8a8c2b02712a9ce37db4928 | 8773247cc3f2351bb7b5145ca820663d2b0bde2c | feat(eslint-plugin-internal): [no-multiple-lines-of-errors] add rule | <!--
👋 Hi, thanks for sending a PR to typescript-eslint!
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #6664
- [x] That issue was marked as [accepting prs](h... | diff --git a/eslint.config.mjs b/eslint.config.mjs
index 8831736cae8f..9e1225cb4969 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -428,6 +428,7 @@ export default defineConfig(
name: 'eslint-plugin-and-eslint-plugin-internal/test-files/rules',
rules: {
'@typescript-eslint/internal/no-dynamic... | 1 | 1 | 0 | [{"id": "G0", "claim": "The PR should not modify the test cases in packages/eslint-plugin/tests/rules/no-unused-vars/no-unused-vars-eslint.test.ts, since each mutation there is maintenance the team has to carry when merging tests from upstream.", "category": "maintainability", "verdict": "supported", "priority": "P2", ... | null |
typescript-eslint__typescript-eslint__11914 | typescript-eslint/typescript-eslint | 11,914 | defect | cc7328a60ce9e1c2c7d735700e8ce8607ccb295a | 1ac46b727f47fed93ac1af6a4d2d16203ca2da68 | feat(scope-manager): support ScopeManager#addGlobals | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11762
- [x] That issue was marked as [accepting prs... | diff --git a/packages/scope-manager/src/ScopeManager.ts b/packages/scope-manager/src/ScopeManager.ts
index 63241e98271a..82c82b75051b 100644
--- a/packages/scope-manager/src/ScopeManager.ts
+++ b/packages/scope-manager/src/ScopeManager.ts
@@ -147,6 +147,15 @@ export class ScopeManager {
return scopes.find(predicat... | 2 | 1 | 0 | [{"id": "G0", "claim": "The new test should replace its many individual assertions with higher-level unified `.toStrictEqual` + `expect.objectContaining` assertions so failures point at the mismatched properties rather than failing one assertion at a time.", "category": "testing", "verdict": "opposed", "priority": "P2"... | null |
typescript-eslint__typescript-eslint__11918 | typescript-eslint/typescript-eslint | 11,918 | defect | 46fc7fe4089d9f7f864bea8b397b8a0e1c7a4bc6 | f97edde8c4436852b8f2fd794ba298cab73204c7 | feat(eslint-plugin): [no-unnecessary-type-arguments] report inferred required types using assignability API | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #4978
- [x] That issue was marked as [accepting prs]... | diff --git a/packages/eslint-plugin/src/rules/no-unnecessary-type-arguments.ts b/packages/eslint-plugin/src/rules/no-unnecessary-type-arguments.ts
index 708879be502f..eba9410ee870 100644
--- a/packages/eslint-plugin/src/rules/no-unnecessary-type-arguments.ts
+++ b/packages/eslint-plugin/src/rules/no-unnecessary-type-ar... | 6 | 4 | 3 | [{"id": "G0", "claim": "It is still undecided whether the rule should flag an explicit type argument that matches what would be inferred from the argument expression (an existing identifier's type, an enum member, or a function call's return value such as f<number>(g())), and if so whether to implement that by type-che... | null |
typescript-eslint__typescript-eslint__11958 | typescript-eslint/typescript-eslint | 11,958 | defect | 3021ede961732e66b1daca804759aa0cf4143b97 | 2c889783fdfd45f674ebcc432439c5563c380d38 | fix(utils): handle missing `FlatESLint` and `LegacyESLint` | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11629
- [x] That issue was marked as [accepting prs... | diff --git a/packages/utils/src/ts-eslint/ESLint.ts b/packages/utils/src/ts-eslint/ESLint.ts
index 4fe9ddb44ea1..263c6843e358 100644
--- a/packages/utils/src/ts-eslint/ESLint.ts
+++ b/packages/utils/src/ts-eslint/ESLint.ts
@@ -1,7 +1,6 @@
export { FlatESLint } from './eslint/FlatESLint';
export { FlatESLint as ESLint... | 1 | 1 | 0 | [{"id": "G0", "claim": "The removed TODO comment on the re-export in packages/utils/src/ts-eslint/ESLint.ts should be restored, reworded so it refers to typescript-eslint v9 instead of ESLint v10.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
typescript-eslint__typescript-eslint__11971 | typescript-eslint/typescript-eslint | 11,971 | defect | 11f334d8d5c4c8cb5d2664240becbc6b23c98e6f | a83c49584e556c7aaf96825aa409d33a63616bcc | fix(eslint-plugin): [array-type] ignore Array and ReadonlyArray without type arguments | ## PR Checklist
- [x] Addresses an existing open issue: fixes #11964
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/packages/eslint-plugin/src/rules/array-type.ts b/packages/eslint-plugin/src/rules/array-type.ts
index f53b61ce5bbe..de24869d480f 100644
--- a/packages/eslint-plugin/src/rules/array-type.ts
+++ b/packages/eslint-plugin/src/rules/array-type.ts
@@ -216,6 +216,14 @@ export default createRule<Options, MessageId... | 3 | 3 | 2 | [{"id": "G0", "claim": "The rule's new early return only checks that the identifier is named Array/ReadonlyArray and has no type arguments, without scope checks, so a user-defined generic `Array` type is wrongly ignored; scope checks for the 'Array' identifier in array-type.ts are missing.", "category": "correctness", ... | null |
typescript-eslint__typescript-eslint__11974 | typescript-eslint/typescript-eslint | 11,974 | defect | 4c0b37964eac642cf54a3a76723531c2f468183c | b20c3fe230d7d1b2bf6ef27ab4b8e2cc053f9a39 | feat(eslint-plugin-internal): add prefer-tsutils-methods rule | ## PR Checklist
- [x] Addresses an existing open issue: fixes #11625
- [x] That issue was marked as accepting prs
- [x] Steps in Contributing were taken
## Overview
Add `prefer-tsutils-methods` rule to `eslint-plugin-internal` that detects direct bitwise flag checks and suggests using ts-api-utils methods in... | diff --git a/packages/eslint-plugin-internal/src/rules/index.ts b/packages/eslint-plugin-internal/src/rules/index.ts
index a50a60ea9af5..428302c8faca 100644
--- a/packages/eslint-plugin-internal/src/rules/index.ts
+++ b/packages/eslint-plugin-internal/src/rules/index.ts
@@ -10,6 +10,7 @@ import noTypescriptDefaultImpor... | 5 | 5 | 1 | [{"id": "G0", "claim": "The hunk should not store a single property (node.parent) in a local variable; use node.parent directly, here and elsewhere in the rule.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Unnecessary explicit return type anno... | null |
typescript-eslint__typescript-eslint__11984 | typescript-eslint/typescript-eslint | 11,984 | defect | 4c0b37964eac642cf54a3a76723531c2f468183c | d47b1e995dfab6cce8c3d7b7cb240a6c4500cd8d | fix(eslint-plugin): [no-useless-default-assignment] report unnecessary defaults in ternary expressions | <!--
👋 Hi, thanks for sending a PR to typescript-eslint! 💖
Please fill out all fields below and make sure each item is true and [x] checked.
Otherwise we may not be able to review your PR.
-->
## PR Checklist
- [x] Addresses an existing open issue: fixes #11980
- [x] That issue was marked as [accepting prs... | diff --git a/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts b/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts
index 3f8324ab600e..444b88da5e5b 100644
--- a/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts
+++ b/packages/eslint-plugin/src/rules/no-useless-default-ass... | 4 | 2 | 1 | [{"id": "G0", "claim": "A ternary branch that is a spread element (`{ ...b }`) whose object contains the destructured property should also be reported as a useless default.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "A ternary branch keyed by a sta... | null |
typescript-eslint__typescript-eslint__12077 | typescript-eslint/typescript-eslint | 12,077 | defect | f2dbd4bec669170a61b5f1a7c783eceeaffb1259 | f4a4321fb7d9f40c3f7232f799653d9ec1e6ca4d | fix(eslint-plugin): guard against negative paramIndex in no-useless-default-assignment | ## PR Checklist
- [x] Addresses an existing open issue: fixes #12068
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts b/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts
index f9a59a05a5ae..95d7891bb4da 100644
--- a/packages/eslint-plugin/src/rules/no-useless-default-assignment.ts
+++ b/packages/eslint-plugin/src/rules/no-useless-default-ass... | 2 | 1 | 0 | [{"id": "G0", "claim": "The added `paramIndex >= 0 &&` check is redundant with the existing `if (paramIndex !== -1)` guard on line 149, so the condition should be just `if (paramIndex < params.length) {`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "cl... | null |
typescript-eslint__typescript-eslint__12167 | typescript-eslint/typescript-eslint | 12,167 | defect | e9cc25a794dbf82a241807f394489a2aad39ffae | 0c2928f41f3ce69dd761784544641f288263dbd9 | chore: fix cspell violations in code blocks | ## PR Checklist
- [x] Addresses an existing open issue: fixes #12156
- [x] That issue was marked as [accepting prs](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aopen+is%3Aissue+label%3A%22accepting+prs%22)
- [x] Steps in [Contributing](https://typescript-eslint.io/contributing) were taken
... | diff --git a/.cspell.json b/.cspell.json
index 87919eea7d8e..2da1793718d5 100644
--- a/.cspell.json
+++ b/.cspell.json
@@ -15,6 +15,7 @@
".vscode/*.json",
"**/*.{json,snap}",
"**/**/CHANGELOG.md",
+ "docs/packages/*/generated/**",
"**/**/TSLINT_RULE_ALTERNATIVES.md",
"**/coverage/**",
"... | 6 | 3 | 0 | [{"id": "G0", "claim": "The Kazik/Zenek words should not live in a file-scoped inline cspell comment; since they aren't context-dependent they should be added to a custom dictionary or the .cspell.json words list.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
typesense__typesense-rust__48 | typesense/typesense-rust | 48 | defect | a7646fc6c96a3c7cb2721c803fdfbba9e0a75da3 | ebaaf57fc86f532e20762ad7d608b27969c5056b | Add typesense publish workflow | ## Change Summary
<!--- Described your changes here -->
## PR Checklist
<!--- Put an `x` inside the box : -->
- [x] I have read and signed the [Contributor License Agreement](https://forms.gle/PZyiY5N2GDQU8GsV9).
Closes #46
| diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..a817a8d7
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,25 @@
+name: Publish to crates.io
+on:
+ push:
+ tags: ['v*'] # Triggers when pushing tags starting with 'v'
+jobs:
+ publish:
+ ... | 4 | 1 | 0 | [{"id": "G0", "claim": "The workspace Cargo.toml defines typesense_codegen as version \"0.25.0\" while typesense_codegen/Cargo.toml sets it to \"0.25.1\", which will cause dependency resolution issues; it should be changed to 0.25.1.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "intro... | null |
typesense__typesense-rust__62 | typesense/typesense-rust | 62 | defect | 1efe89afcb0ed30116902e55c16dd8a1e57f7870 | 5b596eba11846c1d8088576fbfec5e337cb0ed48 | derive: add support for field attribute `reference` | ## Change Summary
<!--- Described your changes here -->
## PR Checklist
<!--- Put an `x` inside the box : -->
- [x] I have read and signed the [Contributor License Agreement](https://forms.gle/PZyiY5N2GDQU8GsV9).
| diff --git a/README.md b/README.md
index 96fef4b5..36cc700d 100644
--- a/README.md
+++ b/README.md
@@ -76,6 +76,7 @@ let result = client
| `num_dim` | integer | Set this to a non-zero value to treat a field of type `float[]` as a vector field. |
| `locale` | string | Local... | 1 | 1 | 0 | [{"id": "G0", "claim": "The added test line {\"name\": \"company_id\", \"type\": \"string\", \"reference\": \"company.id\"} should have a space after the starting `{` and before the ending `}` and end with a trailing comma.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
typesense__typesense-rust__73 | typesense/typesense-rust | 73 | defect | 1816735a804345ebb99e634b9577519f22262f9a | a69895f9bc2888a549dd9f4a73d196c557252c0b | feature: Allow to customize reqwest client builder | ## Change Summary
After taking a look into https://github.com/typesense/typesense-rust/pull/67, I created this PR with the same goal, following maintainers guidance.
This PR allows to customize the reqwest client builder by each node, by using a closure.
I left the default connection timeout value around for non-WAS... | diff --git a/typesense/Cargo.toml b/typesense/Cargo.toml
index f86b5dd5..302dd1d5 100644
--- a/typesense/Cargo.toml
+++ b/typesense/Cargo.toml
@@ -48,6 +48,8 @@ trybuild = "1.0.42"
# native-only dev deps
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
tokio = { workspace = true}
+tokio-rustls = "0.26"
+... | 2 | 2 | 1 | [{"id": "G0", "claim": "The `Fn` bound on `http_builder` forces the test to clone `client_cert`; the closure parameter should be `FnOnce`, which would make the clone unnecessary.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `HttpBuilderFn` helper t... | null |
typesense__typesense-rust__76 | typesense/typesense-rust | 76 | defect | f6f16dab7e4c718f34b066481a7c1487d2bee389 | 0e02211bfc0a9272dfdfa7d07a6c57c3c969e82e | Fix raw identifiers in collection schema | ## Change Summary
Presently, a struct with a field using a raw identifier, like `r#type` will have this as the field name in the generated schema collection. This adds a simple `strip_raw_prefix` to remove this and a consolidated test.
## PR Checklist
<!--- Put an `x` inside the box : -->
- [x] I have read and si... | diff --git a/typesense/tests/derive/collection.rs b/typesense/tests/derive/collection.rs
index ca8c2c3..ad986d3 100644
--- a/typesense/tests/derive/collection.rs
+++ b/typesense/tests/derive/collection.rs
@@ -260,7 +260,66 @@ fn derived_document_handles_nested_and_flattened_fields() {
assert_eq!(serde_json::to_val... | 2 | 2 | 0 | [{"id": "G0", "claim": "The added code is not formatted according to rustfmt and the author should run `cargo fmt`.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In `strip_raw_prefix`, the conversion should use `.to_owned()` rather than `.to_st... | null |
typesense__typesense__2639 | typesense/typesense | 2,639 | defect | f987dc2120150a9892a9ff2bfdaf1223906b1720 | a0bc7a3fd752e066a288d1137ee4f7d84b95e994 | feat: add validation for the type when sort enabled | ## Change Summary
Currently we don't validate if the type of the new field is sortable before adding the field actually to the collection. This PR fixes the issue.
Fixes #1573
## PR Checklist
<!--- Put an `x` inside the box : -->
- [X] I have read and signed the [Contributor License Agreement](https://forms.gle... | diff --git a/src/field.cpp b/src/field.cpp
index d5e090389..d81e74740 100644
--- a/src/field.cpp
+++ b/src/field.cpp
@@ -280,6 +280,18 @@ Option<bool> field::json_field_to_field(bool enable_nested_fields, nlohmann::jso
}
}
+ bool is_sortable_type = (field_json["type"] == field_types::INT32 || field_j... | 1 | 1 | 1 | [{"id": "G0", "claim": "The validation should be restricted to the `auto` type only, as the original issue was about auto, rather than rejecting all types not in the sortable list.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
typesense__typesense__2777 | typesense/typesense | 2,777 | defect | 53631d0d644c61f14e5fa2eaf36c2860394d1827 | 01f45c57f876dc83d899c67ff8b1da8b69184778 | feat: add existence filter for optional fields | ## Change Summary
Add support for filtering documents by whether optional fields are missing
using `field: _missing` and `field: !_missing` syntax.
This is enabled per field via the new `track_missing_values` schema property.
### Usage
1. Create a collection with an optional indexed field that has
`track... | diff --git a/include/field.h b/include/field.h
index e7b22fa76..ca8bef67b 100644
--- a/include/field.h
+++ b/include/field.h
@@ -89,6 +89,7 @@ namespace fields {
static const std::string truncate_len = "truncate_len";
static const std::string hnsw_params = "hnsw_params";
+ static const std::string op... | 10 | 10 | 4 | [{"id": "G0", "claim": "The tests should assert against the actual error message rather than only checking that the error contains `optional_index`.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The OR-filter tests should also assert the exact expected... | null |
typesense__typesense__2781 | typesense/typesense | 2,781 | defect | 1fbcd8eeaba6969a52d431332cee0456b1566092 | d86ef6ea317a017252bfdcb4e9fe7d4010fc2d11 | don't transliterate stopword tokens | ## Change Summary
<!--- Described your changes here -->
## PR Checklist
<!--- Put an `x` inside the box : -->
- [X] I have read and signed the [Contributor License Agreement](https://forms.gle/PZyiY5N2GDQU8GsV9).
| diff --git a/include/tokenizer.h b/include/tokenizer.h
index 9714e3bea..30f1332fc 100644
--- a/include/tokenizer.h
+++ b/include/tokenizer.h
@@ -51,6 +51,8 @@ class Tokenizer {
std::shared_ptr<Stemmer> stemmer = nullptr;
+ bool is_stopword = false;
+
inline size_t get_stream_mode(char c) {
ret... | 1 | 1 | 0 | [{"id": "G0", "claim": "Instead of naming the parameter `is_stopword`, it should be a more generic `do_transliterate` which can be true by default and is only disabled for stopword tokenization.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
typestack__class-transformer__125 | typestack/class-transformer | 125 | defect | 66a0dcc23b4b4dfd13b6b380c542b7afda7c90d9 | 7f398f7f7e6cf3371a0de2d899247adb8806e48b | Polymorphism | Added the possibility to provide an array of discriminator functions in case of an array of different types.
If you have any other proposal for doing this, comment here or in the related ticket: #51 | diff --git a/src/TransformOperationExecutor.ts b/src/TransformOperationExecutor.ts
index be1eb55a2..cb2b123fb 100644
--- a/src/TransformOperationExecutor.ts
+++ b/src/TransformOperationExecutor.ts
@@ -1,6 +1,7 @@
import {ClassTransformOptions} from "./ClassTransformOptions";
import {defaultMetadataStorage} from "./st... | 5 | 4 | 1 | [{"id": "G0", "claim": "The pull request's new polymorphism feature ships without any README documentation or usage examples, which the reviewer says he needs before he can review it.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Travis CI fails ... | null |
typestack__class-transformer__262 | typestack/class-transformer | 262 | defect | cdd78ad6c5f2d7c0dac45b9b258062d86763766e | 26f4e654fb199ced86bd89fe1a5c177a8fef42ef | fix: prevent error during transformation when object has property with Promise | Class transformer throws error when class type has promise field.
fixes: #261
| diff --git a/package-lock.json b/package-lock.json
index 218a9108b..728eae64c 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -14,6 +14,11 @@
"through2": "^2.0.3"
}
},
+ "@typed/is-promise": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@typed/is-promise/-... | 3 | 1 | 0 | [{"id": "G0", "claim": "The fix does not await promise fields: after transformation the property is still a Promise and is not resolved before serialization (e.g. a TypeORM lazy relation comes out as {} instead of the contact).", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id... | null |
typestack__class-transformer__33 | typestack/class-transformer | 33 | defect | 201e6217efe618c913c22e557c8e17f0177459b1 | f7bc93e2c70f81d30862c00e7fd8b3705e30ddab | Fix transform | When use Expose with name, then Transform did not work
My example:
```
@Expose({ name: "created_at" })
@Transform(date => date ? Parser.date(date): null) // not work
createdDate: Date = new Date();
``` | diff --git a/src/TransformOperationExecutor.ts b/src/TransformOperationExecutor.ts
index 4853f9b75..633c2cf79 100644
--- a/src/TransformOperationExecutor.ts
+++ b/src/TransformOperationExecutor.ts
@@ -158,8 +158,9 @@ export class TransformOperationExecutor {
}
if (!this.isCircular(su... | 2 | 1 | 1 | [{"id": "G0", "claim": "The pull request should add tests covering the custom-transformation issue so the behaviour is not broken the next time someone else makes a change.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Asks why newValueKey is needed as... | null |
typestack__class-transformer__38 | typestack/class-transformer | 38 | defect | 48a6ef297950c6413e30c7dfdbde53aac643a3bd | 92682258eb8e14aaf9b7f0289e71e243c548ef90 | Adding JsonView decorator | Adding @JsonView decorator so now it'll be possible to annotate a method in a controller class to expose the object properties.
Similar to JMS Serializer in Symfony (PHP) and in Java Spring.
Very useful with a library such - "ts-express-decorators" (https://github.com/Romakita/ts-express-decorators)
So it is m... | diff --git a/src/decorators.ts b/src/decorators.ts
index b67dbe2eb..7f6162526 100644
--- a/src/decorators.ts
+++ b/src/decorators.ts
@@ -1,3 +1,4 @@
+import {ClassTransformer} from "./ClassTransformer";
import {defaultMetadataStorage} from "./storage";
import {TypeMetadata} from "./metadata/TypeMetadata";
import {Ex... | 8 | 7 | 4 | [{"id": "G0", "claim": "Move the `user` and `plainUser` blocks into the controller action code in the test to avoid extra thinking about their scope and why they are defined at the top.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `JsonView` signa... | null |
typestack__class-transformer__393 | typestack/class-transformer | 393 | defect | 57127720c459d004a157f445ef78c9bf65da234d | 0e648a9b8cadf7e741e7a61b425545b9ecf7e72e | feat: expose current property name to transform function | ## Description
<!-- A clear and concise description what these changes does. -->
This PR is a continuation of the https://github.com/typestack/class-transformer/pull/330 (because fork was deleted).
- updated the signature of the transform function: `transformFn({ value, key, object, type })`
- added additional ... | diff --git a/src/TransformOperationExecutor.ts b/src/TransformOperationExecutor.ts
index e07f958ad..b20d82642 100644
--- a/src/TransformOperationExecutor.ts
+++ b/src/TransformOperationExecutor.ts
@@ -368,7 +368,7 @@ export class TransformOperationExecutor {
}
metadatas.forEach(metadata => {
- value = ... | 1 | 1 | 0 | [{"id": "G0", "claim": "Move the TransformFnParams interface out of transform-metadata.interface.ts into its own file at src/interfaces/metadata/transform-fn-params.interface.ts.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.