Skip to content

Commit

Permalink
hpcc-systemsGH-4093 Bump ObservableHQ Versions
Browse files Browse the repository at this point in the history
Fixes hpcc-systems#4093

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed Jun 13, 2023
1 parent c9892d9 commit a20d2a6
Show file tree
Hide file tree
Showing 18 changed files with 279 additions and 364 deletions.
287 changes: 142 additions & 145 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions packages/observable-md/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# @hpcc-js/observable-md

> **Warning**
> Deprectated in favor of @hpcc-js/observable-compiler
_An interpreted version of the [Observable HQ](https://observablehq.com) runtime._

* [Installing](#installing)
Expand Down
8 changes: 4 additions & 4 deletions packages/observable-md/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"repl"
],
"main": "dist/index.node.js",
"module": "dist/index.es6",
"module-node": "dist/index.node.es6",
"module": "dist/index.es6.js",
"module-node": "dist/index.node.es6.js",
"browser": "dist/index.js",
"unpkg": "dist/index.min.js",
"jsdelivr": "dist/index.min.js",
Expand Down Expand Up @@ -57,7 +57,7 @@
},
"devDependencies": {
"@hpcc-js/bundle": "^2.11.3",
"@observablehq/runtime": "4.28.0",
"@observablehq/runtime": "5.7.4",
"d3-require": "^1",
"tslib": "2.4.1"
},
Expand All @@ -72,4 +72,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization"
}
}
2 changes: 1 addition & 1 deletion packages/observable-md/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default [{
globals: globals,
name: pkg.name
}, {
file: pkg.main.split(".node.").join(".node.es6"),
file: pkg.main.split(".node.").join(".node.es6."),
format: "es",
sourcemap: true,
globals: globals
Expand Down
4 changes: 2 additions & 2 deletions packages/observablehq-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
},
"devDependencies": {
"@hpcc-js/bundle": "^2.11.3",
"@observablehq/runtime": "4.28.0",
"@observablehq/runtime": "5.7.4",
"tslib": "2.4.1"
},
"repository": {
Expand All @@ -76,4 +76,4 @@
"url": "https://github.com/hpcc-systems/Visualization/issues"
},
"homepage": "https://github.com/hpcc-systems/Visualization/tree/trunk/packages/observablehq-compiler"
}
}
2 changes: 1 addition & 1 deletion tests/test-data/src/coreTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function classDef<T extends Class>(module: string, WidgetClass: { new():
});
}

function createPlaceholder<T extends HTMLWidget | SVGWidget>(widget: T, title: string, width: number = 640, height: number = 480, scale: number = 0.5) {
export function createPlaceholder<T extends HTMLWidget | SVGWidget>(widget: T, title: string, width: number = 640, height: number = 480, scale: number = 0.5) {
const div = document.createElement("DIV");
div.setAttribute("id", widget.classID());
div.setAttribute("class", `${widget.classID()} widgetTest`);
Expand Down
3 changes: 0 additions & 3 deletions tests/test-observable-md/src/index.spec.ts

This file was deleted.

204 changes: 0 additions & 204 deletions tests/test-observable-md/src/observable.spec.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
"${workspaceRoot}/build/**/*"
]
},
{
"name": "Edge Debug",
"type": "msedge",
"request": "launch",
"url": "file:///${workspaceRoot}/test.html",
"trace": true,
"webRoot": "${workspaceRoot}/",
"sourceMapPathOverrides": {
"webpack:///./*": "${workspaceRoot}/*",
"webpack:///*": "/*"
}
},
{
"name": "Chrome Debug",
"type": "chrome",
Expand Down
File renamed without changes.
File renamed without changes.
59 changes: 59 additions & 0 deletions tests/test-observablehq-compiler/karma.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* eslint-disable no-undef */
// Karma configuration
// Generated on Mon Apr 11 2022 12:03:14 GMT+0100 (Irish Standard Time)

module.exports = function (config) {
config.set({

// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: ".",

// frameworks to use
// available frameworks: https://www.npmjs.com/search?q=keywords:karma-adapter
frameworks: ["mocha"],

// list of files / patterns to load in the browser
files: [
"lib-es6/test-observable-md/src/index.spec.js"
],

// list of files / patterns to exclude
exclude: [
],

// preprocess matching files before serving them to the browser
// available preprocessors: https://www.npmjs.com/search?q=keywords:karma-preprocessor
preprocessors: {
},

// test results reporter to use
// possible values: 'dots', 'progress'
// available reporters: https://www.npmjs.com/search?q=keywords:karma-reporter
reporters: ["progress"],

// web server port
port: 9876,

// enable / disable colors in the output (reporters and logs)
colors: true,

// level of logging
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG
logLevel: config.LOG_INFO,

// enable / disable watching file and executing tests whenever any file changes
autoWatch: true,

// start these browsers
// available browser launchers: https://www.npmjs.com/search?q=keywords:karma-launcher
browsers: ["Chrome"],

// Continuous Integration mode
// if true, Karma captures browsers, runs the tests and exits
singleRun: false,

// Concurrency level
// how many browser instances should be started simultaneously
concurrency: Infinity
});
};
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"private": true,
"name": "@hpcc-js/test-observable-md",
"name": "@hpcc-js/test-observablehq-compiler",
"dependencies": {
"@hpcc-js/common": "^2.71.8",
"@hpcc-js/observable-md": "^2.54.9",
"@hpcc-js/observablehq-compiler": "^1.2.6",
"@observablehq/runtime": "5.7.4",
"es6-promise": "4.2.8",
"simulate-event": "1.4.0"
},
Expand Down
1 change: 1 addition & 0 deletions tests/test-observablehq-compiler/src/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import "./observable.spec";
Loading

0 comments on commit a20d2a6

Please sign in to comment.