Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mikro-orm/mikro-orm
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.4.1
Choose a base ref
...
head repository: mikro-orm/mikro-orm
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.4.2
Choose a head ref
  • 10 commits
  • 57 files changed
  • 3 contributors

Commits on Feb 1, 2021

  1. chore(deps): update docusaurus monorepo to v2.0.0-alpha.fd17476c3 (#1376

    )
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 1, 2021
    Configuration menu
    Copy the full SHA
    4b83052 View commit details
    Browse the repository at this point in the history
  2. chore(deps): update dependency @docusaurus/preset-classic to v2.0.0-a…

    …lpha.fd17476c3 (#1377)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 1, 2021
    Configuration menu
    Copy the full SHA
    28db27a View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2021

  1. chore(deps): update mstruebing/editorconfig-checker docker tag to v2.…

    …3.3 (#1378)
    
    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    7b8e37b View commit details
    Browse the repository at this point in the history
  2. feat(core): allow querying by JSON properties (#1384)

    We can query by JSON object properties easily:
    
    ```ts
    const b = await em.findOne(Book, {
      meta: {
        valid: true,
        nested: {
          foo: '123',
          bar: 321,
          deep: {
            baz: 59,
            qux: false,
          },
        },
      },
    });
    ```
    
    Will produce following query (in postgres):
    
    ```sql
    select "e0".*
    from "book" as "e0"
    where ("meta"->>'valid')::bool = true
      and "meta"->'nested'->>'foo' = '123'
      and ("meta"->'nested'->>'bar')::float8 = 321
      and ("meta"->'nested'->'deep'->>'baz')::float8 = 59
      and ("meta"->'nested'->'deep'->>'qux')::bool = false
    limit 1
    ```
    
    > All drivers are currently supported (including sqlite and mongo). In postgres we
    > also try to cast the value if we detect number or boolean on the right-hand side.
    
    Closes #1359
    Related: #1261
    B4nan authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    69c2493 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ab79972 View commit details
    Browse the repository at this point in the history
  4. chore(deps): update dependency mongodb to v3.6.4 (#1387)

    Co-authored-by: Renovate Bot <bot@renovateapp.com>
    renovate[bot] and renovate-bot authored Feb 2, 2021
    Configuration menu
    Copy the full SHA
    cdb7e2b View commit details
    Browse the repository at this point in the history

Commits on Feb 3, 2021

  1. feat(core): allow using SQL expressions with custom types (#1389)

    Adds two methods to the custom type interface that allows to adjust the SQL fragment
    used to select or update the value.
    
    Example usage:
    
    ```ts
    export class PointType extends Type<Point, string> {
    
      convertToDatabaseValue(value: Point): string {
        return `point(${value.latitude} ${value.longitude})`;
      }
    
      convertToJSValue(value: string): Point {
        const m = value.match(/point\((\d+(\.\d+)?) (\d+(\.\d+)?)\)/i);
        return new Point(+m[1], +m[3]);
      }
    
      convertToJSValueSQL(key: string) {
        return `ST_AsText(${key})`;
      }
    
      convertToDatabaseValueSQL(key: string) {
        return `ST_PointFromText(${key})`;
      }
    
      getColumnType(): string {
        return 'point';
      }
    
    }
    ```
    
    Closes #735
    B4nan authored Feb 3, 2021
    Configuration menu
    Copy the full SHA
    83fe6ea View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2021

  1. Configuration menu
    Copy the full SHA
    5b2d4e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f55c731 View commit details
    Browse the repository at this point in the history
  3. chore(release): v4.4.2

    B4nan committed Feb 4, 2021
    Configuration menu
    Copy the full SHA
    6d4c82f View commit details
    Browse the repository at this point in the history
Loading