* feat: support importing TypeORM in esm projects
Closes: #6974Closes: #6941
* bugfix: generate index.mjs directly out of commonjs exports
The new implementation generates ESM exports directly out of the commonjs exports, and provides a default export to maintain compatability with existing `import`s of the commonjs implementation
* feat: support loading ESM entity and connection config files
When TypeORM tries to load an entity file or a connection config file, it will determine what is the appropriate module system to use for the file and then `import` or `require` it as it sees fit.
Closes: #7516Closes: #7159
* fix: adapt ImportUtils.importOrRequireFile tests to older version of nodejs
* fix: improved importOrRequireFile implementation
* feat: add solution to circular dependency issue in ESM projects
* docs: added FAQ regarding ESM projects
* chore: add `"type": "commonjs"` to package.json
* style
* docs: improve `ts-node` usage examples for CLI commands in ESM projects
* feat: add support for generating an ESM base project
* refactor: renamed `Related` type to `Relation`
* docs: added a section in the Getting Started guide regarding the `Relation` wrapper type in ESM projects
* docs: improved documentation of the `Relation` type
* docs: improved documentation of the `Relation` type
* docs: added ESM support to the list of TypeORM features
* docs: Improve various docs formatting
code syntax highlight on `leftJoinAndSelect`
capitalise SQL word
* docs: capitalise SQL word on classes methods docs
* docs: lowercase SQL word to trigger auto-test
* docs: uppercase SQL word to trigger auto-test
* master: (25 commits)
version bump
skipped failing test for now
version bump
fixed issue with entity order by applied to update query builder
Update README.md
Add TYPEORM_DATABASE to available env options
Provide failing test
chore: fix typo in repository clear test filename
minor lint fix
delete entities using tablePath
implement timezone based tests for multiple database drivers
remove UTC transformation from drivers on write and read
fixed broken lazy relation behaviour with broadcaster
Fixes to Postgres, MySQL and MSSQL drivers propagating unhandled errors and crashing the hosting application
remove array cast apply on function typed columns
exit process on migrations:run command complete
removed only test
fixes#1720
added test for #1703
Update cli docs for create migration
...
# Conflicts:
# CHANGELOG.md
# README.md
# package-lock.json
# package.json
# src/driver/mysql/MysqlDriver.ts
# src/driver/postgres/PostgresDriver.ts
# src/driver/sqlite-abstract/AbstractSqliteDriver.ts
# src/persistence/SubjectOperationExecutor.ts
# src/subscriber/Broadcaster.ts
# test/github-issues/1716/issue-1716.ts