Skip to content

Commit 873de80

Browse files
Fix bug in uiblib nanoId. Bump to v7.0.2
1 parent b154004 commit 873de80

20 files changed

+27
-32
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,14 @@ The following are only used for _**developing**_ UIBUILDER:
2828

2929
------------
3030

31-
## [Unreleased](https://github.com/TotallyInformation/node-red-contrib-uibuilder/compare/v7.0.1...main)
31+
## [Unreleased](https://github.com/TotallyInformation/node-red-contrib-uibuilder/compare/v7.0.2...main)
3232

3333
Nothing currently.
3434

35+
## [v7.0.2](https://github.com/TotallyInformation/node-red-contrib-uibuilder/compare/v7.0.2...v7.0.1)
36+
37+
Bug fix only. Minor issue in `nodes/libs/uiblib.js` regarding the new `nanoId` client id creator.
38+
3539
## [v7.0.1](https://github.com/TotallyInformation/node-red-contrib-uibuilder/compare/v7.0.1...v7.0.0)
3640

3741
Bug fix only. New optional hooks failing if not present in settings.js.
@@ -135,6 +139,8 @@ Most of these changes will *not* impact most people but you should check through
135139

136140
* Connection headers have been added to the client details that are shown on control messages and on standard messages if the uibuilder "Include msg._uib in standard msg output." advanced flag is turned on. These may be particularly useful if using 3rd-party identity (authentication and authorisation) tooling which may put validated data into custom headings. Note however that these are "connection" headers, ongoing communications between the clients and the server do not update the headers (not possible over websockets) but will be updated if the client reconnects or reloads.
137141

142+
* UIBUILDER now recognises common external user authentications. See [Standardised msg._client properties for authenticated clients](https://totallyinformation.github.io/node-red-contrib-uibuilder/#/security/authenticated-client-properties) in the docs for details. FlowFuse, Cloudflare Access, Keycloak, Authelia and Authentik as well as ones that use standard proxy headers should all be recognised.
143+
138144
* Documentation improvements
139145
* Access to the documentation inside Node-RED is now available fully offline, no Internet needed.
140146
* There are lots of new and update pages to explore.

front-end/ui.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var require_ui = __commonJS({
1919
*/
2020
constructor(win, extLog, jsonHighlight) {
2121
//#region --- Class variables ---
22-
__publicField(this, "version", "7.0.1-src");
22+
__publicField(this, "version", "7.0.2-src");
2323
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
2424
__publicField(this, "sanitiseExtraTags", ["uib-var"]);
2525
__publicField(this, "sanitiseExtraAttribs", ["variable", "report", "undefined"]);

front-end/ui.esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front-end/ui.esm.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front-end/ui.iife.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
constructor(win, extLog, jsonHighlight) {
2222
//#region --- Class variables ---
23-
__publicField(this, "version", "7.0.1-src");
23+
__publicField(this, "version", "7.0.2-src");
2424
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
2525
__publicField(this, "sanitiseExtraTags", ["uib-var"]);
2626
__publicField(this, "sanitiseExtraAttribs", ["variable", "report", "undefined"]);

front-end/ui.iife.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front-end/ui.iife.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front-end/uibuilder.esm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var require_ui = __commonJS({
5858
*/
5959
constructor(win, extLog, jsonHighlight) {
6060
//#region --- Class variables ---
61-
__publicField(this, "version", "7.0.1-src");
61+
__publicField(this, "version", "7.0.2-src");
6262
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
6363
__publicField(this, "sanitiseExtraTags", ["uib-var"]);
6464
__publicField(this, "sanitiseExtraAttribs", ["variable", "report", "undefined"]);
@@ -5057,7 +5057,7 @@ __publicField(_ApplyTemplate, "props", ["template-id", "once"]);
50575057
var ApplyTemplate = _ApplyTemplate;
50585058

50595059
// src/front-end-module/uibuilder.module.js
5060-
var version = "7.0.1-esm";
5060+
var version = "7.0.2-esm";
50615061
var isMinified = !/param/.test(function(param) {
50625062
});
50635063
function log() {

front-end/uibuilder.esm.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front-end/uibuilder.esm.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front-end/uibuilder.iife.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
*/
6060
constructor(win, extLog, jsonHighlight) {
6161
//#region --- Class variables ---
62-
__publicField(this, "version", "7.0.1-src");
62+
__publicField(this, "version", "7.0.2-src");
6363
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
6464
__publicField(this, "sanitiseExtraTags", ["uib-var"]);
6565
__publicField(this, "sanitiseExtraAttribs", ["variable", "report", "undefined"]);
@@ -5059,7 +5059,7 @@
50595059

50605060
// src/front-end-module/uibuilder.module.js
50615061
var import_meta = {};
5062-
var version = "7.0.1-iife";
5062+
var version = "7.0.2-iife";
50635063
var isMinified = !/param/.test(function(param) {
50645064
});
50655065
function log() {

front-end/uibuilder.iife.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front-end/uibuilder.iife.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const stdio = 'inherit'
7070
// @ts-ignore Find the module version in the package.json
7171
const { version } = JSON.parse(fs.readFileSync('package.json'))
7272
// Desired release version
73-
const release = '7.0.1'
73+
const release = '7.0.2'
7474
// Wanted node.js version - used for ESBUILD
7575
const nodeVersion = 'node18.12'
7676

nodes/libs/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const Ui = class Ui2 {
22
//#region --- Class variables ---
3-
version = "7.0.1-node";
3+
version = "7.0.2-node";
44
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
55
sanitiseExtraTags = ["uib-var"];
66
sanitiseExtraAttribs = ["variable", "report", "undefined"];

nodes/libs/uiblib.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const UibLib = {
211211
if ( req.headers.cookie ) {
212212
const matches = req.headers.cookie.match(regex)
213213
// if ( !matches || !matches.groups.id ) clientId = nanoid()
214-
if ( !matches || !matches.groups.id ) clientId = this.nanoId(uidLen)
214+
if ( !matches || !matches.groups.id ) clientId = nanoId(uidLen)
215215
else clientId = matches.groups.id
216216
} else {
217217
// clientId = nanoid()

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "node-red-contrib-uibuilder",
3-
"version": "7.0.1",
3+
"version": "7.0.2",
44
"description": "Easily create data-driven web UI's for Node-RED using any (or no) front-end library.",
55
"scripts": {
66
"preinstall": "node ./bin/uibpreinstalljs",

src/front-end-module/ui.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
const Ui = class Ui {
3434
//#region --- Class variables ---
35-
version = '7.0.1-src'
35+
version = '7.0.2-src'
3636

3737
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
3838
sanitiseExtraTags = ['uib-var']

src/front-end-module/uibuilder.module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import UibVar from '../components/uib-var'
3636
import UibMeta from '../components/uib-meta'
3737
import ApplyTemplate from '../components/apply-template'
3838

39-
const version = '7.0.1-src'
39+
const version = '7.0.2-src'
4040

4141
// TODO Add option to allow log events to be sent back to Node-RED as uib ctrl msgs
4242
//#region --- Module-level utility functions --- //

tests/uuid.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)