ever-co / ever-traduora

Ever® Traduora™ - Open Translation Management Platform - https://traduora.co
https://traduora.co
GNU Affero General Public License v3.0
1.97k stars 197 forks source link

build(deps): bump typeorm from 0.2.37 to 0.3.0 #398

Closed dependabot[bot] closed 3 months ago

dependabot[bot] commented 4 months ago

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps typeorm from 0.2.37 to 0.3.0.

Release notes

Sourced from typeorm's releases.

0.3.0

Changes in the version includes changes from the next branch and typeorm@next version. They were pending their migration from 2018. Finally, they are in the master branch and master version.

Features

  • compilation target now is es2020. This requires Node.JS version 14+

  • TypeORM now properly works when installed within different node_modules contexts (often happen if TypeORM is a dependency of another library or TypeORM is heavily used in monorepo projects)

  • Connection was renamed to DataSource. Old Connection is still there, but now it's deprecated. It will be completely removed in next version. New API:

export const dataSource = new DataSource({
    // ... options ...
})

// load entities, establish db connection, sync schema, etc. await dataSource.connect()

Previously, you could use new Connection(), createConnection(), getConnectionManager().create(), etc. They all deprecated in favour of new syntax you can see above.

New way gives you more flexibility and simplicity in usage.

  • new custom repositories syntax:
export const UserRepository = myDataSource.getRepository(UserEntity).extend({
    findUsersWithPhotos() {
        return this.find({
            relations: {
                photos: true
            }
        })
    }
})

Old ways of custom repository creation were dropped.

  • added new option on relation load strategy called relationLoadStrategy. Relation load strategy is used on entity load and determines how relations must be loaded when you query entities and their relations from the database. Used on find* methods and QueryBuilder. Value can be set to join or query.

    • join - loads relations using SQL JOIN expression

... (truncated)

Changelog

Sourced from typeorm's changelog.

0.3.0 (2022-03-17)

Changes in the version includes changes from the next branch and typeorm@next version. They were pending their migration from 2018. Finally, they are in the master branch and master version.

Features

  • compilation target now is es2020. This requires Node.JS version 14+

  • TypeORM now properly works when installed within different node_modules contexts (often happen if TypeORM is a dependency of another library or TypeORM is heavily used in monorepo projects)

  • Connection was renamed to DataSource. Old Connection is still there, but now it's deprecated. It will be completely removed in next version. New API:

export const dataSource = new DataSource({
    // ... options ...
})

// load entities, establish db connection, sync schema, etc. await dataSource.connect()

Previously, you could use new Connection(), createConnection(), getConnectionManager().create(), etc. They all deprecated in favour of new syntax you can see above.

New way gives you more flexibility and simplicity in usage.

  • new custom repositories syntax:
export const UserRepository = myDataSource.getRepository(UserEntity).extend({
    findUsersWithPhotos() {
        return this.find({
            relations: {
                photos: true,
            },
        })
    },
})

Old ways of custom repository creation were dropped.

  • added new option on relation load strategy called relationLoadStrategy. Relation load strategy is used on entity load and determines how relations must be loaded when you query entities and their relations from the database. Used on find* methods and QueryBuilder. Value can be set to join or query.

... (truncated)

Commits
  • 941b584 version bump
  • 3b8a031 0.3.0 (#8616)
  • 5608956 refactor: remove spaces for consistency (#8751)
  • 486f8c5 version bump
  • 0fc093d fix: discard duplicated columns on update (#8724)
  • f3cfdd2 fix: allow clearing database inside a transaction (#8712)
  • 96ac8f7 feat: add transformer to ViewColumnOptions (#8717)
  • 32549fe refactor: DefaultNamingStrategy#getTableName should be protected, not private...
  • 411fa54 fix: force web bundlers to ignore index.mjs and use the browser ESM version d...
  • 10f46d9 fixing failing test
  • Additional commits viewable in compare view


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/ever-co/ever-traduora/network/alerts).
vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
traduora-docs-co ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 21, 2024 7:31pm
CLAassistant commented 4 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant commented 4 months ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

socket-security[bot] commented 4 months ago

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@babel/runtime@7.15.4 None 0 147 kB nicolo-ribaudo
npm/@commitlint/cli@11.0.0 Transitive: filesystem +13 274 kB escapedcat
npm/@commitlint/config-conventional@11.0.0 None 0 15.1 kB escapedcat
npm/@commitlint/config-lerna-scopes@11.0.0 Transitive: environment, filesystem, network, shell +100 1.82 MB escapedcat
npm/@commitlint/execute-rule@11.0.0 None 0 8.79 kB escapedcat
npm/@commitlint/load@11.0.0 environment 0 39.6 kB escapedcat
npm/@commitlint/resolve-extends@11.0.0 None 0 19 kB escapedcat
npm/@commitlint/travis-cli@11.0.0 Transitive: environment, shell +1 83.8 kB escapedcat
npm/@commitlint/types@11.0.0 None 0 26.1 kB escapedcat
npm/@semantic-release/changelog@5.0.1 filesystem 0 10.5 kB semantic-release-bot
npm/@semantic-release/git@9.0.1 Transitive: environment, shell +1 85.8 kB semantic-release-bot
npm/@semantic-release/github@7.2.3 filesystem, network 0 64.9 kB semantic-release-bot
npm/@semantic-release/npm@7.1.3 filesystem Transitive: environment, shell +1 83.5 kB semantic-release-bot
npm/chalk@4.1.0 None 0 33.6 kB sindresorhus
npm/cloc@2.8.0 None 0 881 kB kentcdodds
npm/columnify@1.5.4 None 0 38.4 kB timoxley
npm/commitizen@4.2.4 eval Transitive: filesystem +1 397 kB commitizen-bot
npm/concurrently@6.1.0 environment 0 98 kB gustavohenke
npm/config-chain@1.1.13 environment, filesystem, network 0 15 kB isaacs
npm/conventional-changelog-angular@5.0.13 filesystem 0 30.4 kB oss-bot
npm/conventional-changelog-cli@2.1.1 None 0 34.3 kB bcoe
npm/conventional-changelog-conventionalcommits@4.6.1 filesystem 0 27.2 kB oss-bot
npm/conventional-changelog@3.1.24 None 0 38.4 kB bcoe
npm/conventional-commits-parser@3.2.2 None 0 57.4 kB oss-bot
npm/core-js@3.18.0 environment, eval, filesystem 0 782 kB zloirock
npm/cross-env@7.0.3 environment 0 29.1 kB kentcdodds
npm/cz-conventional-changelog@3.3.0 environment 0 30.4 kB commitizen-bot
npm/dedent@0.7.0 None 0 4.85 kB dmnd
npm/envinfo@7.11.1 environment, eval, filesystem, shell 0 162 kB tabrindle
npm/fs-extra@9.1.0 filesystem +1 147 kB ryanzim
npm/git-raw-commits@2.0.10 shell 0 14 kB oss-bot
npm/glob@7.2.3 filesystem 0 55.1 kB isaacs
npm/globby@9.2.0 filesystem +1 20.8 kB sindresorhus
npm/husky@6.0.0 filesystem, shell 0 6.1 kB typicode
npm/init-package-json@1.10.3 filesystem 0 15.2 kB zkat
npm/inquirer@6.5.2 None 0 77.9 kB sboudrias
npm/lerna-changelog@1.0.1 environment, network +4 69.9 kB turbo87
npm/lerna@4.0.0 Transitive: environment, filesystem, network, shell +97 1.8 MB evocateur
npm/npm-lifecycle@3.1.5 environment, shell +1 44.5 kB isaacs
npm/npm-package-arg@6.1.1 None 0 15.8 kB isaacs
npm/npm-packlist@1.4.8 None 0 13.1 kB isaacs
npm/p-map@2.1.0 None 0 7.49 kB sindresorhus
npm/p-pipe@1.2.0 None 0 3.63 kB sindresorhus
npm/prettier-tslint@0.4.2 filesystem 0 18.9 kB azz
npm/prettier@2.3.0 environment, eval, filesystem, unsafe 0 19.9 MB thorn0
npm/pretty-quick@3.1.1 filesystem Transitive: environment, shell +5 131 kB azz
npm/read-cmd-shim@1.0.5 None 0 4.47 kB isaacs
npm/read-package-json@2.1.2 filesystem 0 19.3 kB isaacs
npm/read-package-tree@5.3.1 environment, filesystem 0 13.3 kB isaacs
npm/regenerator-runtime@0.13.9 None 0 27.4 kB benjamn
npm/resolve-from@5.0.0 filesystem, unsafe 0 5.82 kB sindresorhus
npm/resolve-global@1.0.0 None 0 4.34 kB sindresorhus
npm/rimraf@3.0.2 filesystem 0 17.3 kB isaacs
npm/semantic-release@19.0.3 environment, network Transitive: shell +1 311 kB semantic-release-bot
npm/semver@7.3.2 None 0 83.8 kB isaacs
npm/set-blocking@2.0.0 None 0 4.22 kB bcoe
npm/signal-exit@3.0.4 None 0 9.21 kB isaacs
npm/snyk@1.1064.0 None 0 40.7 MB snyk-admin
npm/ssri@6.0.2 None +1 60.2 kB nlf
npm/string-width@3.1.0 None +1 8.18 kB sindresorhus
npm/strong-log-transformer@2.1.0 filesystem 0 16.4 kB rmg
npm/tar@4.4.19 environment, filesystem +3 203 kB isaacs
npm/universalify@0.1.2 None 0 4.71 kB ryanzim
npm/upath@1.2.0 None 0 34.3 kB anodynos
npm/validate-npm-package-license@3.0.4 None 0 16.6 kB kemitchell
npm/validate-npm-package-name@3.0.0 None 0 21 kB chrisdickinson
npm/yargs@15.4.1 environment, filesystem +8 355 kB oss-bot

🚮 Removed packages: npm/@angular-devkit/build-angular@12.2.5, npm/@angular/animations@12.2.5, npm/@angular/cli@12.2.5, npm/@angular/common@12.2.5, npm/@angular/compiler-cli@12.2.5, npm/@angular/compiler@12.2.5, npm/@angular/core@12.2.5, npm/@angular/forms@12.2.5, npm/@angular/language-service@12.2.5, npm/@angular/localize@12.2.5, npm/@angular/platform-browser-dynamic@12.2.5, npm/@angular/platform-browser@12.2.5, npm/@angular/router@12.2.5, npm/@babel/code-frame@7.14.5, npm/@babel/compat-data@7.15.0, npm/@babel/core@7.14.8, npm/@babel/generator@7.14.8, npm/@babel/helper-annotate-as-pure@7.14.5, npm/@babel/helper-compilation-targets@7.15.4, npm/@babel/helper-create-class-features-plugin@7.15.4, npm/@babel/helper-function-name@7.15.4, npm/@babel/helper-module-imports@7.15.4, npm/@babel/helper-module-transforms@7.15.4, npm/@babel/helper-plugin-utils@7.14.5, npm/@babel/helper-remap-async-to-generator@7.15.4, npm/@babel/helper-replace-supers@7.15.4, npm/@babel/helper-skip-transparent-expression-wrappers@7.15.4, npm/@babel/helper-validator-identifier@7.14.9, npm/@babel/helpers@7.15.4, npm/@babel/parser@7.15.6, npm/@babel/plugin-proposal-async-generator-functions@7.14.7, npm/@babel/plugin-proposal-unicode-property-regex@7.14.5, npm/@babel/plugin-transform-async-to-generator@7.14.5, npm/@babel/plugin-transform-dotall-regex@7.14.5, npm/@babel/plugin-transform-parameters@7.15.4, npm/@babel/runtime@7.14.8, npm/@babel/template@7.14.5, npm/@babel/types@7.15.6, npm/@gar/promisify@1.1.2, npm/@ng-bootstrap/ng-bootstrap@10.0.0, npm/@ngxs/devtools-plugin@3.7.2, npm/@ngxs/router-plugin@3.7.2, npm/@ngxs/store@3.7.2, npm/@nodelib/fs.stat@2.0.5, npm/@npmcli/fs@1.0.0, npm/@npmcli/promise-spawn@1.3.2, npm/@socket.io/base64-arraybuffer@1.0.2, npm/@types/estree@0.0.50, npm/@types/file-saver@2.0.3, npm/@types/jasmine@3.9.0, npm/@types/jasminewd2@2.0.10, npm/@types/json-schema@7.0.9, npm/@types/jwt-decode@3.1.0, npm/@types/lodash@4.14.172, npm/@types/node@16.9.1, npm/accepts@1.3.8, npm/agent-base@6.0.2, npm/ajv-keywords@3.5.2, npm/ajv@8.6.2, npm/assert-plus@1.0.0, npm/base64-js@1.5.1, npm/base64id@2.0.0, npm/body-parser@1.19.0, npm/bootstrap@4.6.0, npm/braces@3.0.2, npm/browserslist@4.17.0, npm/cacache@15.2.0, npm/call-bind@1.0.2, npm/caniuse-lite@1.0.30001257, npm/chokidar@3.5.2, npm/colord@2.7.0, npm/colorette@1.4.0, npm/combined-stream@1.0.8, npm/commander@2.20.3, npm/component-emitter@1.3.0, npm/console-control-strings@1.1.0, npm/convert-source-map@1.8.0, npm/core-js-compat@3.17.3, npm/core-js@3.17.3, npm/css-tree@1.1.3, npm/debug@4.3.2, npm/depd@1.1.2, npm/engine.io-parser@5.0.4, npm/engine.io@6.1.2, npm/errno@0.1.8, npm/extend@3.0.2, npm/extsprintf@1.3.0, npm/fast-glob@3.2.7, npm/fast-json-stable-stringify@2.1.0, npm/file-saver@2.0.5, npm/finalhandler@1.1.2, npm/find-cache-dir@3.3.1, npm/find-up@4.1.0, npm/flag-icon-css@3.5.0, npm/fs-minipass@2.1.0, npm/gensync@1.0.0-beta.2, npm/get-value@2.0.6, npm/has-symbols@1.0.2, npm/http-errors@1.7.2, npm/http-proxy@1.18.1, npm/https-proxy-agent@5.0.0, npm/iconv-lite@0.4.24, npm/icss-utils@5.1.0, npm/inherits@2.0.4, npm/ip@1.1.5, npm/ipaddr.js@1.9.1, npm/is-descriptor@1.0.2, npm/is-docker@2.2.1, npm/is-extglob@2.1.1, npm/is-glob@4.0.1, npm/isarray@1.0.0, npm/isobject@3.0.1, npm/jasmine-core@3.9.0, npm/jasmine-spec-reporter@7.0.0, npm/jest-worker@27.2.0, npm/json5@2.2.0, npm/jwt-decode@3.1.2, npm/karma-chrome-launcher@3.1.0, npm/karma-coverage-istanbul-reporter@3.0.3, npm/karma-jasmine-html-reporter@1.7.0, npm/karma@6.3.16, npm/loader-utils@2.0.0, npm/magic-string@0.25.7, npm/make-dir@3.1.0, npm/mime-db@1.49.0, npm/mime-types@2.1.32, npm/mime@2.5.2, npm/minimist@1.2.7, npm/minipass-fetch@1.4.1, npm/minipass-pipeline@1.2.4, npm/minipass@3.1.3, npm/minizlib@2.1.2, npm/mkdirp@1.0.4, npm/ms@2.1.2, npm/negotiator@0.6.2, npm/normalize-path@3.0.0, npm/normalize.css@8.0.1, npm/normalizecss@3.0.0, npm/npm-package-arg@8.1.5, npm/npm-pick-manifest@6.1.1, npm/object-assign@4.1.1, npm/object-keys@1.1.1, npm/obuf@1.1.2, npm/once@1.4.0, npm/ora@5.4.1, npm/os-tmpdir@1.0.2, npm/p-limit@3.1.0, npm/pako@1.0.11, npm/parseurl@1.3.3, npm/path-is-inside@1.0.2, npm/picomatch@2.3.0, npm/postcss@8.3.6

View full report↗︎