Skip to content
Commits on Source (4)
......@@ -3,7 +3,7 @@ stages:
- test
build:
image: node:latest
image: node:lts
stage: build
tags:
- indocker
......
......@@ -2,6 +2,15 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
### [3.2.1](https://dev.solidev.net/solidev/ngdataservice/compare/v3.2.0...v3.2.1) (2022-10-12)
### Bug Fixes
* **build:** use node:lts for build ([f33e633](https://dev.solidev.net/solidev/ngdataservice/commit/f33e63314070dcacc558a1b73e6522fbca046b4e))
* **deps:** upgrade all deps to latest ([f19401c](https://dev.solidev.net/solidev/ngdataservice/commit/f19401c15ca46645383b0291fc12f3efd3a141a7))
* **sorter:** remove + for asc sort ([7451f64](https://dev.solidev.net/solidev/ngdataservice/commit/7451f644882a3616fb52dc584346d380bbce0a40))
## [3.2.0](https://dev.solidev.net/solidev/ngdataservice/compare/v3.1.1...v3.2.0) (2022-06-05)
......
{
"name": "@solidev/ngdataservice",
"version": "3.2.0",
"version": "3.2.1",
"license": "MIT",
"scripts": {
"ng": "ng",
......@@ -16,58 +16,58 @@
"dependencies": {},
"peerDependencies": {},
"devDependencies": {
"@angular-devkit/build-angular": "^14.0.0",
"@angular-eslint/builder": "14.0.0-alpha.0",
"@angular-eslint/eslint-plugin": "14.0.0-alpha.0",
"@angular-eslint/eslint-plugin-template": "14.0.0-alpha.0",
"@angular-eslint/schematics": "14.0.0-alpha.0",
"@angular-eslint/template-parser": "14.0.0-alpha.0",
"@angular/animations": "^14.0.0",
"@angular/cli": "^14.0.0",
"@angular/common": "^14.0.0",
"@angular/compiler": "^14.0.0",
"@angular/compiler-cli": "^14.0.0",
"@angular/core": "^14.0.0",
"@angular/forms": "^14.0.0",
"@angular/language-service": "^14.0.0",
"@angular/platform-browser": "^14.0.0",
"@angular/platform-browser-dynamic": "^14.0.0",
"@angular/router": "^14.0.0",
"@types/chai": "^4.3.1",
"@types/jasmine": "~4.0.3",
"@angular-devkit/build-angular": "^14.2.5",
"@angular-eslint/builder": "14.1.2",
"@angular-eslint/eslint-plugin": "14.1.2",
"@angular-eslint/eslint-plugin-template": "14.1.2",
"@angular-eslint/schematics": "14.1.2",
"@angular-eslint/template-parser": "14.1.2",
"@angular/animations": "^14.2.5",
"@angular/cli": "^14.2.5",
"@angular/common": "^14.2.5",
"@angular/compiler": "^14.2.5",
"@angular/compiler-cli": "^14.2.5",
"@angular/core": "^14.2.5",
"@angular/forms": "^14.2.5",
"@angular/language-service": "^14.2.5",
"@angular/platform-browser": "^14.2.5",
"@angular/platform-browser-dynamic": "^14.2.5",
"@angular/router": "^14.2.5",
"@types/chai": "^4.3.3",
"@types/jasmine": "~4.3.0",
"@types/jasminewd2": "~2.0.10",
"@types/lodash-es": "^4.17.6",
"@types/node": "~17.0.40",
"@types/node": "~18.8.4",
"@types/sinon": "^10.0",
"@typescript-eslint/eslint-plugin": "5.27.0",
"@typescript-eslint/parser": "5.27.0",
"@typescript-eslint/eslint-plugin": "5.40.0",
"@typescript-eslint/parser": "5.40.0",
"chai": "^4.3.6",
"codelyzer": "^6.0.2",
"core-js": "^3.22.8",
"eslint": "^8.17.0",
"core-js": "^3.25.5",
"eslint": "^8.25.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jsdoc": "39.3.2",
"eslint-plugin-jsdoc": "39.3.6",
"eslint-plugin-prefer-arrow": "1.2.3",
"jasmine-core": "~4.1.1",
"jasmine-core": "~4.4.0",
"jasmine-spec-reporter": "~7.0.0",
"js-yaml": "^4.1.0",
"json-server": "^0.17.0",
"karma": "~6.3.20",
"karma": "~6.4.1",
"karma-chrome-launcher": "~3.1.1",
"karma-cli": "~2.0.0",
"karma-coverage-istanbul-reporter": "~3.0.3",
"karma-jasmine": "~5.0.1",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "^2.0.0",
"lodash-es": "^4.17.21",
"ng-packagr": "^14.0.0",
"nodemon": "^2.0.16",
"ng-packagr": "^14.2.1",
"nodemon": "^2.0.20",
"protractor": "~7.0.0",
"puppeteer": "^14.2.1",
"rxjs": "~7.5.5",
"ts-node": "~10.8.1",
"tsickle": "0.46.0",
"puppeteer": "^18.2.1",
"rxjs": "~7.5.7",
"ts-node": "~10.9.1",
"tsickle": "0.46.3",
"tslib": "^2.4.0",
"typescript": "~4.7.3",
"zone.js": "~0.11.5"
"typescript": "~4.8.4",
"zone.js": "~0.11.8"
}
}
{
"name": "@solidev/ngdataservice",
"version": "3.2.0",
"version": "3.2.1",
"license": "MIT",
"dependencies": {
"tslib": "^2"
......
......@@ -50,7 +50,7 @@ describe("QuerySorterService operations", () => {
qs.update([{field: "name", direction: "asc", emptyfirst: true}, {field: "age", direction: "desc"}]);
expect(qs.fields.length).toEqual(2);
const qp = qs.backendSorter();
expect(qp.query["ord"]).toEqual("+name,-age");
expect(qp.query["ord"]).toEqual("name,-age");
});
it("should allow local sort with localSorter", () => {
......
......@@ -82,7 +82,7 @@ export class DSQuerySorterService implements IDSSorter {
const out: string[] = [];
for (const f of this.fields) {
if (f.direction === "asc") {
out.push("+" + f.field);
out.push(f.field);
} else {
out.push("-" + f.field);
}
......
This diff is collapsed.