@flowfuse/nr-tables-nodes 0.2.2-dd87c96-202601141125.0 → 0.2.2

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.
@@ -19,3 +19,13 @@ jobs:
19
19
  with:
20
20
  token: ${{ secrets.NPM_PUBLISH_TOKEN }}
21
21
  access: public
22
+ - name: getVersion
23
+ id: getVersion
24
+ shell: bash
25
+ run: |
26
+ VERSION=$(npm info . --json version | sed -e 's/"//g')
27
+ echo "version=$VERSION" >> $GITHUB_OUTPUT
28
+ - uses: flowfuse/github-actions-workflows/actions/update-nr-flows@v0.49.0
29
+ with:
30
+ package: '@flowfuse/nr-tables-nodes'
31
+ version: ${{ steps.getVersion.outputs.version }}
package/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 0.2.2
2
+
3
+ - Bump nr catalogue on release (#46)
4
+ - Bump the production-dependencies group with 2 updates (#44) @app/dependabot
5
+ - Add Pool error handler (#49) @hardillb
6
+ - Fix quote and eqeqeq lint rules (#42) @hardillb
7
+ - Fix glob dependency (#40) @hardillb
8
+
1
9
  ### 0.2.1
2
10
 
3
11
  - Bump version to 0.2.2 and update changelog with dependency updates.
package/nodes/query.js CHANGED
@@ -108,6 +108,11 @@ module.exports = function (RED) {
108
108
  database: creds.database,
109
109
  ssl: creds.ssl
110
110
  });
111
+ node.pgPool.on('error', (err, client) => {
112
+ if (err) {
113
+ updateStatus(0, true);
114
+ }
115
+ });
111
116
  updateStatus(0, false);
112
117
  } else {
113
118
  node.warn('No databases found in FlowFuse Tables for your team.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowfuse/nr-tables-nodes",
3
- "version": "0.2.2-dd87c96-202601141125.0",
3
+ "version": "0.2.2",
4
4
  "description": "Nodes for use with the FlowFuse Tables offering, allowing developers to write and run queries against databases inside FlowFuse Tables.",
5
5
  "homepage": "https://flowfuse.com/node-red/flowfuse/flowfuse-tables/",
6
6
  "author": {