@balena/odata-to-abstract-sql 6.2.4 → 6.2.5

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.
@@ -1,3 +1,16 @@
1
+ - commits:
2
+ - subject: Update dependency @balena/lint to v8
3
+ hash: 7b0e4b7272b0cda5690b925b7de259612085940e
4
+ body: |
5
+ Update @balena/lint from 7.3.0 to 8.0.0
6
+ footer:
7
+ Change-type: patch
8
+ change-type: patch
9
+ author: Self-hosted Renovate Bot
10
+ nested: []
11
+ version: 6.2.5
12
+ title: ""
13
+ date: 2024-03-16T16:47:36.725Z
1
14
  - commits:
2
15
  - subject: Update `@balena/sbvr-types` devDependencies
3
16
  hash: 93ba82f914f8e036e79fa174a58881db294b84c6
@@ -24,7 +37,7 @@
24
37
  nested: []
25
38
  version: 6.2.4
26
39
  title: ""
27
- date: 2024-03-05T15:57:04.095Z
40
+ date: 2024-03-05T18:23:43.575Z
28
41
  - commits:
29
42
  - subject: Require at least one field to be updated for PATCH requests
30
43
  hash: ad819432657598898a4811d9628c9ca0a0e428c6
@@ -94,7 +107,8 @@
94
107
  body: >
95
108
  - Update @balena/lint from 6.2.2 to 7.2.4
96
109
 
97
- - Delete `require-npm4-to-publish` as handled by `engines` parameter in `package.json`
110
+ - Delete `require-npm4-to-publish` as handled by `engines`
111
+ parameter in `package.json`
98
112
  footer:
99
113
  Change-type: patch
100
114
  change-type: patch
@@ -403,9 +417,11 @@
403
417
  Ensure that the input passed in for JSON types
404
418
  is either an object or
405
419
 
406
- an array (typeof returns 'object' for arrays as well). This change is
420
+ an array (typeof returns 'object' for arrays as
421
+ well). This change is
407
422
 
408
- mainly to prevent primitives from being stored as JSON.
423
+ mainly to prevent primitives from being stored
424
+ as JSON.
409
425
  footer:
410
426
  Change-type: major
411
427
  change-type: major
@@ -949,7 +965,8 @@
949
965
  Ensure that the input passed in for JSON types is either
950
966
  an object or
951
967
 
952
- an array (typeof returns 'object' for arrays as well). This change is
968
+ an array (typeof returns 'object' for arrays as well).
969
+ This change is
953
970
 
954
971
  mainly to prevent primitives from being stored as JSON.
955
972
  footer:
@@ -1079,7 +1096,8 @@
1079
1096
  Ensure that the input passed in for JSON types is either
1080
1097
  an object or
1081
1098
 
1082
- an array (typeof returns 'object' for arrays as well). This change is
1099
+ an array (typeof returns 'object' for arrays as well).
1100
+ This change is
1083
1101
 
1084
1102
  mainly to prevent primitives from being stored as JSON.
1085
1103
  footer:
@@ -1316,7 +1334,8 @@
1316
1334
  Ensure that the input passed in for JSON types is either an
1317
1335
  object or
1318
1336
 
1319
- an array (typeof returns 'object' for arrays as well). This change is
1337
+ an array (typeof returns 'object' for arrays as well). This
1338
+ change is
1320
1339
 
1321
1340
  mainly to prevent primitives from being stored as JSON.
1322
1341
  footer:
@@ -1812,46 +1831,59 @@
1812
1831
  After every write, pine has to rerun all rules from the model to
1813
1832
  ensure
1814
1833
 
1815
- consistency. These rules run over the entire database, sometimes causing
1834
+ consistency. These rules run over the entire database, sometimes
1835
+ causing
1816
1836
 
1817
- some queries to run for too long against what should be a simple write.
1837
+ some queries to run for too long against what should be a simple
1838
+ write.
1818
1839
 
1819
1840
 
1820
- This commit adds a mechanism to help with this issue by narrowing the
1841
+ This commit adds a mechanism to help with this issue by
1842
+ narrowing the
1821
1843
 
1822
- set of rows that each rule should touch to those rows that were actually
1844
+ set of rows that each rule should touch to those rows that were
1845
+ actually
1823
1846
 
1824
1847
  changed.
1825
1848
 
1826
1849
 
1827
- Implementing this mechanism safely is doable and not necessarily complex
1850
+ Implementing this mechanism safely is doable and not necessarily
1851
+ complex
1828
1852
 
1829
1853
  code-wise, but requires a deep modifications from the current
1830
1854
 
1831
- architecture. This commit adds a restricted form instead where we only
1855
+ architecture. This commit adds a restricted form instead where
1856
+ we only
1832
1857
 
1833
- narrow the rows of the root table that were changed. If any other table
1858
+ narrow the rows of the root table that were changed. If any
1859
+ other table
1834
1860
 
1835
1861
  was changed then narrowing is a no op.
1836
1862
 
1837
1863
 
1838
- It can be proved that this is always safe as long as the root table is
1864
+ It can be proved that this is always safe as long as the root
1865
+ table is
1839
1866
 
1840
- selected from only once and the rule is positive ("It is necessary that
1867
+ selected from only once and the rule is positive ("It is
1868
+ necessary that
1841
1869
 
1842
1870
  each ...").
1843
1871
 
1844
1872
 
1845
- The implementation here adds a single binding into the rule's SQL query
1873
+ The implementation here adds a single binding into the rule's
1874
+ SQL query
1846
1875
 
1847
- which can be bound by pine for each rule where an opportunity to use
1876
+ which can be bound by pine for each rule where an opportunity to
1877
+ use
1848
1878
 
1849
1879
  this optimization arises.
1850
1880
 
1851
1881
 
1852
- The implementation itself is simple: count how many times the root table
1882
+ The implementation itself is simple: count how many times the
1883
+ root table
1853
1884
 
1854
- is selected from and if it is selected from exactly one, then add a
1885
+ is selected from and if it is selected from exactly one, then
1886
+ add a
1855
1887
 
1856
1888
  narrowing constraint in the form of:
1857
1889
 
@@ -1861,7 +1893,8 @@
1861
1893
  <root table>.id = ANY(CAST($1 AS INTEGER[]))
1862
1894
 
1863
1895
 
1864
- Where $1 will be bound to either '{}', which disables narrowing, or to a
1896
+ Where $1 will be bound to either '{}', which disables narrowing,
1897
+ or to a
1865
1898
 
1866
1899
  list of IDs that were affected by the write.
1867
1900
 
@@ -1916,7 +1949,8 @@
1916
1949
  This is intended to be used to target tables differently for
1917
1950
  reads vs
1918
1951
 
1919
- writes, eg where you might read from a view/definition but want to
1952
+ writes, eg where you might read from a view/definition but want
1953
+ to
1920
1954
 
1921
1955
  write to a physical table instead
1922
1956
  footer:
@@ -2149,7 +2183,8 @@
2149
2183
  if operands in expression can be used as numericValues.
2150
2184
 
2151
2185
 
2152
- In SQL statements arithmetic expressions like add/sub are supported for date values.
2186
+ In SQL statements arithmetic expressions like add/sub are
2187
+ supported for date values.
2153
2188
 
2154
2189
  DateArithmetic nodes need input dependent typing.
2155
2190
  footer:
@@ -2457,12 +2492,14 @@
2457
2492
  'informative'.
2458
2493
 
2459
2494
 
2460
- Behaviour change only if type is informative otherwise default 'strict'.
2495
+ Behaviour change only if type is informative otherwise default
2496
+ 'strict'.
2461
2497
 
2462
2498
 
2463
2499
  An informative reference is just an int field that points
2464
2500
 
2465
- to another tables id field - like foreign key without constraints
2501
+ to another tables id field - like foreign key without
2502
+ constraints
2466
2503
 
2467
2504
  or foregein key cascades.
2468
2505
  footer:
@@ -2482,7 +2519,8 @@
2482
2519
  Since it's possible for them to behave in a way that violates
2483
2520
  the
2484
2521
 
2485
- safety checks we'll disable them until we can add specific checks
2522
+ safety checks we'll disable them until we can add specific
2523
+ checks
2486
2524
 
2487
2525
  for the HAVING clause
2488
2526
  footer:
@@ -2889,7 +2927,8 @@
2889
2927
  This works on the assumption that it is a rule query that should
2890
2928
  always
2891
2929
 
2892
- return true and allows ignoring more modification cases where they
2930
+ return true and allows ignoring more modification cases where
2931
+ they
2893
2932
 
2894
2933
  cannot change the result from true to false
2895
2934
  footer:
@@ -3186,7 +3225,8 @@
3186
3225
  This allows specifying the correct type to cast to when
3187
3226
  necessary
3188
3227
 
3189
- rather than relying on the fact the currently all type functions happen
3228
+ rather than relying on the fact the currently all type
3229
+ functions happen
3190
3230
 
3191
3231
  to be integers
3192
3232
  footer:
@@ -4177,7 +4217,8 @@
4177
4217
  We do this by using basic scope info to prune
4178
4218
  aliased table references
4179
4219
 
4180
- which also allows us to handle aliased select queries in the from
4220
+ which also allows us to handle aliased select
4221
+ queries in the from
4181
4222
  footer:
4182
4223
  Change-type: minor
4183
4224
  change-type: minor
@@ -5846,7 +5887,8 @@
5846
5887
  We do this by using basic scope info to prune aliased table
5847
5888
  references
5848
5889
 
5849
- which also allows us to handle aliased select queries in the from
5890
+ which also allows us to handle aliased select queries in the
5891
+ from
5850
5892
  footer:
5851
5893
  Change-type: minor
5852
5894
  change-type: minor
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
4
4
  automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5
5
  This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ ## 6.2.5 - 2024-03-16
8
+
9
+ * Update dependency @balena/lint to v8 [Self-hosted Renovate Bot]
10
+
7
11
  ## 6.2.4 - 2024-03-05
8
12
 
9
13
  * Update `@balena/sbvr-types` devDependencies [fisehara]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@balena/odata-to-abstract-sql",
3
- "version": "6.2.4",
3
+ "version": "6.2.5",
4
4
  "description": "A consumer of the OData parser, written in OMeta",
5
5
  "main": "out/odata-to-abstract-sql.js",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "devDependencies": {
28
28
  "@balena/lf-to-abstract-sql": "^5.0.1",
29
- "@balena/lint": "^7.2.4",
29
+ "@balena/lint": "^8.0.0",
30
30
  "@balena/sbvr-parser": "^1.4.3",
31
31
  "@balena/sbvr-types": "^7.0.1",
32
32
  "@types/chai": "^4.3.11",
@@ -53,6 +53,6 @@
53
53
  "npm": ">=8.1.0"
54
54
  },
55
55
  "versionist": {
56
- "publishedAt": "2024-03-05T15:57:04.413Z"
56
+ "publishedAt": "2024-03-16T16:47:37.023Z"
57
57
  }
58
58
  }