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 +40 -47
- package/dist/cjs/guacamole-common.js +1043 -398
- package/dist/cjs/guacamole-common.min.js +3 -1
- package/dist/cjs/package.json +1 -3
- package/dist/esm/guacamole-common.js +1043 -398
- package/dist/esm/guacamole-common.min.js +3 -1
- package/package.json +4 -19
- package/dist/cjs/.gitkeep +0 -0
- package/dist/esm/.gitkeep +0 -0
package/README.md
CHANGED
|
@@ -1,68 +1,61 @@
|
|
|
1
1
|
[](https://www.npmjs.com/package/guacamole-common-js) [](https://www.npmjs.com/package/guacamole-common-js)
|
|
2
2
|
|
|
3
|
-
#
|
|
3
|
+
# guacamole-common-js
|
|
4
4
|
|
|
5
|
-
guacamole-common-js is the core JavaScript library
|
|
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
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
|
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
|
-
|
|
40
|
-
|
|
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
|
-
|
|
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
|
-
|
|
28
|
+
## Version numbers
|
|
55
29
|
|
|
56
|
-
|
|
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
|
-
|
|
38
|
+
## How the package is built
|
|
59
39
|
|
|
60
|
-
|
|
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
|
-
|
|
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
|
-
|
|
55
|
+
## Reporting problems
|
|
65
56
|
|
|
66
|
-
|
|
57
|
+
Bugs in the library itself belong to the Apache Guacamole project:
|
|
58
|
+
https://issues.apache.org/jira/browse/GUACAMOLE/
|
|
67
59
|
|
|
68
|
-
|
|
60
|
+
Problems with the npm package, such as a missing file or a broken export,
|
|
61
|
+
belong in this repository's issues.
|