infinispan 0.9.0 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/.eslintrc +25 -0
  2. package/Jenkinsfile-release +5 -3
  3. package/documentation/asciidoc/stories/assembly_client_usage_examples.adoc +2 -8
  4. package/documentation/asciidoc/stories/{assembly_configuration.adoc → assembly_installation_configuration.adoc} +6 -4
  5. package/documentation/asciidoc/titles/js_client.asciidoc +1 -0
  6. package/documentation/asciidoc/titles/stories.adoc +1 -2
  7. package/documentation/asciidoc/topics/attributes/community-attributes.adoc +2 -1
  8. package/documentation/asciidoc/topics/attributes/downstream-attributes.adoc +0 -2
  9. package/documentation/asciidoc/topics/code_examples/authentication-digest.js +3 -2
  10. package/documentation/asciidoc/topics/code_examples/authentication-external.js +3 -2
  11. package/documentation/asciidoc/topics/code_examples/authentication-oauthbearer.js +3 -2
  12. package/documentation/asciidoc/topics/code_examples/authentication-plain.js +3 -2
  13. package/documentation/asciidoc/topics/code_examples/authentication-scram.js +3 -2
  14. package/documentation/asciidoc/topics/code_examples/await-single-entries.js +1 -1
  15. package/documentation/asciidoc/topics/code_examples/conditional-operations.js +7 -1
  16. package/documentation/asciidoc/topics/code_examples/connection-multiple-servers.js +5 -1
  17. package/documentation/asciidoc/topics/code_examples/data-types.js +2 -2
  18. package/documentation/asciidoc/topics/code_examples/ephemeral-data.js +11 -6
  19. package/documentation/asciidoc/topics/code_examples/hello-world.js +13 -1
  20. package/documentation/asciidoc/topics/code_examples/key-value-converter.js +3 -4
  21. package/documentation/asciidoc/topics/code_examples/multiple-entries.js +13 -2
  22. package/documentation/asciidoc/topics/code_examples/queries.js +92 -0
  23. package/documentation/asciidoc/topics/code_examples/register-event-listener.js +8 -4
  24. package/documentation/asciidoc/topics/code_examples/sample-script-execute.js +6 -1
  25. package/documentation/asciidoc/topics/code_examples/single-entries.js +13 -2
  26. package/documentation/asciidoc/topics/proc_configuring_connections.adoc +8 -9
  27. package/documentation/asciidoc/topics/proc_installing_clients.adoc +23 -5
  28. package/documentation/asciidoc/topics/ref_client_usage.adoc +128 -0
  29. package/lib/codec.js +153 -2
  30. package/lib/infinispan.js +87 -57
  31. package/lib/io.js +14 -8
  32. package/lib/protocols.js +129 -4
  33. package/lib/protostream/message-wrapping.proto +134 -0
  34. package/lib/protostream/query.proto +122 -0
  35. package/lib/sasl/bitops.js +5 -7
  36. package/lib/sasl/factory.js +71 -0
  37. package/lib/utils.js +1 -1
  38. package/memory-profiling/helper.js +9 -0
  39. package/memory-profiling/infinispan_memory_many_get.js +1 -3
  40. package/memory-profiling/infinispan_memory_one_get.js +6 -4
  41. package/package.json +10 -12
  42. package/run-servers.sh +1 -1
  43. package/smoke-tests.sh +1 -0
  44. package/spec/codec_spec.js +7 -7
  45. package/spec/configs/infinispan-clustered.xml +17 -14
  46. package/spec/configs/infinispan-ssl.xml +25 -22
  47. package/spec/configs/infinispan-xsite-EARTH.xml +17 -14
  48. package/spec/configs/infinispan-xsite-MOON.xml +14 -11
  49. package/spec/configs/infinispan.xml +22 -13
  50. package/spec/protostream_spec.js +237 -0
  51. package/spec/utils/testing.js +1 -3
  52. package/types/README.md +91 -0
  53. package/types/index.d.ts +868 -0
  54. package/.jshintrc +0 -14
  55. package/documentation/asciidoc/stories/assembly_getting_started.adoc +0 -11
  56. package/documentation/asciidoc/topics/community-attributes.adoc +0 -10
  57. package/documentation/asciidoc/topics/downstream-attributes.adoc +0 -10
  58. package/documentation/asciidoc/topics/proc_executing_scripts.adoc +0 -16
  59. package/documentation/asciidoc/topics/proc_registering_event_listeners.adoc +0 -31
  60. package/documentation/asciidoc/topics/proc_using_async_await.adoc +0 -23
  61. package/documentation/asciidoc/topics/proc_using_conditional_operations.adoc +0 -7
  62. package/documentation/asciidoc/topics/proc_working_ephemeral_data.adoc +0 -7
  63. package/documentation/asciidoc/topics/proc_working_multiple_entries.adoc +0 -7
  64. package/documentation/asciidoc/topics/proc_working_single_entries_statistics.adoc +0 -7
  65. package/documentation/asciidoc/topics/ref_basic_usage.adoc +0 -8
package/.jshintrc DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "globalstrict" : false,
3
- "devel" : true,
4
- "node" : true,
5
- "eqeqeq" : false,
6
- "laxcomma" : true,
7
- "laxbreak" : true,
8
- "-W014" : true,
9
- "-W117" : true,
10
- "-W033" : true,
11
- "-W040" : true,
12
- "-W069" : true,
13
- "-W018" : true
14
- }
@@ -1,11 +0,0 @@
1
- [id='getting-started']
2
- :context: getting-started
3
- = Getting started with {hr_js} clients
4
- Ensure your system meets requirements before installing the {hr_js} client.
5
-
6
- include::{topics}/proc_installing_clients.adoc[leveloffset=+1]
7
- include::{topics}/ref_basic_usage.adoc[leveloffset=+1]
8
-
9
- // Restore the parent context.
10
- ifdef::parent-context[:context: {parent-context}]
11
- ifndef::parent-context[:!context:]
@@ -1,10 +0,0 @@
1
- :brandname: Infinispan
2
- :hr_js: Hot Rod JS
3
- :rhel_long: Red Hat Enterprise Linux (RHEL)
4
- :rhel_short: RHEL
5
- :win_long: Microsoft Windows
6
- :win_short: Windows
7
-
8
- :doc_home: https://infinispan.org/documentation/
9
- :download_url: https://infinispan.org/hotrod-clients
10
- :js_api_docs: https://docs.jboss.org/infinispan/hotrod-clients/javascript/1.0/apidocs/
@@ -1,10 +0,0 @@
1
- :brandname: Data Grid
2
- :hr_js: Hot Rod JS
3
- :rhel_long: Red Hat Enterprise Linux (RHEL)
4
- :rhel_short: RHEL
5
- :win_long: Microsoft Windows
6
- :win_short: Windows
7
-
8
- :doc_home: https://access.redhat.com/documentation/en-us/red_hat_data_grid/
9
- :download_url: https://access.redhat.com/jbossnetwork/restricted/listSoftware.html?product=data.grid&downloadType=distributions
10
- :js_api_docs: https://access.redhat.com/webassets/avalon/d/red-hat-data-grid/8.2/node/
@@ -1,16 +0,0 @@
1
- [id='executing-scripts_{context}']
2
- = Executing scripts on {brandname} Server
3
-
4
- You can add custom scripts, such as the following to {brandname} Server:
5
-
6
- [source,javascript,options="nowrap",subs=attributes+]
7
- ----
8
- include::code_examples/sample-script.js[]
9
- ----
10
-
11
- The {hr_js} client can load and execute the sample script as follows:
12
-
13
- [source,javascript,options="nowrap",subs=attributes+]
14
- ----
15
- include::code_examples/sample-script-execute.js[]
16
- ----
@@ -1,31 +0,0 @@
1
- [id='registering-event-listeners_{context}']
2
- = Registering event listeners
3
-
4
- Clients can register event listeners that get invoked when data changes happen.
5
- Create, modified, remove and expired events are supported.
6
- Create and modified events emit key and version of value after event.
7
- Remove and expired events only emit key information.
8
-
9
- [source,javascript,options="nowrap",subs=attributes+]
10
- ----
11
- include::code_examples/register-event-listener.js[]
12
- ----
13
-
14
- Starting with client version `0.7` and Infinispan `9.4.x` server,
15
- it's possible to tailor events to add or remove information from each event.
16
-
17
- For example, a user might want to find out the value associated with the key after an event.
18
- If the value was sent back along with the key within the event, unnecessary round trips to fetch the value would be avoided.
19
- This can be achieved configuring the listener with a remote event converter.
20
-
21
- Infinispan servers come with a converter called `key-value-with-previous-converter-factory` which can be used for this purpose:
22
-
23
- [source,javascript,options="nowrap",subs=attributes+]
24
- ----
25
- include::code_examples/key-value-converter.js[]
26
- ----
27
-
28
- You can also create and deploy your own converters into Infinispan server instances.
29
- See the
30
- [event filter and conversion](https://infinispan.org/docs/stable/titles/developing/developing.html#event_filtering_and_conversion)
31
- section in the Developers Guide for more information.
@@ -1,23 +0,0 @@
1
- [id='using-async-await_{context}']
2
- = Using Async and Await constructs
3
-
4
- Examples above can be greatly simplified taking advantage of `async` / `await` constructs,
5
- which are available in Node.js since version `7.10.0`.
6
-
7
- This section shows how some of the examples above can be written using `async` / `await`:
8
-
9
- [discrete]
10
- == Working with single entries and statistics
11
-
12
- [source,javascript,options="nowrap",subs=attributes+]
13
- ----
14
- include::code_examples/await-single-entries.js[]
15
- ----
16
-
17
- [discrete]
18
- == Working with multiple entries
19
-
20
- [source,javascript,options="nowrap",subs=attributes+]
21
- ----
22
- include::code_examples/await-multiple-entries.js[]
23
- ----
@@ -1,7 +0,0 @@
1
- [id='using-conditional-operations_{context}']
2
- = Using conditional operations
3
-
4
- [source,javascript,options="nowrap",subs=attributes+]
5
- ----
6
- include::code_examples/conditional-operations.js[]
7
- ----
@@ -1,7 +0,0 @@
1
- [id='working-ephemeral-data_{context}']
2
- = Working with ephemeral data
3
-
4
- [source,javascript,options="nowrap",subs=attributes+]
5
- ----
6
- include::code_examples/ephemeral-data.js[]
7
- ----
@@ -1,7 +0,0 @@
1
- [id='working-multiple-entries_{context}']
2
- = Working with multiple entries
3
-
4
- [source,javascript,options="nowrap",subs=attributes+]
5
- ----
6
- include::code_examples/multiple-entries.js[]
7
- ----
@@ -1,7 +0,0 @@
1
- [id='working-single-entries-statistics_{context}']
2
- = Working with single entries and statistics
3
-
4
- [source,javascript,options="nowrap",subs=attributes+]
5
- ----
6
- include::code_examples/single-entries.js[]
7
- ----
@@ -1,8 +0,0 @@
1
- [id='basic-usage_{context}']
2
- = Basic {hr_js} client usage
3
- Review a basic example for using the {hr_js} client with {brandname} Server.
4
-
5
- [source,javascript,options="nowrap",subs=attributes+]
6
- ----
7
- include::code_examples/hello-world.js[]
8
- ----