diff --git a/.eslintrc.json b/.eslintrc.json index afcba93..964aacb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -44,9 +44,12 @@ "!projenrc/**/*.ts" ], "rules": { - "@typescript-eslint/no-require-imports": [ - "error" + "curly": [ + "error", + "multi-line", + "consistent" ], + "@typescript-eslint/no-require-imports": "error", "import/no-extraneous-dependencies": [ "error", { @@ -82,27 +85,12 @@ "no-shadow": [ "off" ], - "@typescript-eslint/no-shadow": [ - "error" - ], - "key-spacing": [ - "error" - ], - "no-multiple-empty-lines": [ - "error" - ], - "@typescript-eslint/no-floating-promises": [ - "error" - ], + "@typescript-eslint/no-shadow": "error", + "@typescript-eslint/no-floating-promises": "error", "no-return-await": [ "off" ], - "@typescript-eslint/return-await": [ - "error" - ], - "no-trailing-spaces": [ - "error" - ], + "@typescript-eslint/return-await": "error", "dot-notation": [ "error" ], diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3b4a0ee..e23baf2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -101,9 +101,7 @@ jobs: - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - GITHUB_REPOSITORY: ${{ github.repository }} - GITHUB_REF: ${{ github.sha }} - run: errout=$(mktemp); gh release create $(cat dist/releasetag.txt) -R $GITHUB_REPOSITORY -F dist/changelog.md -t $(cat dist/releasetag.txt) --target $GITHUB_REF 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi + run: errout=$(mktemp); gh release create $(cat dist/releasetag.txt) -R $GITHUB_REPOSITORY -F dist/changelog.md -t $(cat dist/releasetag.txt) --target $GITHUB_SHA 2> $errout && true; exitcode=$?; if [ $exitcode -ne 0 ] && ! grep -q "Release.tag_name already exists" $errout; then cat $errout; exit $exitcode; fi release_npm: name: Publish to npm needs: release diff --git a/.projen/deps.json b/.projen/deps.json index d6c14e3..6112b50 100644 --- a/.projen/deps.json +++ b/.projen/deps.json @@ -89,12 +89,12 @@ }, { "name": "jsii-rosetta", - "version": "~5.7.0", + "version": "~5.8.0", "type": "build" }, { "name": "jsii", - "version": "~5.7.0", + "version": "~5.8.0", "type": "build" }, { diff --git a/.projen/tasks.json b/.projen/tasks.json index 1d05144..884c976 100644 --- a/.projen/tasks.json +++ b/.projen/tasks.json @@ -181,7 +181,7 @@ "description": "Create js language bindings", "steps": [ { - "exec": "jsii-pacmak -v --pack-command 'pnpm pack' --target js" + "exec": "jsii-pacmak -v --pack-command \"pnpm pack\" --target js" } ] }, diff --git a/package.json b/package.json index a22f4f5..d448f5a 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ }, "devDependencies": { "@aws-cdk/integ-tests-alpha": "^2.87.0-alpha.0", - "@time-loop/clickup-projen": "^1.18.0", + "@time-loop/clickup-projen": "^1.19.17", "@types/aws-lambda": "^8.10.136", "@types/jest": "^29.5.12", "@types/node": "^18", @@ -53,15 +53,15 @@ "eslint-plugin-prettier": "^5.1.3", "jest": "^29.7.0", "jest-junit": "^16", - "jsii": "~5.7.0", + "jsii": "~5.8.0", "jsii-diff": "^1.95.0", "jsii-docgen": "^10.5.0", "jsii-pacmak": "^1.95.0", "jsii-release": "^0.2.803", - "jsii-rosetta": "~5.7.0", + "jsii-rosetta": "~5.8.0", "multi-convention-namer": "0.1.15", "prettier": "^3.2.5", - "projen": "^0.91.8", + "projen": "^0.92.10", "ts-jest": "^29.1.2", "ts-node": "^10", "typescript": "~5.7.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f990f48..8506a6b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,8 +25,8 @@ importers: specifier: ^2.87.0-alpha.0 version: 2.87.0-alpha.0(aws-cdk-lib@2.87.0(constructs@10.0.5))(constructs@10.0.5) '@time-loop/clickup-projen': - specifier: ^1.18.0 - version: 1.18.0(projen@0.91.8(constructs@10.0.5)) + specifier: ^1.19.17 + version: 1.19.17(projen@0.92.10(constructs@10.0.5)) '@types/aws-lambda': specifier: ^8.10.136 version: 8.10.137 @@ -76,23 +76,23 @@ importers: specifier: ^16 version: 16.0.0 jsii: - specifier: ~5.7.0 - version: 5.7.5 + specifier: ~5.8.0 + version: 5.8.16 jsii-diff: specifier: ^1.95.0 version: 1.98.0 jsii-docgen: specifier: ^10.5.0 - version: 10.6.6(jsii-rosetta@5.7.4) + version: 10.6.6(jsii-rosetta@5.8.13) jsii-pacmak: specifier: ^1.95.0 - version: 1.98.0(jsii-rosetta@5.7.4) + version: 1.98.0(jsii-rosetta@5.8.13) jsii-release: specifier: ^0.2.803 version: 0.2.832(@aws-sdk/client-sso-oidc@3.574.0) jsii-rosetta: - specifier: ~5.7.0 - version: 5.7.4 + specifier: ~5.8.0 + version: 5.8.13 multi-convention-namer: specifier: 0.1.15 version: 0.1.15 @@ -100,8 +100,8 @@ importers: specifier: ^3.2.5 version: 3.2.5 projen: - specifier: ^0.91.8 - version: 0.91.8(constructs@10.0.5) + specifier: ^0.92.10 + version: 0.92.10(constructs@10.0.5) ts-jest: specifier: ^29.1.2 version: 29.1.2(@babel/core@7.24.5)(@jest/types@29.6.3)(babel-jest@29.7.0(@babel/core@7.24.5))(esbuild@0.20.2)(jest@29.7.0(@types/node@18.19.33)(ts-node@10.9.2(@types/node@18.19.33)(typescript@5.7.3)))(typescript@5.7.3) @@ -828,6 +828,10 @@ packages: resolution: {integrity: sha512-/T/TUsbHdEbZRFR4Rem9+UXVvgMYncEkrIeC52oIHJ8BDSgqlDsIARio/Eu5DOftF4avSLV/sshR6n19mpK1oA==} engines: {node: '>= 14.17.0'} + '@jsii/check-node@1.112.0': + resolution: {integrity: sha512-ySf6hMcWvWrMtMLKEiBN6QN46oWqKfJtOHCdy13iQXTI38SuI9Lp2PaYMLcsN10fTOvLjhbYm3jAu48xwrsKAQ==} + engines: {node: '>= 14.17.0'} + '@jsii/check-node@1.98.0': resolution: {integrity: sha512-hI53TMW/fylHyY3CrJvqWvfSPJvBL82GSAB1m2CKNC0yHb0pZHCdBZnLrrr4rgTCQx8kIJjcUc0rQ/Ba3w+GaA==} engines: {node: '>= 14.17.0'} @@ -836,6 +840,10 @@ packages: resolution: {integrity: sha512-pAIvqEGf0YLmtzFtUKWNEGkCmXMHENy7k+rzCD147wnM4jHhvEL1mEvxi99aA2VcmvLYaAYNOs/XozT+s+kLqQ==} engines: {node: '>= 14.17.0'} + '@jsii/spec@1.113.0': + resolution: {integrity: sha512-OAQNfJHzMmE42ySJpelOFFKCgnh6hxcKLnmgtaYEzsFW9UxH9gc945FFOXff52GbhUcigGElCqJ3MclrbgXoGw==} + engines: {node: '>= 14.17.0'} + '@jsii/spec@1.98.0': resolution: {integrity: sha512-5FCJedjFrxKt0wrcSnXetHHTXQV6OQM2NlE/WJNvjwqlk+RYfw+BwZOBYHsoaQx1Qh0pTwN7ZM9WmEusN3GdNw==} engines: {node: '>= 14.17.0'} @@ -1017,11 +1025,11 @@ packages: resolution: {integrity: sha512-R8Rdn8Hy72KKcebgLiv8jQcQkXoLMOGGv5uI1/k0l+snqkOzQ1R0ChUBCxWMlBsFMekWjq0wRudIweFs7sKT5A==} engines: {node: '>=14.0.0'} - '@time-loop/clickup-projen@1.18.0': - resolution: {integrity: sha512-7beu+bji9ZA5rL43PYTUtlR05e8Ym6fNUo1xvFErvGbFwcCF8fXb1F9g1aGf5cM6slaDoK+YyH/Rz7b6OhJLbg==, tarball: https://npm.pkg.github.com/download/@time-loop/clickup-projen/1.18.0/c937717781af6d2f345d2d1910aacb7ed7804df8} + '@time-loop/clickup-projen@1.19.17': + resolution: {integrity: sha512-MwCdSwvO7fPnaR8Km9iwvJ9Lc8YpuDLv4kdEHZr9fnW2fhiaax8Fkzro3jvsyh/s1QbVjckePKHaCky9vZ1f0g==, tarball: https://npm.pkg.github.com/download/@time-loop/clickup-projen/1.19.17/f504f0481c414b340aa6b823364cbaaf93f6a661} engines: {node: '>= 18.17.1'} peerDependencies: - projen: ^0.91.7 + projen: ^0.92.8 bundledDependencies: - cson-parser - semver @@ -1146,8 +1154,8 @@ packages: resolution: {integrity: sha512-kArLq83QxGLbuHrTMoOEWO+l2MwsNS2TGISEdx8xgqpkbytB07XmlQyQdNDrCc1ecSqx0cnmhGvpX+VBwqqSkg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@xmldom/xmldom@0.9.7': - resolution: {integrity: sha512-syvR8iIJjpTZ/stv7l89UAViwGFh6lbheeOaqSxkYx9YNmIVvPTRH+CT/fpykFtUx5N+8eSMDRvggF9J8GEPzQ==} + '@xmldom/xmldom@0.9.8': + resolution: {integrity: sha512-p96FSY54r+WJ50FIOsCOjyj/wavs8921hG5+kVMmZgKcvIKxMXHTrjNJvRgWa/zuX3B6t2lijLNFaOyuxUH+2A==} engines: {node: '>=14.6'} JSONStream@1.3.5: @@ -1452,7 +1460,6 @@ packages: constructs@10.0.5: resolution: {integrity: sha512-IwOwekzrASFC3qt4ozCtV09rteAIAesuCGsW0p+uBfqHd2XcvA5CXqJjgf4eUqm6g8e/noXlVCMDWwC8GaLtrg==} engines: {node: '>= 10.17.0'} - bundledDependencies: [] conventional-changelog-angular@6.0.0: resolution: {integrity: sha512-6qLgrBF4gueoC7AFVHu51nHL9pF9FRjXrH+ceVf7WmAfH3gs+gEYOkvxhjMPjZu57I4AGUGoNTY8V7Hrgf1uqg==} @@ -2507,13 +2514,13 @@ packages: resolution: {integrity: sha512-etSWdkKflg0GqB9K0b2l3b4q2S7bMqZD3R+0W2QFkczeXkPurKGbXM/Y+zo4YcO3+ZIHQO4DPFWQtv5RnKtlQg==} hasBin: true - jsii-rosetta@5.7.4: - resolution: {integrity: sha512-7wBOpEWUofrdxn+9iG2GW85fZ6M+LDjJDm3pG5eTvbPOK0ip5u7ec4C3ZhTkuAh/z22Xo29+qNndvUI169siyg==} + jsii-rosetta@5.8.13: + resolution: {integrity: sha512-nOhl5H40fl0djG1a5xwjXdx/ysGx4blUcD+RjARaAw/k9b7zR7MPsGCLqw7mAW8LMuQFUF27c69R+4QLAmdfRA==} engines: {node: '>= 18.12.0'} hasBin: true - jsii@5.7.5: - resolution: {integrity: sha512-3cEcpDjiA3bunGbEejnst43y7Oi/MoQECaAcj+m6Pn3JJhk1DZY0M+SuOlKv2z8FxPR1ODf7+ZdwXZOMj5xVMg==} + jsii@5.8.16: + resolution: {integrity: sha512-22Ax6rHg+EDiGfzIP7XtUbrD6Tszhe7o0ws3SfDROkCPKFOiSy73I3tQNP182e1C3zLXemja2WQ3DYIE+sCZew==} engines: {node: '>= 18.12.0'} hasBin: true @@ -2937,8 +2944,8 @@ packages: process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} - projen@0.91.8: - resolution: {integrity: sha512-TWpxSiv3ZkJoZ2Y0hjnjwmKLlUnxmbPANmQ8yDdUeE6LIYoPmfU0Zw0ijNDI3uTq0BjIz5mFDkic94RW/1Hguw==} + projen@0.92.10: + resolution: {integrity: sha512-c60xtQbkPt1tseUhMdCCUURdzcYaV5/Z5OxLJlNQzONwh/0VmpHKEW/creY8X7tw8hk4WgtMKhwisajJHkcf0Q==} engines: {node: '>= 16.0.0'} hasBin: true peerDependencies: @@ -2952,6 +2959,7 @@ packages: - fast-json-patch - glob - ini + - parse-conflict-json - semver - shx - xmlbuilder2 @@ -3107,6 +3115,11 @@ packages: engines: {node: '>=10'} hasBin: true + semver@7.7.2: + resolution: {integrity: sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==} + engines: {node: '>=10'} + hasBin: true + set-function-length@1.2.2: resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} @@ -3163,6 +3176,10 @@ packages: spdx-license-ids@3.0.17: resolution: {integrity: sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg==} + spdx-license-list@6.10.0: + resolution: {integrity: sha512-wF3RhDFoqdu14d1Prv6c8aNU0FSRuSFJpNjWeygIZcNZEwPxp7I5/Hwo8j6lSkBKWAIkSQrKefrC5N0lvOP0Gw==} + engines: {node: '>=8'} + spdx-license-list@6.9.0: resolution: {integrity: sha512-L2jl5vc2j6jxWcNCvcVj/BW9A8yGIG02Dw+IUw0ZxDM70f7Ylf5Hq39appV1BI9yxyWQRpq2TQ1qaXvf+yjkqA==} engines: {node: '>=8'} @@ -3417,6 +3434,11 @@ packages: engines: {node: '>=14.17'} hasBin: true + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} + engines: {node: '>=14.17'} + hasBin: true + uglify-js@3.17.4: resolution: {integrity: sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==} engines: {node: '>=0.8.0'} @@ -4712,6 +4734,11 @@ snapshots: chalk: 4.1.2 semver: 7.7.1 + '@jsii/check-node@1.112.0': + dependencies: + chalk: 4.1.2 + semver: 7.7.2 + '@jsii/check-node@1.98.0': dependencies: chalk: 4.1.2 @@ -4721,6 +4748,10 @@ snapshots: dependencies: ajv: 8.17.1 + '@jsii/spec@1.113.0': + dependencies: + ajv: 8.17.1 + '@jsii/spec@1.98.0': dependencies: ajv: 8.13.0 @@ -4999,9 +5030,9 @@ snapshots: '@smithy/util-buffer-from': 2.2.0 tslib: 2.6.2 - '@time-loop/clickup-projen@1.18.0(projen@0.91.8(constructs@10.0.5))': + '@time-loop/clickup-projen@1.19.17(projen@0.92.10(constructs@10.0.5))': dependencies: - projen: 0.91.8(constructs@10.0.5) + projen: 0.92.10(constructs@10.0.5) '@tsconfig/node10@1.0.11': {} @@ -5156,7 +5187,7 @@ snapshots: '@typescript-eslint/types': 8.24.0 eslint-visitor-keys: 4.2.0 - '@xmldom/xmldom@0.9.7': {} + '@xmldom/xmldom@0.9.8': {} JSONStream@1.3.5: dependencies: @@ -6870,7 +6901,7 @@ snapshots: transitivePeerDependencies: - supports-color - jsii-docgen@10.6.6(jsii-rosetta@5.7.4): + jsii-docgen@10.6.6(jsii-rosetta@5.8.13): dependencies: '@jsii/spec': 1.106.0 case: 1.6.3 @@ -6878,11 +6909,11 @@ snapshots: glob: 8.1.0 glob-promise: 6.0.7(glob@8.1.0) jsii-reflect: 1.106.0 - jsii-rosetta: 5.7.4 + jsii-rosetta: 5.8.13 semver: 7.7.1 yargs: 16.2.0 - jsii-pacmak@1.98.0(jsii-rosetta@5.7.4): + jsii-pacmak@1.98.0(jsii-rosetta@5.8.13): dependencies: '@jsii/check-node': 1.98.0 '@jsii/spec': 1.98.0 @@ -6892,7 +6923,7 @@ snapshots: escape-string-regexp: 4.0.0 fs-extra: 10.1.0 jsii-reflect: 1.98.0 - jsii-rosetta: 5.7.4 + jsii-rosetta: 5.8.13 semver: 7.6.2 spdx-license-list: 6.9.0 xmlbuilder: 15.1.1 @@ -6931,37 +6962,37 @@ snapshots: - '@aws-sdk/client-sso-oidc' - aws-crt - jsii-rosetta@5.7.4: + jsii-rosetta@5.8.13: dependencies: - '@jsii/check-node': 1.106.0 - '@jsii/spec': 1.106.0 - '@xmldom/xmldom': 0.9.7 + '@jsii/check-node': 1.112.0 + '@jsii/spec': 1.113.0 + '@xmldom/xmldom': 0.9.8 chalk: 4.1.2 commonmark: 0.31.2 fast-glob: 3.3.3 - jsii: 5.7.5 - semver: 7.7.1 + jsii: 5.8.16 + semver: 7.7.2 semver-intersect: 1.5.0 stream-json: 1.9.1 - typescript: 5.7.3 + typescript: 5.8.3 workerpool: 6.5.1 yargs: 17.7.2 transitivePeerDependencies: - supports-color - jsii@5.7.5: + jsii@5.8.16: dependencies: - '@jsii/check-node': 1.106.0 - '@jsii/spec': 1.106.0 + '@jsii/check-node': 1.112.0 + '@jsii/spec': 1.113.0 case: 1.6.3 chalk: 4.1.2 fast-deep-equal: 3.1.3 log4js: 6.9.1 - semver: 7.7.1 + semver: 7.7.2 semver-intersect: 1.5.0 sort-json: 2.0.1 - spdx-license-list: 6.9.0 - typescript: 5.7.3 + spdx-license-list: 6.10.0 + typescript: 5.8.3 yargs: 17.7.2 transitivePeerDependencies: - supports-color @@ -7353,7 +7384,7 @@ snapshots: process-nextick-args@2.0.1: {} - projen@0.91.8(constructs@10.0.5): + projen@0.92.10(constructs@10.0.5): dependencies: constructs: 10.0.5 @@ -7499,6 +7530,8 @@ snapshots: semver@7.7.1: {} + semver@7.7.2: {} + set-function-length@1.2.2: dependencies: define-data-property: 1.1.4 @@ -7563,6 +7596,8 @@ snapshots: spdx-license-ids@3.0.17: {} + spdx-license-list@6.10.0: {} + spdx-license-list@6.9.0: {} split2@3.2.2: @@ -7816,6 +7851,8 @@ snapshots: typescript@5.7.3: {} + typescript@5.8.3: {} + uglify-js@3.17.4: optional: true diff --git a/renovate.json5 b/renovate.json5 index 0be1465..15d2d17 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -7,20 +7,18 @@ "before 2am on Monday" ], "extends": [ - "config:base", + "config:recommended", "group:recommended", "group:monorepos", - "github>whitesource/merge-confidence:beta" + "mergeConfidence:all-badges" ], "packageRules": [ { "groupName": "all non-major dependencies", "groupSlug": "all-minor-patch", - "matchPackagePatterns": [ - "*" - ], - "excludePackagePatterns": [ - "^@time-loop\\/clickup-projen" + "matchPackageNames": [ + "*", + "!/^@time-loop\\/clickup-projen/" ], "matchUpdateTypes": [ "minor", @@ -37,14 +35,14 @@ ] }, { - "matchPackagePatterns": [ - "^@time-loop\\/clickup-projen" + "matchPackageNames": [ + "/^@time-loop\\/clickup-projen/" ], "allowedVersions": "!/^[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?-(alpha|beta).*$/" }, { - "matchPackagePrefixes": [ - "@time-loop/" + "matchPackageNames": [ + "@time-loop/{/,}**" ], "matchUpdateTypes": [ "major" @@ -72,6 +70,7 @@ "constructs", "node", "@time-loop/clickup-projen", + "pnpm", "projen" ], "rangeStrategy": "bump", diff --git a/tsconfig.dev.json b/tsconfig.dev.json index da832d0..48eb4b9 100644 --- a/tsconfig.dev.json +++ b/tsconfig.dev.json @@ -8,7 +8,7 @@ "inlineSourceMap": true, "inlineSources": true, "lib": [ - "es2019" + "es2020" ], "module": "CommonJS", "noEmitOnError": false, @@ -23,7 +23,7 @@ "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, - "target": "ES2019" + "target": "ES2020" }, "include": [ "src/**/*.ts",