Skip to content

Commit 1b2b075

Browse files
authored
Merge pull request #506 from kuzzleio/7.1.4-proposal
# [7.1.4](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.1.4) (2020-04-15) #### Enhancements - [ [#502](#502) ] Remove pagination from collection list ([Aschen](https://github.com/Aschen)) - [ [#505](#505) ] Lighter production dependencies ([scottinet](https://github.com/scottinet)) ---
2 parents de07e2d + 0ca14a9 commit 1b2b075

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1736
-2667
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
# Node
55
*.log
66
node_modules/
7-
examples/node_modules/
87
.nyc_output
98

109
# Other

.npmignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.travis.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ jobs:
6262

6363
install:
6464
- npm install
65+
- npm run build
6566

6667
script:
67-
- npm run build
6868
- npm run functional-testing
6969

7070
- stage: Tests
@@ -75,6 +75,8 @@ jobs:
7575

7676
before_script:
7777
- sudo apt-get install libgconf-2-4
78+
- npm install
79+
- npm run build
7880
script:
7981
- npm run doc-testing
8082

@@ -114,7 +116,7 @@ jobs:
114116

115117
install:
116118
- pip install awscli --upgrade --user
117-
- npm ci
119+
- npm install --production=false
118120

119121
script:
120122
- npm run doc-prepare
@@ -151,7 +153,7 @@ jobs:
151153

152154
install:
153155
- pip install awscli --upgrade --user
154-
- npm ci
156+
- npm install --production=false
155157

156158
script:
157159
- npm run doc-prepare

CHANGELOG.md

Lines changed: 0 additions & 223 deletions
This file was deleted.

build.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1-
const
2-
ora = require('ora'),
3-
webpack = require('webpack'),
4-
webpackConfig = require('./webpack.config.js'),
5-
spinner = ora('Building SDK...');
1+
const webpack = require('webpack');
2+
const webpackConfig = require('./webpack.config.js');
63

7-
process.env.NODE_ENV = 'production';
4+
/* eslint-disable no-console */
5+
6+
console.log('Building SDK...');
87

9-
spinner.start();
8+
process.env.NODE_ENV = 'production';
109

1110
webpack(webpackConfig, function (err, stats) {
12-
spinner.stop();
1311
if (err) {
1412
throw err;
1513
}
14+
15+
console.log('Build complete.');
16+
1617
process.stdout.write(stats.toString({
1718
colors: true,
1819
modules: false,

doc/7/controllers/collection/list/index.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ list(index, [options]);
1919
<br/>
2020

2121
| Arguments | Type | Description |
22-
| --------- | ----------------- | ------------- |
22+
|-----------|-------------------|---------------|
2323
| `index` | <pre>string</pre> | Index name |
2424
| `options` | <pre>object</pre> | Query options |
2525

@@ -28,26 +28,26 @@ list(index, [options]);
2828
Additional query options
2929

3030
| Property | Type<br/>(default) | Description |
31-
| ---------- | ------------------------------- | ---------------------------------------------------------------------------- |
31+
|------------|---------------------------------|------------------------------------------------------------------------------|
3232
| `queuable` | <pre>boolean</pre><br/>(`true`) | If true, queues the request during downtime, until connected to Kuzzle again |
33-
| `from` | <pre>number</pre> <br/>(`0`) | Offset of the first result |
34-
| `size` | <pre>number</pre> <br/>(`10`) | Maximum number of returned results |
33+
| `from` | <pre>number</pre> <br/>(`0`) | Offset of the first result <DeprecatedBadge since="7.1.4"/> |
34+
| `size` | <pre>number</pre> <br/>(`10`) | Maximum number of returned results <DeprecatedBadge since="7.1.4"/> |
3535

3636
## Resolves
3737

3838
Resolves to an object containing the following properties:
3939

4040
| Property | Type | Description |
41-
| ------------- | ------------------- | ------------------------------------------------------------------ |
41+
|---------------|---------------------|--------------------------------------------------------------------|
4242
| `type` | <pre>string</pre> | Types of returned collections <br/>(`all`, `realtime` or `stored`) |
4343
| `collections` | <pre>object[]</pre> | List of collections |
44-
| `from` | <pre>number</pre> | Offset of the first result |
45-
| `size` | <pre>number</pre> | Maximum number of returned results |
44+
| `from` | <pre>number</pre> | Offset of the first result <DeprecatedBadge since="7.1.4"/> |
45+
| `size` | <pre>number</pre> | Maximum number of returned results <DeprecatedBadge since="7.1.4"/> |
4646

4747
Each object in the `collections` array contains the following properties:
4848

4949
| Property | Type | Description |
50-
| -------- | ----------------- | ---------------------------------------- |
50+
|----------|-------------------|------------------------------------------|
5151
| `name` | <pre>string</pre> | Collection name |
5252
| `type` | <pre>string</pre> | Collection type (`realtime` or `stored`) |
5353

index.js

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
const Kuzzle = require('./src/Kuzzle');
22
const { Http, WebSocket } = require('./src/protocols');
3-
const BaseController = require('./src/controllers/base');
4-
const KuzzleAbstractProtocol = require('./src/protocols/abstract/common');
5-
const KuzzleEventEmitter = require('./src/eventEmitter');
6-
const {
7-
SearchResultBase,
8-
DocumentSearchResult,
9-
ProfileSearchResult,
10-
RoleSearchResult,
11-
SpecificationSearchResult,
12-
UserSearchResult
13-
} = require('./src/controllers/searchResult');
3+
const BaseController = require('./src/controllers/Base');
4+
const KuzzleAbstractProtocol = require('./src/protocols/abstract/Base');
5+
const KuzzleEventEmitter = require('./src/core/KuzzleEventEmitter');
6+
7+
const SearchResultBase = require('./src/core/searchResult/SearchResultBase');
8+
const DocumentSearchResult = require('./src/core/searchResult/Document');
9+
const ProfileSearchResult = require('./src/core/searchResult/Profile');
10+
const RoleSearchResult = require('./src/core/searchResult/Role');
11+
const SpecificationSearchResult = require('./src/core/searchResult/Specifications');
12+
const UserSearchResult = require('./src/core/searchResult/User');
1413

1514
if (typeof window !== 'undefined' && typeof BUILT === 'undefined') {
1615
throw new Error('It looks like you are using the Nodejs version of Kuzzle SDK ' +

0 commit comments

Comments
 (0)