diff --git a/package.json b/package.json index 0de2490ea..faa5bcbab 100644 --- a/package.json +++ b/package.json @@ -60,13 +60,13 @@ } ], "devDependencies": { - "@parcel/transformer-image": "2.10.1", - "@size-limit/preset-big-lib": "^11.0.1", - "@types/mocha": "^10.0.6", + "@parcel/transformer-image": "2.13.2", + "@size-limit/preset-big-lib": "^11.1.6", + "@types/mocha": "^10.0.10", "canvas": "^2.11.2", - "chai": "4.3.10", + "chai": "5.1.2", "filehound": "^1.17.6", - "gulp": "^4.0.2", + "gulp": "^5.0.0", "gulp-concat": "^2.6.1", "gulp-connect": "^5.7.0", "gulp-exec": "^5.0.0", @@ -79,14 +79,14 @@ "gulp-util": "^3.0.8", "mocha": "10.2.0", "mocha-headless-chrome": "^4.0.0", - "parcel": "2.10.1", + "parcel": "2.13.2", "process": "^0.11.10", - "rollup": "^4.9.1", + "rollup": "^4.28.1", "rollup-plugin-typescript2": "^0.36.0", - "size-limit": "^11.0.1", + "size-limit": "^11.1.6", "ts-mocha": "^10.0.0", "ts-node": "^10.9.2", - "typescript": "^5.3.3" + "typescript": "^5.7.2" }, "keywords": [ "canvas", diff --git a/src/Factory.ts b/src/Factory.ts index 0040670ac..b1af978d2 100644 --- a/src/Factory.ts +++ b/src/Factory.ts @@ -129,7 +129,7 @@ export const Factory = { // getter constructor.prototype[getter] = function () { - const ret = {}; + const ret: Record = {}; for (let n = 0; n < len; n++) { const component = components[n]; diff --git a/src/shapes/TextPath.ts b/src/shapes/TextPath.ts index 000a6f41a..1ae774627 100644 --- a/src/shapes/TextPath.ts +++ b/src/shapes/TextPath.ts @@ -551,7 +551,7 @@ Factory.addGetterSetter(TextPath, 'text', EMPTY_STRING); * // underline text * shape.textDecoration('underline'); */ -Factory.addGetterSetter(TextPath, 'textDecoration', undefined); +Factory.addGetterSetter(TextPath, 'textDecoration', ''); /** * get/set kerning function. diff --git a/src/shapes/Transformer.ts b/src/shapes/Transformer.ts index be875ffe1..3c254a515 100644 --- a/src/shapes/Transformer.ts +++ b/src/shapes/Transformer.ts @@ -1765,6 +1765,9 @@ Factory.addGetterSetter(Transformer, 'padding', 0, getNumberValidator()); */ Factory.addGetterSetter(Transformer, 'nodes'); +// @ts-ignore +// deprecated +Factory.addGetterSetter(Transformer, 'node'); /** * get/set bounding box function. **IMPORTANT!** boundBondFunc operates in absolute coordinates.