Commit Graph

53 Commits

Author SHA1 Message Date
7c1573fb07 Use standard and prettier (#10)
* switch from custom eslint config to standard + prettier

* fix new standard eslint violations

* add editorconfig file

* auto-fix all other violations

* update lint yarn script

* remove jshint comment
2019-07-09 13:24:13 -07:00
027956bac1 Make legacy docs asciidoctor compatible (#793)
* Make legacy docs asciidoctor compatible

This modifies the legacy client documentation so that it is is
compatible with Asciidoctor. With these changes asciidoctor renders the
same way as asciidoc, module spacing and a couple of auto-generated ids.
I'm willing to ignore the auto-generated anchors because these are
legacy docs.

* Updated configuration template

(cherry picked from commit d699045504)
2019-05-02 11:09:51 -07:00
f1de944809 Upgrade to lodash v4 (#660)
* npm install lodash-2

Someone handily published a lodash-2 v4.17.4 - it is exactly the same as lodash v4.17.4, so it is safe to use during the migration.

* use lodash-2 in tests

* update tests to split utils vs lodash

* remove Utils.nextTick usage

Utils.nextTick with a single argument is the same as process.nextTick

* lowercase utils

Because it seems that this is the coding style in this repo

* upgrade lodash in grunt/*

* keep lodash-2 as a dev dep for now

* use lodash-2 in scripts

* use snakeCase from utils

It was a mistake in my previous commit to not update this usage

* fix naming gruntUtils vs utils

As all three - gruntUtils, utils and lodash (_) are getting passed into templates, it makes sense to keep the naming consistent

* fix naming gruntUtils vs utils

As all three - gruntUtils, utils and lodash (_) are getting passed into templates, it makes sense to keep the naming consistent

* split utils vs lodash in scripts/generate

Also use lodash-2 where it is easy to do so

* use utils.get until lodash upgrade

* remove lodash.isempty; lodash-2 now used in prod (in src/lib/apis/ code)

* unbundle lodash from utils

* upgrade to lodash 4

* remove lodash.get and lodash.trimEnd

* clean out unused code

* clean out unused code

* fix a breaking change listed under "notable changes" rather than under "breaking changes"...
2018-05-14 11:37:23 -07:00
080e4a0641 [generate] handle methods with more than one namespace 2017-06-14 15:53:38 -07:00
94ec6e6139 define description overrides by version, like examples 2017-05-01 16:33:26 -07:00
c728579d86 [http] accept and document rest of params for agentkeepalive 2017-04-03 18:34:59 -07:00
347549c04a sting => String 2017-04-03 17:59:10 -07:00
adb3de5b3b clean up lodash 4 upgrade crumbs 2017-02-13 15:28:08 -07:00
fa4c08748b use getters for api versions in node 2017-02-09 01:25:28 -07:00
14a32e320f [docs/config] mention httpAuth 2016-11-16 18:36:51 -07:00
9fee381c8e [docs] add more detailed type information for parameters 2016-11-16 18:24:50 -07:00
2452d68e0a [docs] focus on the API Conventions a bit 2016-11-16 13:08:50 -07:00
849c28a8d0 [docs] add body parameter to all methods that accept it 2016-11-16 13:01:05 -07:00
dd8fab9bdc [docs] use print() so control flow is clearer 2016-11-16 12:31:42 -07:00
29eb81a52c [docs] label timestamp/duration types differently 2016-11-16 12:29:56 -07:00
651cc00b92 add changelog to doc site 2016-10-31 16:22:26 -07:00
8ad271d81c and finally, return to standard mo 2016-05-19 14:33:04 -07:00
ec06c51c5d final sweep, moved everything to _v4 2016-05-19 14:23:33 -07:00
4a77556866 tracked down more necessary updated, lots of _.bind() 2016-05-19 12:47:33 -07:00
c7f6c09d8c get the unit tests to pass 2016-05-19 09:09:31 -07:00
b2929de9d5 _.contains -> _.includes 2016-05-19 08:43:19 -07:00
68a8f712c8 fix eslint errors 2016-05-19 07:52:01 -07:00
d1e5940f73 force lodash v4 on some iterators so they do not run multiple times 2016-05-19 07:30:26 -07:00
05263b487c [generate/docs/examples] allow overriding individual example files based on version 2016-01-26 09:12:07 -07:00
d0d55f8f3e switch from jshint to eslint 2016-01-08 14:21:26 -07:00
809f545dee [config/docs] move createNodeAgent section up 2016-01-05 10:18:21 -07:00
8bed4a85ec [config][connection] allow overwriting connections agents 2016-01-05 10:04:24 -07:00
ddd9aaa6f8 mention using bluebird in the docs and changelog 2015-11-24 15:32:39 -06:00
2af2e8cb39 add the new extensions page to the docs index 2015-10-19 12:17:20 -07:00
fc66381aee added generation steps for all file which list api versions 2015-09-17 10:10:27 -07:00
68bbc16464 Fix spelling mistake: Upcomming -> upcoming 2015-08-05 14:39:25 -05:00
5e1da82688 added filterPath support to master api and enhanced yaml testing 2015-06-02 11:23:04 -07:00
7d14e7d24e remove api method index 2015-05-26 08:41:24 -07:00
91f7b91d7e remove params heading, use bold type instead 2015-05-26 07:16:12 -07:00
88bae9e055 added plugin support 2015-05-13 00:10:01 -05:00
ec6b0fcefc auditted lodash usage to ensure that it is compatible with lodash 3.0 2015-03-17 13:52:10 -07:00
1b0d8cac0a [scripts/generate] clear out files from previous runs before generating 2014-12-02 17:52:21 -07:00
5e804b8ba1 fixed a spelling error in the docs 2014-02-05 17:04:35 -07:00
6c5838fbfa Added API generation and Yaml testing for 1.x and 1.0 branches of elasticsearch. 2014-02-05 08:18:19 -07:00
d30cea1db0 Updated the api to include the latest changes, fixed the id of the api-method-index, moved the index out of the
existing menu as to prevent the other options in the menu from being hidden. Added the options of an enum param
to the docs.
2014-01-20 09:25:29 -07:00
149b099fb5 updated the API, fixed the config docs, added a method list to the API pages 2014-01-19 15:44:22 -07:00
90aa185711 added notes to the API docs regarding the two API versions, and a warning to the config docs. Also updated the client tests to work with the new default 2014-01-17 15:50:06 -07:00
e4c6aab4ef updated the API 2014-01-17 09:02:00 -07:00
55df195eaa updated docs to include 0.90 API 2014-01-15 17:02:30 -07:00
3d2b395c6f updated docs to include 0.90 API 2014-01-15 16:55:37 -07:00
6c2330fd8a Added a few examples and a link to the readme, set an ID for the api reference page. 2013-12-28 08:49:50 -07:00
65f9cc7e99 added docs to the repo 2013-12-27 16:41:38 -07:00
f5c8d39876 hotfix for recursive failures in the jQuery build. v1.0.2 2013-12-19 20:55:34 -07:00
37cd2f4f6c Summary of changes:
- updated copyright
 - several tempalate changes for the docs
 - added a config for grunt-contrib-watch
 - updated nock commit number
 - fixed the coverage script
 - removed the export_docs script
 - added error message for legacy "es" users who don't have a version locked and have not upgraded
 - host will now add auth to urls created with `#makeUrl()`
 - Log class no longer looks for `config.loggers`
 - The log class now properly escapes single quotes in trace logs
 - Removed compiled yaml_tests.js from the repo
 - Yaml suite will only log error and warning messages unless the VERBOSE env var is set
 - createDefer is now a global setting, changed by modifying Transport.createDefer fubction
 - wrote tests for Content-Type checking
 - callbacks will now return the body and status of the request (if the request has completed) when an error occurs
 - Stdio logger now adds "Elasticsearch " to the front of log messages to distinguish it from other output to stdout.
2013-12-15 14:12:39 -07:00
22c675e250 improved the format of the docs a bit and fixed the generator 2013-12-12 21:43:47 -07:00