Skip to content

Commit

Permalink
Fix bug in uiblib nanoId. Bump to v7.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
TotallyInformation committed Sep 1, 2024
1 parent b154004 commit 873de80
Show file tree
Hide file tree
Showing 20 changed files with 27 additions and 32 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@ The following are only used for _**developing**_ UIBUILDER:

------------

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

Nothing currently.

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

Bug fix only. Minor issue in `nodes/libs/uiblib.js` regarding the new `nanoId` client id creator.

## [v7.0.1](https://github.com/TotallyInformation/node-red-contrib-uibuilder/compare/v7.0.1...v7.0.0)

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

* 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.

* 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.

* Documentation improvements
* Access to the documentation inside Node-RED is now available fully offline, no Internet needed.
* There are lots of new and update pages to explore.
Expand Down
2 changes: 1 addition & 1 deletion front-end/ui.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ var require_ui = __commonJS({
*/
constructor(win, extLog, jsonHighlight) {
//#region --- Class variables ---
__publicField(this, "version", "7.0.1-src");
__publicField(this, "version", "7.0.2-src");
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
__publicField(this, "sanitiseExtraTags", ["uib-var"]);
__publicField(this, "sanitiseExtraAttribs", ["variable", "report", "undefined"]);
Expand Down
2 changes: 1 addition & 1 deletion front-end/ui.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion front-end/ui.esm.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion front-end/ui.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
constructor(win, extLog, jsonHighlight) {
//#region --- Class variables ---
__publicField(this, "version", "7.0.1-src");
__publicField(this, "version", "7.0.2-src");
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
__publicField(this, "sanitiseExtraTags", ["uib-var"]);
__publicField(this, "sanitiseExtraAttribs", ["variable", "report", "undefined"]);
Expand Down
2 changes: 1 addition & 1 deletion front-end/ui.iife.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion front-end/ui.iife.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions front-end/uibuilder.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ var require_ui = __commonJS({
*/
constructor(win, extLog, jsonHighlight) {
//#region --- Class variables ---
__publicField(this, "version", "7.0.1-src");
__publicField(this, "version", "7.0.2-src");
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
__publicField(this, "sanitiseExtraTags", ["uib-var"]);
__publicField(this, "sanitiseExtraAttribs", ["variable", "report", "undefined"]);
Expand Down Expand Up @@ -5057,7 +5057,7 @@ __publicField(_ApplyTemplate, "props", ["template-id", "once"]);
var ApplyTemplate = _ApplyTemplate;

// src/front-end-module/uibuilder.module.js
var version = "7.0.1-esm";
var version = "7.0.2-esm";
var isMinified = !/param/.test(function(param) {
});
function log() {
Expand Down
2 changes: 1 addition & 1 deletion front-end/uibuilder.esm.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion front-end/uibuilder.esm.min.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions front-end/uibuilder.iife.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
*/
constructor(win, extLog, jsonHighlight) {
//#region --- Class variables ---
__publicField(this, "version", "7.0.1-src");
__publicField(this, "version", "7.0.2-src");
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
__publicField(this, "sanitiseExtraTags", ["uib-var"]);
__publicField(this, "sanitiseExtraAttribs", ["variable", "report", "undefined"]);
Expand Down Expand Up @@ -5059,7 +5059,7 @@

// src/front-end-module/uibuilder.module.js
var import_meta = {};
var version = "7.0.1-iife";
var version = "7.0.2-iife";
var isMinified = !/param/.test(function(param) {
});
function log() {
Expand Down
2 changes: 1 addition & 1 deletion front-end/uibuilder.iife.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion front-end/uibuilder.iife.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ const stdio = 'inherit'
// @ts-ignore Find the module version in the package.json
const { version } = JSON.parse(fs.readFileSync('package.json'))
// Desired release version
const release = '7.0.1'
const release = '7.0.2'
// Wanted node.js version - used for ESBUILD
const nodeVersion = 'node18.12'

Expand Down
2 changes: 1 addition & 1 deletion nodes/libs/ui.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Ui = class Ui2 {
//#region --- Class variables ---
version = "7.0.1-node";
version = "7.0.2-node";
// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
sanitiseExtraTags = ["uib-var"];
sanitiseExtraAttribs = ["variable", "report", "undefined"];
Expand Down
2 changes: 1 addition & 1 deletion nodes/libs/uiblib.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ const UibLib = {
if ( req.headers.cookie ) {
const matches = req.headers.cookie.match(regex)
// if ( !matches || !matches.groups.id ) clientId = nanoid()
if ( !matches || !matches.groups.id ) clientId = this.nanoId(uidLen)
if ( !matches || !matches.groups.id ) clientId = nanoId(uidLen)
else clientId = matches.groups.id
} else {
// clientId = nanoid()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-uibuilder",
"version": "7.0.1",
"version": "7.0.2",
"description": "Easily create data-driven web UI's for Node-RED using any (or no) front-end library.",
"scripts": {
"preinstall": "node ./bin/uibpreinstalljs",
Expand Down
2 changes: 1 addition & 1 deletion src/front-end-module/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

const Ui = class Ui {
//#region --- Class variables ---
version = '7.0.1-src'
version = '7.0.2-src'

// List of tags and attributes not in sanitise defaults but allowed in uibuilder.
sanitiseExtraTags = ['uib-var']
Expand Down
2 changes: 1 addition & 1 deletion src/front-end-module/uibuilder.module.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import UibVar from '../components/uib-var'
import UibMeta from '../components/uib-meta'
import ApplyTemplate from '../components/apply-template'

const version = '7.0.1-src'
const version = '7.0.2-src'

// TODO Add option to allow log events to be sent back to Node-RED as uib ctrl msgs
//#region --- Module-level utility functions --- //
Expand Down
11 changes: 0 additions & 11 deletions tests/uuid.js

This file was deleted.

0 comments on commit 873de80

Please sign in to comment.