From d2a28ae65a9bad0b714cf3e257f167d968ded9f3 Mon Sep 17 00:00:00 2001 From: Luke-zhang-04 Date: Mon, 29 Apr 2024 13:11:42 -0400 Subject: [PATCH] update version, year, and deps --- LICENSE | 2 +- README.md | 4 +- package.json | 12 +- pnpm-lock.yaml | 298 ++++++++++------------------ pnpm-workspace.yaml | 2 - rollup.config.js | 16 +- rollup/plugins/package.json | 19 -- rollup/plugins/src/index.ts | 1 - rollup/plugins/src/json-and-yaml.ts | 140 ------------- rollup/plugins/src/types.ts | 1 - rollup/plugins/tsconfig.json | 73 ------- src/commands/index.ts | 6 - src/commands/run.ts | 6 - src/commands/search.ts | 6 - src/config.ts | 6 - src/index.ts | 4 +- src/utils/escapePath.ts | 6 - src/utils/index.ts | 6 - src/utils/search.ts | 6 - src/validateCommand.ts | 5 - 20 files changed, 116 insertions(+), 503 deletions(-) delete mode 100644 pnpm-workspace.yaml delete mode 100644 rollup/plugins/package.json delete mode 100644 rollup/plugins/src/index.ts delete mode 100644 rollup/plugins/src/json-and-yaml.ts delete mode 100644 rollup/plugins/src/types.ts delete mode 100644 rollup/plugins/tsconfig.json diff --git a/LICENSE b/LICENSE index 18c6964..d0bfe50 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016 - 2020 Tobiah Zarlez, 2021 Luke Zhang +Copyright (c) 2016 - 2020 Tobiah Zarlez, 2021-2024 Luke Zhang Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index c8cdf02..4d85683 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,9 @@ [![Rating](https://vsmarketplacebadge.apphb.com/rating-star/Luke-zhang-04.processing-vscode.svg?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=Luke-zhang-04.processing-vscode) [![.github/workflows/CI.yml](https://img.shields.io/github/workflow/status/Luke-zhang-04/processing-vscode/Node.js%20CI?label=CI&logo=github&style=flat-square)](https://github.com/Luke-zhang-04/processing-vscode/actions) [![License](https://img.shields.io/github/license/Luke-zhang-04/processing-vscode?style=flat-square)](./LICENSE) -![Maintained?](https://img.shields.io/maintenance/yes/2021?style=flat-square) +![Maintained?](https://img.shields.io/maintenance/yes/2024?style=flat-square) [![Vulnerabilities](https://snyk.io/test/github/Luke-zhang-04/processing-vscode/badge.svg?style=flat-square)](https://snyk.io/test/github/Luke-zhang-04/processing-vscode) -Note on Processing 4: I'm not sure how this extension will handle Processing 4. I will wait for it to be out of beta and fix the extension if needed. - ## Contents - [What this extension is](#what-this-extension-is) diff --git a/package.json b/package.json index ab9a125..7ba04ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "processing-vscode", - "version": "2.4.1", + "version": "3.0.0-beta.0", "private": true, "description": "Processing Language Support for VSCode", "license": "MIT", @@ -35,31 +35,23 @@ "devDependencies": { "@rollup/plugin-node-resolve": "^13.0.0", "@rollup/plugin-typescript": "^8.2.1", - "@types/glob": "^7.1.4", "@types/jest": "^27.0.3", - "@types/jsdom": "^16.2.13", "@types/node": "^16.3.1", - "@types/node-fetch": "^2.5.11", "@types/vscode": "^1.48.0", "@typescript-eslint/eslint-plugin": "^4.28.2", "@typescript-eslint/parser": "^4.28.2", "eslint": "^7.30.0", "eslint-plugin-prefer-arrow": "^1.2.3", - "glob": "^7.1.7", "jest": "^27.4.5", - "jsdom": "^16.6.0", - "node-fetch": "^2.6.1", "prettier": "^2.3.2", "prettier-plugin-jsdoc": "^0.3.23", "prettier-plugin-package": "^1.3.0", "rollup": "^2.53.0", "rollup-plugin-progress": "^1.1.2", - "rollup-plugin-terser": "^7.0.2", "ts-jest": "^27.1.2", "tslib": "^2.3.0", "typescript": "~4.3.5", - "vsce": "^1.95.1", - "yaml": "^1.10.2" + "vsce": "^1.95.1" }, "activationEvents": [ "onCommand:processing.OpenExtensionDocumentation", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 747d460..b8d8992 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -4,88 +4,86 @@ settings: autoInstallPeers: true excludeLinksFromLockfile: false -devDependencies: - '@rollup/plugin-node-resolve': - specifier: ^13.0.0 - version: 13.0.0(rollup@2.53.0) - '@rollup/plugin-typescript': - specifier: ^8.2.1 - version: 8.2.1(rollup@2.53.0)(tslib@2.3.0)(typescript@4.3.5) - '@types/glob': - specifier: ^7.1.4 - version: 7.1.4 - '@types/jest': - specifier: ^27.0.3 - version: 27.0.3 - '@types/jsdom': - specifier: ^16.2.13 - version: 16.2.13 - '@types/node': - specifier: ^16.3.1 - version: 16.3.1 - '@types/node-fetch': - specifier: ^2.5.11 - version: 2.5.11 - '@types/vscode': - specifier: ^1.48.0 - version: 1.48.0 - '@typescript-eslint/eslint-plugin': - specifier: ^4.28.2 - version: 4.28.2(@typescript-eslint/parser@4.28.2)(eslint@7.30.0)(typescript@4.3.5) - '@typescript-eslint/parser': - specifier: ^4.28.2 - version: 4.28.2(eslint@7.30.0)(typescript@4.3.5) - eslint: - specifier: ^7.30.0 - version: 7.30.0 - eslint-plugin-prefer-arrow: - specifier: ^1.2.3 - version: 1.2.3(eslint@7.30.0) - glob: - specifier: ^7.1.7 - version: 7.1.7 - jest: - specifier: ^27.4.5 - version: 27.4.5 - jsdom: - specifier: ^16.6.0 - version: 16.6.0 - node-fetch: - specifier: ^2.6.1 - version: 2.6.1 - prettier: - specifier: ^2.3.2 - version: 2.3.2 - prettier-plugin-jsdoc: - specifier: ^0.3.23 - version: 0.3.23(prettier@2.3.2) - prettier-plugin-package: - specifier: ^1.3.0 - version: 1.3.0(prettier@2.3.2) - rollup: - specifier: ^2.53.0 - version: 2.53.0 - rollup-plugin-progress: - specifier: ^1.1.2 - version: 1.1.2 - rollup-plugin-terser: - specifier: ^7.0.2 - version: 7.0.2(rollup@2.53.0) - ts-jest: - specifier: ^27.1.2 - version: 27.1.2(@babel/core@7.24.4)(@types/jest@27.0.3)(jest@27.4.5)(typescript@4.3.5) - tslib: - specifier: ^2.3.0 - version: 2.3.0 - typescript: - specifier: ~4.3.5 - version: 4.3.5 - vsce: - specifier: ^1.95.1 - version: 1.95.1 - yaml: - specifier: ^1.10.2 - version: 1.10.2 +importers: + + .: + devDependencies: + '@rollup/plugin-node-resolve': + specifier: ^13.0.0 + version: 13.0.0(rollup@2.53.0) + '@rollup/plugin-typescript': + specifier: ^8.2.1 + version: 8.2.1(rollup@2.53.0)(tslib@2.3.0)(typescript@4.3.5) + '@types/jest': + specifier: ^27.0.3 + version: 27.0.3 + '@types/node': + specifier: ^16.3.1 + version: 16.3.1 + '@types/vscode': + specifier: ^1.48.0 + version: 1.48.0 + '@typescript-eslint/eslint-plugin': + specifier: ^4.28.2 + version: 4.28.2(@typescript-eslint/parser@4.28.2)(eslint@7.30.0)(typescript@4.3.5) + '@typescript-eslint/parser': + specifier: ^4.28.2 + version: 4.28.2(eslint@7.30.0)(typescript@4.3.5) + eslint: + specifier: ^7.30.0 + version: 7.30.0 + eslint-plugin-prefer-arrow: + specifier: ^1.2.3 + version: 1.2.3(eslint@7.30.0) + jest: + specifier: ^27.4.5 + version: 27.4.5 + prettier: + specifier: ^2.3.2 + version: 2.3.2 + prettier-plugin-jsdoc: + specifier: ^0.3.23 + version: 0.3.23(prettier@2.3.2) + prettier-plugin-package: + specifier: ^1.3.0 + version: 1.3.0(prettier@2.3.2) + rollup: + specifier: ^2.53.0 + version: 2.53.0 + rollup-plugin-progress: + specifier: ^1.1.2 + version: 1.1.2 + ts-jest: + specifier: ^27.1.2 + version: 27.1.2(@babel/core@7.24.4)(@types/jest@27.0.3)(jest@27.4.5)(typescript@4.3.5) + tslib: + specifier: ^2.3.0 + version: 2.3.0 + typescript: + specifier: ~4.3.5 + version: 4.3.5 + vsce: + specifier: ^1.95.1 + version: 1.95.1 + + rollup/plugins: + dependencies: + '@rollup/pluginutils': + specifier: ^4.1.0 + version: 4.1.0(rollup@2.53.0) + js-yaml: + specifier: ^4.1.0 + version: 4.1.0 + devDependencies: + '@types/js-yaml': + specifier: ^4.0.1 + version: 4.0.1 + rollup: + specifier: ^2.53.0 + version: 2.53.0 + typescript: + specifier: ^4.3.2 + version: 4.3.5 packages: @@ -681,13 +679,6 @@ packages: engines: {node: '>=6.0.0'} dev: true - /@jridgewell/source-map@0.3.6: - resolution: {integrity: sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ==} - dependencies: - '@jridgewell/gen-mapping': 0.3.5 - '@jridgewell/trace-mapping': 0.3.25 - dev: true - /@jridgewell/sourcemap-codec@1.4.15: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: true @@ -762,6 +753,17 @@ packages: rollup: 2.53.0 dev: true + /@rollup/pluginutils@4.1.0(rollup@2.53.0): + resolution: {integrity: sha512-TrBhfJkFxA+ER+ew2U2/fHbebhLT/l/2pRk0hfj9KusXUuRXd2v0R58AfaZK9VXDQ4TogOSEmICVrQAA3zFnHQ==} + engines: {node: '>= 8.0.0'} + peerDependencies: + rollup: ^1.20.0||^2.0.0 + dependencies: + estree-walker: 2.0.2 + picomatch: 2.3.1 + rollup: 2.53.0 + dev: false + /@sinonjs/commons@1.8.6: resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==} dependencies: @@ -812,13 +814,6 @@ packages: resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} dev: true - /@types/glob@7.1.4: - resolution: {integrity: sha512-w+LsMxKyYQm347Otw+IfBXOv9UWVjpHpCDdbBMt8Kz/xbvCYNjP+0qPh91Km3iKfSRLBB0P7fAMf0KHrPu+MyA==} - dependencies: - '@types/minimatch': 5.1.2 - '@types/node': 16.3.1 - dev: true - /@types/graceful-fs@4.1.9: resolution: {integrity: sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==} dependencies: @@ -848,12 +843,8 @@ packages: pretty-format: 27.5.1 dev: true - /@types/jsdom@16.2.13: - resolution: {integrity: sha512-8JQCjdeAidptSsOcRWk2iTm9wCcwn9l+kRG6k5bzUacrnm1ezV4forq0kWjUih/tumAeoG+OspOvQEbbRucBTw==} - dependencies: - '@types/node': 16.3.1 - '@types/parse5': 7.0.0 - '@types/tough-cookie': 4.0.5 + /@types/js-yaml@4.0.1: + resolution: {integrity: sha512-xdOvNmXmrZqqPy3kuCQ+fz6wA0xU5pji9cd1nDrflWaAWtYLLGk5ykW0H6yg5TVyehHP1pfmuuSaZkhP+kspVA==} dev: true /@types/json-schema@7.0.15: @@ -866,28 +857,10 @@ packages: '@types/unist': 2.0.10 dev: true - /@types/minimatch@5.1.2: - resolution: {integrity: sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==} - dev: true - - /@types/node-fetch@2.5.11: - resolution: {integrity: sha512-2upCKaqVZETDRb8A2VTaRymqFBEgH8u6yr96b/u3+1uQEPDRo3mJLEiPk7vdXBHRtjwkjqzFYMJXrt0Z9QsYjQ==} - dependencies: - '@types/node': 16.3.1 - form-data: 3.0.1 - dev: true - /@types/node@16.3.1: resolution: {integrity: sha512-N87VuQi7HEeRJkhzovao/JviiqKjDKMVKxKMfUvSKw+MbkbW8R0nA3fi/MQhhlxV2fQ+2ReM+/Nt4efdrJx3zA==} dev: true - /@types/parse5@7.0.0: - resolution: {integrity: sha512-f2SeAxumolBmhuR62vNGTsSAvdz/Oj0k682xNrcKJ4dmRnTPODB74j6CPoNPzBPTHsu7Y7W7u93Mgp8Ovo8vWw==} - deprecated: This is a stub types definition. parse5 provides its own type definitions, so you do not need this installed. - dependencies: - parse5: 7.1.2 - dev: true - /@types/prettier@2.7.3: resolution: {integrity: sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==} dev: true @@ -902,10 +875,6 @@ packages: resolution: {integrity: sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==} dev: true - /@types/tough-cookie@4.0.5: - resolution: {integrity: sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==} - dev: true - /@types/unist@2.0.10: resolution: {integrity: sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA==} dev: true @@ -1143,6 +1112,10 @@ packages: sprintf-js: 1.0.3 dev: true + /argparse@2.0.1: + resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==} + dev: false + /array-union@2.1.0: resolution: {integrity: sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==} engines: {node: '>=8'} @@ -1446,10 +1419,6 @@ packages: delayed-stream: 1.0.0 dev: true - /commander@2.20.3: - resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==} - dev: true - /commander@6.2.1: resolution: {integrity: sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==} engines: {node: '>= 6'} @@ -1841,6 +1810,10 @@ packages: resolution: {integrity: sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==} dev: true + /estree-walker@2.0.2: + resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==} + dev: false + /esutils@2.0.3: resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==} engines: {node: '>=0.10.0'} @@ -1970,7 +1943,6 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] requiresBuild: true - dev: true optional: true /function-bind@1.1.2: @@ -2752,15 +2724,6 @@ packages: string-length: 4.0.2 dev: true - /jest-worker@26.6.2: - resolution: {integrity: sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==} - engines: {node: '>= 10.13.0'} - dependencies: - '@types/node': 16.3.1 - merge-stream: 2.0.0 - supports-color: 7.2.0 - dev: true - /jest-worker@27.5.1: resolution: {integrity: sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg==} engines: {node: '>= 10.13.0'} @@ -2803,6 +2766,13 @@ packages: esprima: 4.0.1 dev: true + /js-yaml@4.1.0: + resolution: {integrity: sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==} + hasBin: true + dependencies: + argparse: 2.0.1 + dev: false + /jsdom@16.6.0: resolution: {integrity: sha512-Ty1vmF4NHJkolaEmdjtxTfSfkdb8Ywarwf63f+F8/mDD1uLSSWDxDuMiZxiPhwunLrn9LOSVItWj4bLYsLN3Dg==} engines: {node: '>=10'} @@ -3066,11 +3036,6 @@ packages: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} dev: true - /node-fetch@2.6.1: - resolution: {integrity: sha512-V4aYg89jEoVRxRb2fJdAg8FHvI7cEyYdVAh94HH0UIK8oJxUfkjlDQN9RbMx+bEjP7+ggMiFRprSti032Oipxw==} - engines: {node: 4.x || >=6.0.0} - dev: true - /node-int64@0.4.0: resolution: {integrity: sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==} dev: true @@ -3252,7 +3217,6 @@ packages: /picomatch@2.3.1: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} - dev: true /pirates@4.0.6: resolution: {integrity: sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==} @@ -3347,12 +3311,6 @@ packages: resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==} dev: true - /randombytes@2.1.0: - resolution: {integrity: sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==} - dependencies: - safe-buffer: 5.2.1 - dev: true - /react-is@17.0.2: resolution: {integrity: sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==} dev: true @@ -3432,26 +3390,12 @@ packages: chalk: 2.4.2 dev: true - /rollup-plugin-terser@7.0.2(rollup@2.53.0): - resolution: {integrity: sha512-w3iIaU4OxcF52UUXiZNsNeuXIMDvFrr+ZXK6bFZ0Q60qyVfq4uLptoS4bbq3paG3x216eQllFZX7zt6TIImguQ==} - deprecated: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-terser - peerDependencies: - rollup: ^2.0.0 - dependencies: - '@babel/code-frame': 7.24.2 - jest-worker: 26.6.2 - rollup: 2.53.0 - serialize-javascript: 4.0.0 - terser: 5.30.4 - dev: true - /rollup@2.53.0: resolution: {integrity: sha512-spgrY78Toh+m0+zaOoeaayJKuzFuWy6o1PdFIBMVwRcuxT0xCOX9A5rChyKe+2ruL4lePKWUMImS4mMW1QAkmQ==} engines: {node: '>=10.0.0'} hasBin: true optionalDependencies: fsevents: 2.3.3 - dev: true /run-parallel@1.2.0: resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==} @@ -3459,10 +3403,6 @@ packages: queue-microtask: 1.2.3 dev: true - /safe-buffer@5.2.1: - resolution: {integrity: sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==} - dev: true - /safer-buffer@2.1.2: resolution: {integrity: sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==} dev: true @@ -3492,12 +3432,6 @@ packages: lru-cache: 6.0.0 dev: true - /serialize-javascript@4.0.0: - resolution: {integrity: sha512-GaNA54380uFefWghODBWEGisLZFj00nS5ACs6yHa9nLqlLpVLO8ChDGeKRjZnV4Nh4n0Qi7nhYZD/9fCPzEqkw==} - dependencies: - randombytes: 2.1.0 - dev: true - /set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -3678,17 +3612,6 @@ packages: supports-hyperlinks: 2.3.0 dev: true - /terser@5.30.4: - resolution: {integrity: sha512-xRdd0v64a8mFK9bnsKVdoNP9GQIKUAaJPTaqEQDL4w/J8WaW4sWXXoMZ+6SimPkfT5bElreXf8m9HnmPc3E1BQ==} - engines: {node: '>=10'} - hasBin: true - dependencies: - '@jridgewell/source-map': 0.3.6 - acorn: 8.11.3 - commander: 2.20.3 - source-map-support: 0.5.21 - dev: true - /test-exclude@6.0.0: resolution: {integrity: sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==} engines: {node: '>=8'} @@ -4050,11 +3973,6 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: true - /yaml@1.10.2: - resolution: {integrity: sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==} - engines: {node: '>= 6'} - dev: true - /yargs-parser@20.2.9: resolution: {integrity: sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==} engines: {node: '>=10'} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml deleted file mode 100644 index 8616692..0000000 --- a/pnpm-workspace.yaml +++ /dev/null @@ -1,2 +0,0 @@ -packages: - - "rollup/plugins" diff --git a/rollup.config.js b/rollup.config.js index 344df8d..fa20e9e 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,7 +1,5 @@ -import {yaml} from "./rollup/plugins/lib/index.js" import progress from "rollup-plugin-progress" import resolve from "@rollup/plugin-node-resolve" -import {terser} from "rollup-plugin-terser" import typescript from "@rollup/plugin-typescript" const banner = `/** @@ -9,9 +7,9 @@ const banner = `/** * https://github.com/Luke-zhang-04/processing-vscode * * @license MIT - * @version 2.4.1 + * @version 3.0.0-beta.0 * @preserve - * @copyright (C) 2016 - 2020 Tobiah Zarlez, 2021 Luke Zhang + * @copyright (C) 2016 - 2020 Tobiah Zarlez, 2021-2024 Luke Zhang * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, @@ -38,19 +36,9 @@ const config = { plugins: [ progress(), typescript(), - yaml(), resolve({ resolveOnly: [/^(?!vscode)$/], }), - process.env.NODE_ENV === "dev" - ? undefined - : terser({ - format: { - comments: (_, {value}) => - (/@preserve/.test(value) || !/processing-vscode/iu.test(value)) && - /@preserve|li[cs]ense|copyright/iu.test(value), - }, - }), ], } diff --git a/rollup/plugins/package.json b/rollup/plugins/package.json deleted file mode 100644 index 9735a0e..0000000 --- a/rollup/plugins/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "rollup-plugins", - "version": "0.0.0", - "license": "MIT", - "main": "./lib/index.js", - "scripts": { - "build": "tsc" - }, - "dependencies": { - "@rollup/pluginutils": "^4.1.0", - "js-yaml": "^4.1.0" - }, - "devDependencies": { - "@types/js-yaml": "^4.0.1", - "rollup": "^2.53.0", - "typescript": "^4.3.2" - }, - "types": "./lib/index.d.ts" -} diff --git a/rollup/plugins/src/index.ts b/rollup/plugins/src/index.ts deleted file mode 100644 index aa6ff76..0000000 --- a/rollup/plugins/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export {default as yaml} from "./json-and-yaml" diff --git a/rollup/plugins/src/json-and-yaml.ts b/rollup/plugins/src/json-and-yaml.ts deleted file mode 100644 index bb9e051..0000000 --- a/rollup/plugins/src/json-and-yaml.ts +++ /dev/null @@ -1,140 +0,0 @@ -/** - * @license MIT - * @file improved Version of @rollup/plugin-json and @rollup/plugin-yaml that combines the two and - * provides the option for JSON.stringify() - * @copyright (c) 2019 RollupJS Plugin Contributors - * (https://github.com/rollup/plugins/graphs/contributors), 2021 Luke Zhang - * @see {@link https://github.com/rollup/plugins/tree/master/packages/json} - * @see {@link https://github.com/rollup/plugins/tree/master/packages/yaml} - */ - -import {FilterPattern, createFilter, dataToEsm} from "@rollup/pluginutils" -import yaml from "js-yaml" -import type {PluginFunc} from "./types" - -type ValidYamlType = - | number - | string - | boolean - | null - | undefined - | {[key: string]: ValidYamlType} - | ValidYamlType[] - -type RollupJsonOptions = { - /** - * All JSON and YAML files will be parsed by default, but you can also specifically include files - * - * @default ["**‍/*.json", "**‍/*.y(a)?ml"] - */ - include?: FilterPattern - /** - * All JSON and YAML files will be parsed by default, but you can also specifically exclude files - * - * @default - */ - exclude?: FilterPattern - /** - * For tree-shaking, properties will be declared as variables, using either `var` or `const`. - * - * @default true - */ - preferConst?: boolean - /** - * Specify indentation for the generated default export - * - * @default - */ - indent?: string - /** - * Ignores indent and generates the smallest code - * - * @default false - */ - compact?: boolean - /** - * Generate a named export for every property of the JSON object - * - * @default true - */ - namedExports?: boolean - /** - * Character for when json should be stringified and then parsed at runtime - * - * @default 14 * 1024 (14kb) - * @see {@link https://v8.dev/blog/cost-of-javascript-2019#json} - */ - stringifyLimit?: number - /** - * A function which can optionally mutate parsed YAML. The function should return the mutated - * `object`, or `undefined` which will make no changes to the parsed YAML. - * - * @default undefined - */ - transform?: (data: ValidYamlType, filePath: string) => ValidYamlType | undefined - /** - * - If `single`, specifies that the target YAML documents contain only one document in the target file(s). - * - If more than one [document stream](https://yaml.org/spec/1.2/spec.html#id2801681) exists in - * the target YAML file(s), set `documentMode: 'multi'`. - * - * @default 'single' - */ - documentMode?: "single" | "multi" -} - -const json: PluginFunc = ({ - include = ["**/*.y(a)?ml", "**/*.json"], - exclude, - preferConst = true, - indent = " ", - compact = false, - namedExports = true, - stringifyLimit = 14 * 1024, - transform, - documentMode = "single", -} = {}) => { - const filter = createFilter(include, exclude) - - let loadMethod = (documentMode === "multi" ? yaml.loadAll : yaml.load) as ( - str: string, - iterator?: (doc: any) => void, - opts?: yaml.LoadOptions, - ) => ValidYamlType - - const plugin: ReturnType> = { - name: "json/yaml", - transform(code, id) { - if (!filter(id)) { - return null - } - - try { - const parsed = transform?.(loadMethod(code), id) ?? loadMethod(code) - const stringified = JSON.stringify(parsed, null, 0) - - return { - code: - stringified.length > stringifyLimit - ? `export default JSON.parse(${JSON.stringify(stringified)})` - : dataToEsm(parsed, { - preferConst, - compact, - namedExports, - indent, - }), - map: {mappings: ""}, - } - } catch (err) { - const message = `Could not parse JSON file: ${ - err instanceof Error ? err.toString() : JSON.stringify(err) - }` - - this.error({message, id}) - } - }, - } - - return plugin -} - -export default json diff --git a/rollup/plugins/src/types.ts b/rollup/plugins/src/types.ts deleted file mode 100644 index 2ec8ccf..0000000 --- a/rollup/plugins/src/types.ts +++ /dev/null @@ -1 +0,0 @@ -export type PluginFunc = (options: T) => import("rollup").Plugin | undefined diff --git a/rollup/plugins/tsconfig.json b/rollup/plugins/tsconfig.json deleted file mode 100644 index dd70e67..0000000 --- a/rollup/plugins/tsconfig.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "compilerOptions": { - /* Visit https://aka.ms/tsconfig.json to read more about this file */ - - /* Basic Options */ - // "incremental": true, /* Enable incremental compilation */ - "target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */ - "module": "ES2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ - // "lib": [], /* Specify library files to be included in the compilation. */ - // "allowJs": true, /* Allow javascript files to be compiled. */ - // "checkJs": true, /* Report errors in .js files. */ - // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */ - "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ - // "outFile": "./", /* Concatenate and emit output to single file. */ - "outDir": "./lib", /* Redirect output structure to the directory. */ - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ - // "composite": true, /* Enable project compilation */ - // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ - // "removeComments": true, /* Do not emit comments to output. */ - // "noEmit": true, /* Do not emit outputs. */ - // "importHelpers": true, /* Import emit helpers from 'tslib'. */ - // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ - - /* Strict Type-Checking Options */ - "strict": true, /* Enable all strict type-checking options. */ - "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ - "strictNullChecks": true, /* Enable strict null checks. */ - "strictFunctionTypes": true, /* Enable strict checking of function types. */ - "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ - "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ - "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ - "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - - /* Additional Checks */ - "noUnusedLocals": true, /* Report errors on unused locals. */ - "noUnusedParameters": true, /* Report errors on unused parameters. */ - "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - "noUncheckedIndexedAccess": true, /* Include 'undefined' in index signature results */ - "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an 'override' modifier. */ - "noPropertyAccessFromIndexSignature": false, /* Require undeclared properties from index signatures to use element accesses. */ - - /* Module Resolution Options */ - "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ - // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [], /* List of folders to include type definitions from. */ - // "types": [], /* Type declaration files to be included in compilation. */ - // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ - "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ - - /* Source Map Options */ - // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - - /* Experimental Options */ - // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ - - /* Advanced Options */ - "skipLibCheck": true, /* Skip type checking of declaration files. */ - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ - }, - "include": ["./src"] -} diff --git a/src/commands/index.ts b/src/commands/index.ts index 4904fb3..7f62b38 100644 --- a/src/commands/index.ts +++ b/src/commands/index.ts @@ -1,9 +1,3 @@ -/** - * Processing-vscode - Processing Language Support for VSCode - * - * @copyright (C) 2021 Luke Zhang - */ - import {openDocumentation, openProcessingDocs, searchUnityDocs} from "./search" import {run as runProject} from "./run" import {shouldEnablePython} from "../config" diff --git a/src/commands/run.ts b/src/commands/run.ts index 40d2456..bb29f53 100644 --- a/src/commands/run.ts +++ b/src/commands/run.ts @@ -1,9 +1,3 @@ -/** - * Processing-vscode - Processing Language Support for VSCode - * - * @copyright (C) 2021 Luke Zhang - */ - import { jarPath, javaCommand, diff --git a/src/commands/search.ts b/src/commands/search.ts index 5ac3359..1bca306 100644 --- a/src/commands/search.ts +++ b/src/commands/search.ts @@ -1,9 +1,3 @@ -/** - * Processing-vscode - Processing Language Support for VSCode - * - * @copyright (C) 2016 - 2020 Tobiah Zarlez, 2021 Luke Zhang - */ - import {search} from "../utils" import vscode from "vscode" diff --git a/src/config.ts b/src/config.ts index e1d3ed2..6cea3bf 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,9 +1,3 @@ -/** - * Processing-vscode - Processing Language Support for VSCode - * - * @copyright (C) 2021 Luke Zhang - */ - import {escapeExecutablePath} from "./utils" import vscode from "vscode" diff --git a/src/index.ts b/src/index.ts index 8a478a5..25769ba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,8 @@ /** * Processing-vscode - Processing Language Support for VSCode * - * @version 2.4.1 - * @copyright (C) 2016 - 2020 Tobiah Zarlez, 2021 Luke Zhang + * @version 3.0.0-beta.0 + * @copyright (C) 2016 - 2020 Tobiah Zarlez, 2021-2024 Luke Zhang */ import vscode from "vscode" diff --git a/src/utils/escapePath.ts b/src/utils/escapePath.ts index 2ed40c4..debb3a4 100644 --- a/src/utils/escapePath.ts +++ b/src/utils/escapePath.ts @@ -1,9 +1,3 @@ -/** - * Processing-vscode - Processing Language Support for VSCode - * - * @copyright (C) 2021 Luke Zhang - */ - export const escapeExecutablePath = (pathName: string): string => { if (!/ /gu.test(pathName)) { return pathName diff --git a/src/utils/index.ts b/src/utils/index.ts index 01f34f0..4633939 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,9 +1,3 @@ -/** - * Processing-vscode - Processing Language Support for VSCode - * - * @copyright (C) 2021 Luke Zhang - */ - export * as search from "./search" export {escapeExecutablePath} from "./escapePath" diff --git a/src/utils/search.ts b/src/utils/search.ts index c4f4f10..7a070fc 100644 --- a/src/utils/search.ts +++ b/src/utils/search.ts @@ -1,9 +1,3 @@ -/** - * Processing-vscode - Processing Language Support for VSCode - * - * @copyright (C) 2016 - 2020 Tobiah Zarlez, 2021 Luke Zhang - */ - import type {Documentation} from "../types" import documentation from "../documentation-data.yml" import {searchConfig} from "../config" diff --git a/src/validateCommand.ts b/src/validateCommand.ts index 0d4c905..86f535c 100644 --- a/src/validateCommand.ts +++ b/src/validateCommand.ts @@ -1,8 +1,3 @@ -/** - * Processing-vscode - Processing Language Support for VSCode - * - * @copyright (C) 2021 Luke Zhang - */ import childProcess from "child_process" export const isValidProcessingCommand = async (cmd: string): Promise => {