You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by wo...@apache.org on 2021/03/29 21:19:58 UTC

[couchdb-documentation] branch js-dev-tips created (now 009a9b3)

This is an automated email from the ASF dual-hosted git repository.

wohali pushed a change to branch js-dev-tips
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git.


      at 009a9b3  Update advice re: old JS version, closes #624

This branch includes the following new commits:

     new 009a9b3  Update advice re: old JS version, closes #624

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[couchdb-documentation] 01/01: Update advice re: old JS version, closes #624

Posted by wo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

wohali pushed a commit to branch js-dev-tips
in repository https://gitbox.apache.org/repos/asf/couchdb-documentation.git

commit 009a9b3073de8c2124f7be01f447fce977b5e7a1
Author: Joan Touzet <jo...@atypical.net>
AuthorDate: Mon Mar 29 17:19:48 2021 -0400

    Update advice re: old JS version, closes #624
---
 src/best-practices/jsdevel.rst | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

diff --git a/src/best-practices/jsdevel.rst b/src/best-practices/jsdevel.rst
index a19563f..ccf963b 100644
--- a/src/best-practices/jsdevel.rst
+++ b/src/best-practices/jsdevel.rst
@@ -22,16 +22,22 @@ tips and tricks that will ease the difficulty.
 
 .. rst-class:: open
 
-- Remember that CouchDB's JavaScript engine is old, only supporting the
-  ECMA-262 5th edition ("ES5") of the language. ES6/2015 and newer constructs
-  cannot be used.
+- Check the JavaScript version being used by your CouchDB. As of version 3.2.0,
+  this is reported in the output of ``GET /``. Prior to version 3.2.0, you will
+  need to see which JavaScript library is installed by your CouchDB binary
+  distribution, provided by your operating system, or linked by your compilation
+  process.
+
+  If the version is 1.8.5, this is an **old** version of JavaScript, only
+  supporting the ECMA-262 5th edition ("ES5") of the language. ES6/2015 and
+  newer constructs **cannot** be used.
 
   Fortunately, there are many tools available for transpiling modern JavaScript
   into code compatible with older JS engines. The `Babel Project website
   <http://babeljs.io/repl>`_, for example, offers an in-browser text editor
   which transpiles JavaScript in real-time. Configuring CouchDB-compatibility
   is as easy as enabling the ``ENV PRESET`` option, and typing "firefox 4.0"
-  into the *Browsers* field.
+  into the *TARGETS* field.
 
 - The ``log()`` function will log output to the CouchDB log file or stream.
   You can log strings, objects, and arrays directly, without first converting