Skip to content
GitLab
Explore
Sign in
Commits on Source (4)
fix(build): use node:lts for build
· f33e6331
BARBIER Jean-Matthieu
authored
Oct 12, 2022
f33e6331
fix(deps): upgrade all deps to latest
· f19401c1
BARBIER Jean-Matthieu
authored
Oct 12, 2022
f19401c1
fix(sorter): remove + for asc sort
· 7451f644
BARBIER Jean-Matthieu
authored
Oct 12, 2022
7451f644
chore(release): 3.2.1
· 725f18d2
BARBIER Jean-Matthieu
authored
Oct 12, 2022
725f18d2
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
725f18d2
...
...
@@ -3,7 +3,7 @@ stages:
-
test
build
:
image
:
node:l
ates
t
image
:
node:lt
s
stage
:
build
tags
:
-
indocker
...
...
CHANGELOG.md
View file @
725f18d2
...
...
@@ -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)
...
...
package.json
View file @
725f18d2
{
"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
"
:
"
~1
7.0
.4
0
"
,
"
@types/node
"
:
"
~1
8.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.2
2.8
"
,
"
eslint
"
:
"
^8.
17
.0
"
,
"
core-js
"
:
"
^3.2
5.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
"
:
"
^1
4
.2.1
"
,
"
rxjs
"
:
"
~7.5.
5
"
,
"
ts-node
"
:
"
~10.
8
.1
"
,
"
tsickle
"
:
"
0.46.
0
"
,
"
puppeteer
"
:
"
^1
8
.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
"
}
}
projects/ngdataservice/package.json
View file @
725f18d2
{
"name"
:
"@solidev/ngdataservice"
,
"version"
:
"3.2.
0
"
,
"version"
:
"3.2.
1
"
,
"license"
:
"MIT"
,
"dependencies"
:
{
"tslib"
:
"^2"
...
...
projects/ngdataservice/src/lib/sorters/querysorter/query-sorter.service.spec.ts
View file @
725f18d2
...
...
@@ -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
"
,
()
=>
{
...
...
projects/ngdataservice/src/lib/sorters/querysorter/query-sorter.service.ts
View file @
725f18d2
...
...
@@ -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
);
}
...
...
yarn.lock
View file @
725f18d2
This diff is collapsed.
Click to expand it.