Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@balena/abstract-sql-to-typescript

Package Overview
Dependencies
Maintainers
3
Versions
240
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@balena/abstract-sql-to-typescript - npm Package Compare versions

Comparing version 2.0.0-build-2-x-f67a989344e085e96da7de49ff324e05b8ee628c-1 to 2.0.0-build-renovate-balena-odata-to-abstract-sql-6-x-89251691dc7e5f88a24ff3620318dd67d821fb07-1

44

CHANGELOG.md

@@ -7,8 +7,44 @@ # Change Log

## 2.0.0 - 2023-04-27
## 2.0.0 - 2023-05-01
* Update @balena/abstract-sql-compiler to 9.x [Pagan Gazzard]
* Set minimum supported nodejs version to 16.13.0 and tsconfig to es2021 [Pagan Gazzard]
* Treat ConceptType like foreign keys, in line with pinejs 15 [Pagan Gazzard]
<details>
<summary> Update dependency @balena/odata-to-abstract-sql to v6 [Renovate Bot] </summary>
> ### odata-to-abstract-sql-6.0.1 - 2023-04-27
>
>
> <details>
> <summary> Update dependencies [Pagan Gazzard] </summary>
>
>> #### odata-parser-3.0.0 - 2023-04-26
>>
>> * Use optional chaining operator [Pagan Gazzard]
>> * Set minimum supported nodejs version to 16.13.0 [Pagan Gazzard]
>>
>> #### odata-parser-2.5.0 - 2023-04-26
>>
>> * Update to peggy 3 and make us of the repetition operator [Pagan Gazzard]
>>
>> #### sbvr-types-4.0.0 - 2023-04-26
>>
>> * Add test cases for Objects in JSON validate [fisehara]
>> * Drop `require-npm4-to-publish` devDependency [fisehara]
>> * Set minimum supported nodejs version to 16.13.0 and tsconfig to es2021 [Pagan Gazzard]
>> * Switch `JSON` to use `JSON` db type instead of `TEXT` [Pagan Gazzard]
>> * Switch `Boolean` to use `BOOLEAN` db type instead of `INTEGER` [Pagan Gazzard]
>> * Assert that JSON input typeof is object [Josh Bowling]
>>
>
> </details>
>
>
> ### odata-to-abstract-sql-6.0.0 - 2023-04-26
>
> * Set minimum supported nodejs version to 16.13.0 and tsconfig to es2021 [Pagan Gazzard]
> * Switch `AggregateJSON` to use the newer `ReferencedField` format [Pagan Gazzard]
>
</details>
## 1.5.1 - 2023-04-27

@@ -15,0 +51,0 @@

4

out/index.js

@@ -60,2 +60,3 @@ "use strict";

case 'ConceptType':
return getReferencedDataType(m, f, opts);
case 'ForeignKey':

@@ -125,3 +126,4 @@ const referencedDataType = getReferencedDataType(m, f, opts);

const abstractSqlToTypescriptTypes = (m, opts = {}) => {
const mode = opts.mode ?? 'read';
var _a;
const mode = (_a = opts.mode) !== null && _a !== void 0 ? _a : 'read';
const requiredOptions = {

@@ -128,0 +130,0 @@ ...opts,

{
"name": "@balena/abstract-sql-to-typescript",
"version": "2.0.0-build-2-x-f67a989344e085e96da7de49ff324e05b8ee628c-1",
"version": "2.0.0-build-renovate-balena-odata-to-abstract-sql-6-x-89251691dc7e5f88a24ff3620318dd67d821fb07-1",
"description": "A translator for abstract sql into typescript types.",

@@ -16,5 +16,5 @@ "main": "out/index.js",

"dependencies": {
"@balena/abstract-sql-compiler": "9.0.0-build-8-x-86e7db1f10d87661af5de8184f6ca8c621d9dfcc-1",
"@balena/odata-to-abstract-sql": "^5.9.6",
"@types/node": "^16.18.25",
"@balena/abstract-sql-compiler": "^8.4.1",
"@balena/odata-to-abstract-sql": "^6.0.0",
"@types/node": "^12.20.55",
"common-tags": "^1.8.2"

@@ -34,6 +34,2 @@ },

},
"engines": {
"node": ">=16.13.0",
"npm": ">=8.1.0"
},
"lint-staged": {

@@ -49,4 +45,4 @@ "*.ts": [

"versionist": {
"publishedAt": "2023-04-27T08:57:34.186Z"
"publishedAt": "2023-05-01T17:52:20.841Z"
}
}

@@ -95,2 +95,4 @@ import type {

case 'ConceptType':
// ConceptType should really act the same as a foreign key but as of pinejs 14 it is mistakenly treated as a local field
return getReferencedDataType(m, f, opts);
case 'ForeignKey':

@@ -97,0 +99,0 @@ const referencedDataType = getReferencedDataType(m, f, opts);

@@ -310,3 +310,3 @@ import type { AbstractSqlModel } from '@balena/abstract-sql-compiler';

a_date: DateString;
parent: { __id: number } | [Parent];
parent: number;
references__other: { __id: number } | [Other];

@@ -313,0 +313,0 @@ test__has__tag_key?: TestTag[];

@@ -13,3 +13,3 @@ {

"skipLibCheck": true,
"target": "es2021",
"target": "es2019",
"outDir": "out",

@@ -16,0 +16,0 @@ "resolveJsonModule": true

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc