@iebh/tera-fy 1.7.4 → 1.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # Changelog
2
2
 
3
+ # [1.9.0](https://github.com/IEBH/TERA-fy/compare/v1.8.0...v1.9.0) (2024-06-06)
4
+
5
+
6
+ ### Features
7
+
8
+ * **proxy:** Better in-use port detection + custom logging handler ([8bfa2d3](https://github.com/IEBH/TERA-fy/commit/8bfa2d3923ef8a71dff04983113eca0b8cff606f))
9
+
10
+ # [1.8.0](https://github.com/IEBH/TERA-fy/compare/v1.7.4...v1.8.0) (2024-06-04)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * Remove secondary /project path segment when computing ProjectFile.teraUrl ([18ad085](https://github.com/IEBH/TERA-fy/commit/18ad085e77df9e9c1e5deb4a84f5d888df6255c3))
16
+ * Updated default port to match TERA proxy deployment ([6904dfc](https://github.com/IEBH/TERA-fy/commit/6904dfcf4505a2989733e5a46537ef140aedadea))
17
+
18
+
19
+ ### Features
20
+
21
+ * Add stub for uiProgress (unfinished implementation) ([402d181](https://github.com/IEBH/TERA-fy/commit/402d1810fb679782088728958140304cb0eba9c9))
22
+ * Added plugins/vite ([3d48f3b](https://github.com/IEBH/TERA-fy/commit/3d48f3b7a2c52648f5757d267606dec9800d08a0))
23
+ * More init debug steps + transmit server verbosity as first action ([8cb6e52](https://github.com/IEBH/TERA-fy/commit/8cb6e5221883079158af508be552eea7055fedc2))
24
+ * setServerVerbosity() ([a0f7f77](https://github.com/IEBH/TERA-fy/commit/a0f7f77d7c95e43a1cea0f73fb199a513a561b55))
25
+ * toggleDevMode() now also accepts the "proxy" meta value to switch to local proxy-forwarding mode ([d2fa61d](https://github.com/IEBH/TERA-fy/commit/d2fa61d6c584a7489ea18b3f48d28e5ab91cf682))
26
+
3
27
  ## [1.7.4](https://github.com/IEBH/TERA-fy/compare/v1.7.3...v1.7.4) (2024-05-31)
4
28
 
5
29
 
package/README.md CHANGED
@@ -47,3 +47,51 @@ Generally importing the source code TERA-fy client (`import terafy from '@iebh/t
47
47
  | `@iebh/tera-fy/dist/plugin.vue2.es2019.js` | ESM + ES2019 | `@vue/cli-service` compatible version of the Vue@2 plugin |
48
48
 
49
49
  More versions can be added upon request or PR of the build command in the scripts section of `package.json`.
50
+
51
+
52
+ Plugins
53
+ =======
54
+ This module exports various plugins which are availble as `import from '@iebh/tera-fy/plugins/*'`.
55
+
56
+
57
+ `@iebh/tera-fy/plugins/vue2`
58
+ ----------------------------
59
+ FIXME: To add documentation
60
+
61
+
62
+ `@iebh/tera-fy/plugins/vue3`
63
+ ----------------------------
64
+ FIXME: To add documentation
65
+
66
+
67
+ `@iebh/tera-fy/plugins/vite`
68
+ ----------------------------
69
+ A plugin for Vite which boots a local proxy server to route traffic to/from `localhost:7334` to tera-tools.com.
70
+ This is to work around the issue where a local website is usually forbidden from talking to TERA-tools.com unless its running with a HTTPS context.
71
+
72
+ Example Usage within `vite.config.js`:
73
+
74
+ ```javascript
75
+ // ... Other imports ... //
76
+ import pluginTeraFy from '@iebh/tera-fy/plugins/vite';
77
+
78
+ export default {
79
+ plugins: [
80
+ // ... other plugin config ... //
81
+
82
+ pluginTeraFy(), // ... or add an options object to override the defaults
83
+ ],
84
+ }
85
+ ```
86
+
87
+ Configuration options:
88
+
89
+ | Option | Type | Default | Description |
90
+ |------------------|-----------|--------------------|----------------------------------------------------------------|
91
+ | `force` | `Boolean` | `false` | Restart the server even if its apparently running |
92
+ | `autoStart` | `Boolean` | `true` | Automatically start the proxy without calling `Plugin.start()` |
93
+ | `host` | `String` | `'0.0.0.0'` | Host IP to listen on |
94
+ | `port` | `Number` | `7334` | Host port to listen on |
95
+ | `targetProtocol` | `String` | `'https'` | Target protocol to forward to |
96
+ | `targetHost` | `String` | `'tera-tools.com'` | Target host to forward to |
97
+ | `targetPort` | `Number` | `443` | Target port to forward to |