Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release-soql-builder-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
release-soql-builder-ui:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-soql-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
release-soql-common:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-soql-data-view.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
release-soql-data-view:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-soql-model.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
release-soql-model:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
- uses: GoogleCloudPlatform/release-please-action@v4
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion packages/soql-builder-ui/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"@lwc/lwc/no-async-operation": "off",
"@lwc/lwc/no-inner-html": "warn",
"@lwc/lwc/no-document-query": "warn",
"no-underscore-dangle": "off"
"no-underscore-dangle": "off",
"@typescript-eslint/no-unused-vars": "warn"
}
}
2 changes: 1 addition & 1 deletion packages/soql-builder-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"license": "BSD-3-Clause",
"main": "dist/",
"scripts": {
"build": "lwc-services build -w webpack.config.js -m production",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && lwc-services build -w webpack.config.js -m production",
"clean": "shx rm -rf package-lock.json && shx rm -rf dist && shx rm -rf node_modules",
"publish:lwc": "npm publish .",
"lint": "eslint ./src",
Expand Down
1 change: 1 addition & 0 deletions packages/soql-builder-ui/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
21 changes: 21 additions & 0 deletions packages/soql-model/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Changelog

## 1.0.0 (2024-06-12)


### Features

* better support for LIKE with CONTAINS, STARTS/ENDS WITH ([#199](https://github.com/forcedotcom/soql-tooling/issues/199)) ([4052791](https://github.com/forcedotcom/soql-tooling/commit/4052791dc46ca3d0888c15a312d34559f13221a8))
* first release of soql-common library ([f48887a](https://github.com/forcedotcom/soql-tooling/commit/f48887ac6045e2fcf56886e3b37448a7d54a1fc5))
* query analysis for SELECT clause ([#188](https://github.com/forcedotcom/soql-tooling/issues/188)) ([b7b002c](https://github.com/forcedotcom/soql-tooling/commit/b7b002c4f206f9704e9f8a56a1eb34787e1ad874))
* update soql-model. Flatten query data for display ([1b4d655](https://github.com/forcedotcom/soql-tooling/commit/1b4d65542a6c2337ccf36efae2224bf25f9f5f62))


### Bug Fixes

* 'undefined' in SOQL string ([#162](https://github.com/forcedotcom/soql-tooling/issues/162)) ([c31be3b](https://github.com/forcedotcom/soql-tooling/commit/c31be3bfca4d16ba4e6295236b5add1b1efdd9e6))
* allow "null" on nillable picklist field ([#247](https://github.com/forcedotcom/soql-tooling/issues/247)) ([7a38048](https://github.com/forcedotcom/soql-tooling/commit/7a38048ed7c6d52f5eb663cf4b1cb5b6dc4bf12c))
* do not publish unnecessary files ([#214](https://github.com/forcedotcom/soql-tooling/issues/214)) ([cdcb905](https://github.com/forcedotcom/soql-tooling/commit/cdcb905c2a90773c2f9e26e2f51acfcc098c0ffc))
* rename pre-compiled soql-parser dir and adjust imports ([#209](https://github.com/forcedotcom/soql-tooling/issues/209)) ([857019a](https://github.com/forcedotcom/soql-tooling/commit/857019afa1347e743f7fd8cc9f6e0573ee9e85ea))
* soql-model fake commit to trigger release ([808adc5](https://github.com/forcedotcom/soql-tooling/commit/808adc54d55080f1cd4d8e9d58e8da4c99b319b7))
* Support Build/Run in Windows Environment ([#231](https://github.com/forcedotcom/soql-tooling/issues/231)) ([ecb5c7b](https://github.com/forcedotcom/soql-tooling/commit/ecb5c7ba2f48b2b010ba8f3ace08c218b0fc06fe))
* update imports from soql-common ([#205](https://github.com/forcedotcom/soql-tooling/issues/205)) ([042cd61](https://github.com/forcedotcom/soql-tooling/commit/042cd61cf28c8207bc44c839238ba1991eb2e579))

### [0.2.3](https://www.github.com/forcedotcom/soql-tooling/compare/soql-model-v0.2.2...soql-model-v0.2.3) (2021-05-11)


Expand Down
2 changes: 1 addition & 1 deletion packages/soql-model/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@salesforce/soql-model",
"version": "0.2.3",
"version": "1.0.0",
"description": "SOQL Model",
"engines": {
"node": "*"
Expand Down
7 changes: 7 additions & 0 deletions packages/soql-model/src/validators/stringValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ describe('StringValidator should', () => {
it('return valid result for string in single quotes', () => {
expect(validator.validate("'foo'")).toEqual(validResult);
});

it('return valid result when user input is NULL or null', () => {
expect(validator.validate("'null'")).toEqual(validResult);
expect(validator.validate("'NULL'")).toEqual(validResult);
});

it('return not valid result for non-string value', () => {
expect(validator.validate('foo')).toEqual(notValidResult);
});

it('return not valid result for string ending in escaped quote', () => {
expect(validator.validate("'foo\\'")).toEqual(notValidResult);
});
Expand Down
9 changes: 5 additions & 4 deletions packages/soql-model/src/validators/stringValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ import { ValidateResult, Validator } from './validator';
export class StringValidator extends Validator {
public validate(input: string): ValidateResult {
const isValid =
input.length >= 2 &&
input.startsWith("'") &&
input.endsWith("'") &&
!this.isEscaped(input.substring(1, input.length - 1));
(input.length >= 2 &&
input.startsWith("'") &&
input.endsWith("'") &&
!this.isEscaped(input.substring(1, input.length - 1))) ||
input.toLowerCase() === 'null';
const message = isValid ? undefined : Messages.error_fieldInput_string;
return { isValid, message };
}
Expand Down