guacamole-common-js 1.5.0 → 1.6.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.
package/README.md CHANGED
@@ -1,68 +1,61 @@
1
1
  [![npm version](https://img.shields.io/npm/v/guacamole-common-js.svg)](https://www.npmjs.com/package/guacamole-common-js) [![downloads](https://img.shields.io/npm/dt/guacamole-common-js.svg)](https://www.npmjs.com/package/guacamole-common-js)
2
2
 
3
- # What is guacamole-common-js?
3
+ # guacamole-common-js
4
4
 
5
- guacamole-common-js is the core JavaScript library used by the Guacamole web
6
- application.
5
+ guacamole-common-js is the core JavaScript library of the
6
+ [Apache Guacamole](https://guacamole.apache.org/) web application. It provides
7
+ an HTTP and WebSocket tunnel for Guacamole protocol data, a protocol client,
8
+ and synchronized drawing layers.
7
9
 
8
- guacamole-common-js provides an efficient HTTP tunnel for transporting
9
- protocol data between JavaScript and the web application, as well as an
10
- implementation of a Guacamole protocol client and abstract synchronized
11
- drawing layers.
12
-
13
- ## What is this fork for?
14
-
15
- This is a fork of [glyptodon/guacamole-client](https://github.com/glyptodon/guacamole-client)
16
- meant for distribution via npm. Prior to a version being submitted to npm a gulp buildscript
17
- combines all `guacamole-common-js` files and minifies them.
18
-
19
- None of the guacamole project files besides the combined javascript sources are included in
20
- the npm release, so you won't have to download any files you don't need. You can read which
21
- files/folders are omitted in the `.npmignore` file.
22
-
23
- You can install this library via npm:
10
+ Apache Guacamole does not publish this library to npm. This repository builds
11
+ it from the upstream release tags of
12
+ [apache/guacamole-client](https://github.com/apache/guacamole-client) and
13
+ publishes it as an npm package with CommonJS and ES module entry points.
24
14
 
25
15
  ```
26
- npm install --save guacamole-common-js
16
+ npm install guacamole-common-js
27
17
  ```
28
18
 
29
19
  ```js
30
- const Guacamole = require('guacamole-common-js');
31
-
32
- // ... or ES6
33
20
  import Guacamole from 'guacamole-common-js';
34
- ```
35
-
36
- > Previously this fork was available as `padarom-guacamole-common-js`, which has been deprecated
37
- in favor of the new version of the fork which is much easier to maintain thanks to the gulp buildscript.
38
21
 
39
- #### Version numbers
40
- I intend to keep the npm version numbers identical to the guacamole version that I publish. This doesn't always work 100% in case something is missing or at fault, so I will need to release a patch. These patch versions still keep the same version number, but add a letter designating the patch (e.g. `1.0.0-b`). In case the guacamole upstream ever releases any patches with a similar version number, I can't guarantee that the patch letter of the original Guacamole sources and the release of this fork match up for that specific version.
41
-
42
- #### Fork origin
43
- Apparently the original repository `[glyptodon/guacamole-client](https://github.com/glyptodon/guacamole-client)` is no longer maintained and the actual guacamole client is now maintained at `[apache/guacamole-client](https://github.com/apache/guacamole-client)`. Unfortunately there is no way to rewrite the fork origin on GitHub, so this repository will show the wrong origin. In order to update from upstream, you may do the following:
44
-
45
- ```
46
- $ git remote add upstream git@github.com:apache/guacamole-client.git
47
- $ git pull upstream master --rebase
22
+ // or CommonJS
23
+ const Guacamole = require('guacamole-common-js');
48
24
  ```
49
25
 
50
- ## Documentation
51
- Distribution-specific packages are available from the files section of the main
52
- project page:
26
+ Each bundle also exists minified as `dist/{esm,cjs}/guacamole-common.min.js`.
53
27
 
54
- http://sourceforge.net/projects/guacamole/files/
28
+ ## Version numbers
55
29
 
56
- Distribution-specific documentation is provided on the Guacamole wiki:
30
+ The npm version equals the Apache Guacamole release the package is built from.
31
+ Versions up to 1.5.0 came from an earlier build of this repository and
32
+ sometimes carry a letter suffix (`1.4.0-b`) for repackaging fixes. That build
33
+ took 1.5.0 from the upstream development branch, so it already contains APIs
34
+ that Apache released in 1.6.0, such as `Guacamole.Client.State` and
35
+ `Guacamole.Display.Statistics`. The releases 1.5.1 to 1.5.5 lack those APIs and
36
+ are not published here; upgrade from 1.5.0 to 1.6.0.
57
37
 
58
- http://guac-dev.org/
38
+ ## How the package is built
59
39
 
60
- # Reporting problems
40
+ `package.nix` fetches the release tag, concatenates the license header and all
41
+ modules in file name order (the same order upstream uses for its own bundle),
42
+ adds one export line per module format, and minifies with esbuild. A smoke test
43
+ loads all four bundles in Node.js and checks the `Guacamole` namespace.
44
+
45
+ ```
46
+ nix build # build the package and run the smoke test
47
+ nix run .#update # bump to the newest Guacamole release
48
+ nix run .#update -- --version=1.6.0 # bump to a given release
49
+ ```
61
50
 
62
- _I am not a maintainer or contributor to the original guacamole repository. I only created this fork and published it to npm._
51
+ A GitHub Actions job looks for a new upstream release every Monday and opens a
52
+ pull request that bumps `package.nix`. Merging it publishes the new version to
53
+ npm.
63
54
 
64
- Please report any bugs encountered by opening a new ticket at the Trac system hosted at:
55
+ ## Reporting problems
65
56
 
66
- http://guac-dev.org/trac/
57
+ Bugs in the library itself belong to the Apache Guacamole project:
58
+ https://issues.apache.org/jira/browse/GUACAMOLE/
67
59
 
68
- Any bugs or questions to this fork specifically can be asked via issues on GitHub.
60
+ Problems with the npm package, such as a missing file or a broken export,
61
+ belong in this repository's issues.