@contember/binding 1.1.0-rc.2 → 1.1.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contember/binding",
3
3
  "license": "Apache-2.0",
4
- "version": "1.1.0-rc.2",
4
+ "version": "1.1.0-rc.4",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "main": "./dist/production/index.js",
@@ -9,7 +9,8 @@
9
9
  ".": {
10
10
  "import": {
11
11
  "development": "./dist/development/index.js",
12
- "production": "./dist/production/index.js"
12
+ "production": "./dist/production/index.js",
13
+ "default": "./dist/production/index.js"
13
14
  }
14
15
  }
15
16
  },
@@ -19,10 +20,10 @@
19
20
  ],
20
21
  "typings": "./dist/types/index.d.ts",
21
22
  "dependencies": {
22
- "@contember/client": "1.1.0-rc.2",
23
- "@contember/react-client": "1.1.0-rc.2",
24
- "@contember/react-multipass-rendering": "1.1.0-rc.2",
25
- "@contember/react-utils": "1.1.0-rc.2",
23
+ "@contember/client": "1.1.0-rc.4",
24
+ "@contember/react-client": "1.1.0-rc.4",
25
+ "@contember/react-multipass-rendering": "1.1.0-rc.4",
26
+ "@contember/react-utils": "1.1.0-rc.4",
26
27
  "chevrotain": "6.5.0",
27
28
  "fast-deep-equal": "^3.1.3",
28
29
  "js-levenshtein": "1.1.6",
@@ -1,4 +1,4 @@
1
- import { GraphQlBuilder } from '@contember/client'
1
+ import { GraphQlBuilder, Writable } from '@contember/client'
2
2
  import { BindingError } from '../BindingError'
3
3
  import type {
4
4
  Alias,
@@ -186,7 +186,7 @@ export class TreeParameterMerger {
186
186
  if (fresh === undefined) {
187
187
  return original
188
188
  }
189
- const originalCopy: UniqueWhere = { ...original }
189
+ const originalCopy: Writable<UniqueWhere> = { ...original }
190
190
 
191
191
  for (const field in fresh) {
192
192
  if (field in originalCopy) {
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react'
2
2
  import { BindingError } from '../BindingError'
3
3
  import type { Filter } from '../treeParameters'
4
- import equal from 'fast-deep-equal/es6'
4
+ import equal from 'fast-deep-equal/es6/index.js'
5
5
  import { Schema, SchemaColumn, SchemaEntity, SchemaRelation } from '../core/schema'
6
6
  import { GraphQlLiteral } from '@contember/client'
7
7
 
@@ -1,4 +1,4 @@
1
- import { CrudQueryBuilder, GraphQlBuilder, GraphQlLiteral, Input } from '@contember/client'
1
+ import { CrudQueryBuilder, GraphQlBuilder, Input, Writable } from '@contember/client'
2
2
  import { EmbeddedActionsParser, Lexer } from 'chevrotain'
3
3
  import { Environment } from '../dao'
4
4
  import type { EntityName, FieldName, Filter, OrderBy, UniqueWhere } from '../treeParameters'
@@ -345,7 +345,7 @@ class Parser extends EmbeddedActionsParser {
345
345
  private condition: () => Parser.AST.Condition = this.RULE('condition', () => {
346
346
  const operator = this.SUBRULE(this.conditionOperator)
347
347
  const columnValue = this.SUBRULE(this.columnValue)
348
- const condition: Parser.AST.Condition = {}
348
+ const condition: Writable<Parser.AST.Condition> = {}
349
349
 
350
350
  return this.ACTION(() => {
351
351
  if (columnValue === null) {
@@ -435,7 +435,7 @@ class Parser extends EmbeddedActionsParser {
435
435
  })
436
436
 
437
437
  private uniqueWhere = this.RULE('uniqueWhere', () => {
438
- const where: UniqueWhere = {}
438
+ const where: Writable<UniqueWhere> = {}
439
439
 
440
440
  this.CONSUME(tokens.LeftParenthesis)
441
441
  this.AT_LEAST_ONE_SEP({