svgedit/test
Brett Zamir 2e5c7557a9 - Breaking change: `loadSvgString` now returns a `Promise` rather than accepting a callback
- Breaking change: Treat callbacks to `editor.ready` as Promises, only resolving after all resolve
- Breaking change: Make `editor.runCallbacks` return a `Promise` which resolves upon all callbacks resolving
- Breaking change: Require `npx` (used with `babel-node`) to allow Node files
  for HTML building and JSDoc type checking to be expressed as ESM.
- Breaking change: `addExtension` now throws upon a repeated attempt to add an already-added extension
- Breaking change (storage preference cookies): Namespace the cookie as "svgeditstore" instead of just "store"
- Breaking change (API): Remove `svgCanvas.rasterExport` fourth (callback) argument, collapsing fifth (options) to fourth
- Breaking change (API): Remove `svgCanvas.exportPDF` third (callback) argument
- Breaking change (API): `editor/contextmenu.js` `add` now throws instead of giving a console error only upon detecting a bad menuitem or preexisting context menu
- Breaking change (API): Remove `svgCanvas.embedImage` second (callback) argument
- Breaking change (API): Make `getHelpXML` a class instead of instance method of `RGBColor`
- Breaking change (internal API): Refactor `dbox` (and `alert`/`confirm`/`process`/`prompt`/`select`) to avoid a callback argument in favor of return a Promise
- Fix: Avoid running in extension `langReady` multiple times or serially
- Enhancement (API): Add svgCanvas.runExtension to run just one extension and add `nameFilter` callback to `runExtensions`
- Enhancement (API): Supply `$` (our wrapped jQuery) to extensions so can use its plugins, e.g., dbox with its `alert`
- Enhancement: Use alert dialog in place of `alert` in webappfind
- Enhancement: `editor.ready` now returns a Promise resolving when all callbacks have resolved
- Enhancement: Allow `noAlert` option as part of second argument to `loadSvgString` (and `loadFromURL` and `loadFromDataURI`) to avoid UI alert (and trigger promise rejection)
- Enhancement: Make `dbox` as a separate module for alert, prompt, etc. dialogs
- Refactoring: Internal `PaintBox` as class; other misc. tweaks; no bitwise in canvg
- Linting (ESLint): Further linting changes (for editor); rename `.eslintrc` -> `.eslintrc.json` per recommendation
- Optimization: Recompress images (imageoptim-cli updated)
- npm: Update devDeps
- npm: Bump to 4.0.0
2018-11-16 12:48:23 +08:00
..
browser-bugs - Refactoring (minor): Simplify (empty string is falsey) 2018-05-18 11:35:24 +08:00
qunit - Breaking change: `loadSvgString` now returns a `Promise` rather than accepting a callback 2018-11-16 12:48:23 +08:00
sinon - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
ui-tests - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
all_tests.html - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented 2018-07-08 22:39:46 -07:00
all_tests.js - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
contextmenu_test.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
contextmenu_test.js - Breaking change: `loadSvgString` now returns a `Promise` rather than accepting a callback 2018-11-16 12:48:23 +08:00
coords_test.html - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented 2018-07-08 22:39:46 -07:00
coords_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
draw_test.html - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented 2018-07-08 22:39:46 -07:00
draw_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
history_test.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
history_test.js - Breaking change: `loadSvgString` now returns a `Promise` rather than accepting a callback 2018-11-16 12:48:23 +08:00
jQuery.attr_test.html - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented 2018-07-08 22:39:46 -07:00
jQuery.attr_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
math_test.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
math_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
path_test.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
path_test.js - npm: Update devDeps 2018-09-07 08:19:45 +08:00
recalculate_test.html - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented 2018-07-08 22:39:46 -07:00
recalculate_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
sanitize_test.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
sanitize_test.js TODO: Besides splitting this out from previous commit, should really avoid markdown field in favor of modifying jsdoc to report wherever it lays out "prettyprint"; still probably missing some one-liners; see https://github.com/google/code-prettify; update builds to confirm new stackblur is working; add below to CHANGES; add back for eslint-plugin-jsdoc once merged (though need new version `^3.9.1`); move any linting changes to other linting branch 2018-11-07 14:51:09 +08:00
select_test.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
select_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
svgtransformlist_test.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
svgtransformlist_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
test1.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
test1.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
units_test.html - Breaking change: Rename config file to `svgedit-config-iife.js` (or for the module version, `svgedit-config-es.js`); 2018-05-25 20:03:14 +08:00
units_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
utilities_bbox_test.html - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented 2018-07-08 22:39:46 -07:00
utilities_bbox_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
utilities_performance_test.html - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented 2018-07-08 22:39:46 -07:00
utilities_performance_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00
utilities_test.html - Security fix: 'extPath', 'imgPath', 'extIconsPath', 'canvgPath', 'langPath', 'jGraduatePath', and 'jspdfPath' were not being prevented 2018-07-08 22:39:46 -07:00
utilities_test.js - Linting (ESLint): Stricter rules (or switch to warning) 2018-11-08 14:42:48 +08:00