@datarailsshared/dr_renderer 1.5.159 → 1.5.163
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/.github/workflows/release.yml +2 -2
- package/.nvmrc +1 -0
- package/package.json +8 -5
- package/scripts/check-versions.js +16 -0
- package/src/highcharts_renderer.d.ts +2 -2
- package/tsconfig.json +1 -1
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
name: Build, Test and Publish to NPM
|
|
25
25
|
uses: datarails/dr_github_reusable/.github/workflows/npm-build-publish.yml@main
|
|
26
26
|
with:
|
|
27
|
-
node_version: '
|
|
27
|
+
node_version: '18.18.2'
|
|
28
28
|
access_level: 'public'
|
|
29
29
|
branch_postfix: false
|
|
30
30
|
main_branch: 'master'
|
|
@@ -40,7 +40,7 @@ jobs:
|
|
|
40
40
|
uses: datarails/dr-github-reusable/.github/workflows/shared-sdk-node-build-publish.yaml@main
|
|
41
41
|
with:
|
|
42
42
|
new_version: v${{ needs.publish-npm.outputs.version }}
|
|
43
|
-
node_version: '
|
|
43
|
+
node_version: '18.18.2'
|
|
44
44
|
run_build: true
|
|
45
45
|
package_scope: '@datarailsshared'
|
|
46
46
|
use_npm_ci: false
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
18.18.2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datarailsshared/dr_renderer",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.163",
|
|
4
4
|
"description": "DataRails charts and tables renderer",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datarails",
|
|
@@ -8,7 +8,12 @@
|
|
|
8
8
|
"charts",
|
|
9
9
|
"tables"
|
|
10
10
|
],
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=18.18.2",
|
|
13
|
+
"npm": ">=9.0.0"
|
|
14
|
+
},
|
|
11
15
|
"scripts": {
|
|
16
|
+
"preinstall": "node scripts/check-versions.js",
|
|
12
17
|
"login": "npm login",
|
|
13
18
|
"test": "jest --coverage",
|
|
14
19
|
"build:types": "npx tsc --build --verbose",
|
|
@@ -39,7 +44,7 @@
|
|
|
39
44
|
"typescript": "^5.0.0"
|
|
40
45
|
},
|
|
41
46
|
"types": "src/index.d.ts",
|
|
42
|
-
"homepage": "https://
|
|
47
|
+
"homepage": "https://github.com/Datarails/dr_renderer",
|
|
43
48
|
"whitelistedNonPeerDependencies": [],
|
|
44
49
|
"main": "src/index.js",
|
|
45
50
|
"module": "src/index.js",
|
|
@@ -52,9 +57,7 @@
|
|
|
52
57
|
"./src/pivot.css": "./src/pivot.css",
|
|
53
58
|
"./pivot.css": "./src/pivot.css"
|
|
54
59
|
},
|
|
55
|
-
"sideEffects": [
|
|
56
|
-
"*.css"
|
|
57
|
-
],
|
|
60
|
+
"sideEffects": ["*.css"],
|
|
58
61
|
"jest": {
|
|
59
62
|
"setupFiles": [
|
|
60
63
|
"./setup-jest.js"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execSync } = require('child_process');
|
|
4
|
+
|
|
5
|
+
const REQUIRED_NPM_MAJOR = 9;
|
|
6
|
+
|
|
7
|
+
const npmVersion = execSync('npm --version', { encoding: 'utf8' }).trim();
|
|
8
|
+
const npmMajor = parseInt(npmVersion.split('.')[0], 10);
|
|
9
|
+
|
|
10
|
+
if (npmMajor < REQUIRED_NPM_MAJOR) {
|
|
11
|
+
console.error(`\x1b[31mError: npm ${REQUIRED_NPM_MAJOR}.x or above is required. Current: ${npmVersion}\x1b[0m`);
|
|
12
|
+
console.error('Please run: npm install -g npm@9');
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
console.log(`\x1b[32m✓ npm ${npmVersion} meets requirements (>= ${REQUIRED_NPM_MAJOR}.x)\x1b[0m`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export = getHighchartsRenderer;
|
|
2
2
|
/**
|
|
3
|
-
* @param {EnvironmentOptions} envOptions
|
|
3
|
+
* @param {import("./index").EnvironmentOptions} envOptions
|
|
4
4
|
*/
|
|
5
|
-
declare function getHighchartsRenderer($: any, document: any, Highcharts: any, default_colors: any, highchartsRenderer: any, DataFormatter: any, lodash: any, moment_lib: any, isNewAngular: any, envOptions
|
|
5
|
+
declare function getHighchartsRenderer($: any, document: any, Highcharts: any, default_colors: any, highchartsRenderer: any, DataFormatter: any, lodash: any, moment_lib: any, isNewAngular: any, envOptions?: import("./index").EnvironmentOptions): any;
|
package/tsconfig.json
CHANGED