diff --git a/.github/workflows/applications.yml b/.github/workflows/applications.yml index 9c87c707c..582d1aeb9 100644 --- a/.github/workflows/applications.yml +++ b/.github/workflows/applications.yml @@ -79,9 +79,9 @@ jobs: uses: actions/cache@v2 with: path: | - ~/.cache/Cypress/10.7.x + ~/.cache/Cypress/10.9.x ~/.cache/Cypress/cy - key: ${{ runner.os }}-cypress-10.7.x + key: ${{ runner.os }}-cypress-10.9.x - name: Retrieve saved Svelte Docker Image uses: actions/download-artifact@v2 with: @@ -180,7 +180,7 @@ jobs: - uses: actions/setup-java@v1 with: java-version: '11' - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node_version }} - name: Gradle - Configure cache @@ -201,9 +201,9 @@ jobs: uses: actions/cache@v2 with: path: | - ~/.cache/Cypress/10.7.x + ~/.cache/Cypress/10.9.x ~/.cache/Cypress/cy - key: ${{ runner.os }}-cypress-10.7.x + key: ${{ runner.os }}-cypress-10.9.x - name: Retrieve saved Svelte Docker Image uses: actions/download-artifact@v2 with: @@ -307,7 +307,7 @@ jobs: - uses: actions/setup-java@v1 with: java-version: '11' - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node_version }} - name: Gradle - Configure cache @@ -328,9 +328,9 @@ jobs: uses: actions/cache@v2 with: path: | - ~/.cache/Cypress/10.7.x + ~/.cache/Cypress/10.9.x ~/.cache/Cypress/cy - key: ${{ runner.os }}-cypress-10.7.x + key: ${{ runner.os }}-cypress-10.9.x - name: Retrieve saved Svelte Docker Image uses: actions/download-artifact@v2 with: @@ -462,7 +462,7 @@ jobs: - uses: actions/setup-java@v1 with: java-version: '11' - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node_version }} - name: Maven - Configure cache @@ -475,9 +475,9 @@ jobs: uses: actions/cache@v2 with: path: | - ~/.cache/Cypress/10.7.x + ~/.cache/Cypress/10.9.x ~/.cache/Cypress/cy - key: ${{ runner.os }}-cypress-10.7.x + key: ${{ runner.os }}-cypress-10.9.x - name: Retrieve saved Svelte Docker Image uses: actions/download-artifact@v2 with: diff --git a/.github/workflows/generator.yml b/.github/workflows/generator.yml index c9fb59169..a5a5ab06b 100644 --- a/.github/workflows/generator.yml +++ b/.github/workflows/generator.yml @@ -20,7 +20,7 @@ jobs: os: [ubuntu-latest] steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: ${{ matrix.node_version }} - run: npm ci diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87ba11b55..300535098 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,7 +10,7 @@ jobs: steps: - name: Checkout svelte generator repository uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: '16.16' registry-url: 'https://registry.npmjs.org' @@ -54,7 +54,7 @@ jobs: strategy: fail-fast: true steps: - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: '16.x' - name: Checkout svelte generator repository @@ -82,5 +82,5 @@ jobs: git config user.name "Vishal Mahajan" git config user.email vishal423@gmail.com git add . - git commit -m "Generated by JHipster v7.9.3 and Svelte blueprint v0.10.1" + git commit -m "Generated by JHipster v7.9.3 and Svelte blueprint v0.10.2" git push diff --git a/.github/workflows/scripts/sample-svelte-app.json b/.github/workflows/scripts/sample-svelte-app.json index 5c76f7109..2ce5ddf6a 100644 --- a/.github/workflows/scripts/sample-svelte-app.json +++ b/.github/workflows/scripts/sample-svelte-app.json @@ -18,7 +18,7 @@ "websocket": false, "databaseType": "sql", "devDatabaseType": "h2Disk", - "prodDatabaseType": "mysql", + "prodDatabaseType": "postgresql", "searchEngine": false, "messageBroker": false, "serviceDiscoveryType": false, diff --git a/CHANGELOG.md b/CHANGELOG.md index c1476d159..ecaf86fcc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ ## Current +## [0.10.2] - 2022-10-2 + +### Changed + +- ✅ Upgrade `Cypress` dependency to `10.9.x`. Use `cacheAcrossSpecs` option to cache session across specs [#1416](https://github.com/jhipster/generator-jhipster-svelte/pull/1416) +- ✅ Upgrade `Svelte/Kit`, `Eslint` and other third party dependencies [#1416](https://github.com/jhipster/generator-jhipster-svelte/pull/1416) + ## [0.10.1] - 2022-09-11 ### Fixed diff --git a/Dockerfile-release b/Dockerfile-release index 34ff57cbb..7131df139 100644 --- a/Dockerfile-release +++ b/Dockerfile-release @@ -53,7 +53,7 @@ RUN \ && echo PATH="$NPM_PATH/bin:$PATH" >> "$HOME/.profile" \ && . "$HOME/.profile" -RUN npm install -g --no-audit --quiet generator-jhipster-svelte@0.10.1 +RUN npm install -g --no-audit --quiet generator-jhipster-svelte@0.10.2 WORKDIR $APP_PATH diff --git a/generators/client/templates/svelte/cypress/support/commands.js.ejs b/generators/client/templates/svelte/cypress/support/commands.js.ejs index 7acf4ed94..63c282bba 100644 --- a/generators/client/templates/svelte/cypress/support/commands.js.ejs +++ b/generators/client/templates/svelte/cypress/support/commands.js.ejs @@ -58,6 +58,7 @@ Cypress.Commands.add('loginByApi', (username, password) => { validate() { cy.request({ url: `api/account`, failOnStatusCode: false }).its('status').should('eq', 200) }, + cacheAcrossSpecs: true, } ) }) @@ -102,6 +103,7 @@ Cypress.Commands.add('loginByApi', (username, password) => { .its('status') .should('eq', 200) }, + cacheAcrossSpecs: true, } ) }) @@ -182,6 +184,7 @@ Cypress.Commands.add('loginByApi', (username, password) => { .its('status') .should('eq', 200) }, + cacheAcrossSpecs: true, } ) }) diff --git a/generators/client/templates/svelte/package.json b/generators/client/templates/svelte/package.json index 2f1a3c9dd..4bc22361f 100644 --- a/generators/client/templates/svelte/package.json +++ b/generators/client/templates/svelte/package.json @@ -1,37 +1,37 @@ { "dependencies": { - "date-fns": "2.29.2", + "date-fns": "2.29.3", "@fortawesome/free-solid-svg-icons": "6.2.0" }, "devDependencies": { - "@sveltejs/adapter-static": "1.0.0-next.42", - "@sveltejs/kit": "1.0.0-next.474", + "@sveltejs/adapter-static": "1.0.0-next.43", + "@sveltejs/kit": "1.0.0-next.506", "@testing-library/jest-dom": "5.16.5", "@testing-library/svelte": "3.2.1", - "autoprefixer": "10.4.8", + "autoprefixer": "10.4.12", "cross-env": "7.0.3", - "cypress": "10.7.0", - "esbuild": "0.15.7", - "eslint": "8.23.0", + "cypress": "10.9.0", + "esbuild": "0.15.10", + "eslint": "8.24.0", "eslint-plugin-cypress": "2.12.1", "eslint-plugin-jest-dom": "4.0.2", "eslint-plugin-svelte3": "4.0.0", - "eslint-plugin-testing-library": "5.6.2", + "eslint-plugin-testing-library": "5.7.0", "husky": "8.0.1", - "jest": "29.0.2", - "jest-environment-jsdom": "29.0.2", + "jest": "29.1.2", + "jest-environment-jsdom": "29.1.2", "jest-junit": "14.0.1", "jest-sonar": "0.2.12", "jest-svelte-resolver": "1.0.0", - "jhipster-svelte-library": "0.9.1", - "postcss": "8.4.16", + "jhipster-svelte-library": "0.9.2", + "postcss": "8.4.17", "prettier": "2.7.1", - "prettier-plugin-svelte": "2.7.0", + "prettier-plugin-svelte": "2.7.1", "pretty-quick": "3.1.3", "rimraf": "3.0.2", "svelte": "3.50.1", "svelte-jester": "2.3.2", "tailwindcss": "3.1.8", - "vite": "3.1.0" + "vite": "3.1.4" } } diff --git a/generators/client/templates/svelte/svelte.config.js.ejs b/generators/client/templates/svelte/svelte.config.js.ejs index 0c9a07111..9e617559c 100644 --- a/generators/client/templates/svelte/svelte.config.js.ejs +++ b/generators/client/templates/svelte/svelte.config.js.ejs @@ -11,7 +11,6 @@ const config = { appDir: '_app', files: { assets: '<%= CLIENT_MAIN_SRC_DIR %>static', - hooks: '<%= CLIENT_MAIN_SRC_DIR %>hooks', lib: '<%= CLIENT_MAIN_SRC_DIR %>app/lib', routes: '<%= CLIENT_MAIN_SRC_DIR %>app/routes', serviceWorker: '<%= CLIENT_MAIN_SRC_DIR %>app/service-worker', diff --git a/generators/client/templates/svelte/swagger/package.json b/generators/client/templates/svelte/swagger/package.json index d132e5f36..16e23f102 100644 --- a/generators/client/templates/svelte/swagger/package.json +++ b/generators/client/templates/svelte/swagger/package.json @@ -1,6 +1,6 @@ { "dependencies": { - "swagger-ui-dist": "4.14.0" + "swagger-ui-dist": "4.14.2" }, "devDependencies": { "rollup-plugin-copy": "3.4.0" diff --git a/package-lock.json b/package-lock.json index ab2f98446..0ef72a154 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,18 +1,18 @@ { "name": "generator-jhipster-svelte", - "version": "0.10.1", + "version": "0.10.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "generator-jhipster-svelte", - "version": "0.10.1", + "version": "0.10.2", "license": "Apache-2.0", "dependencies": { "chalk": "4.1.2", "generator-jhipster": "7.9.3", "prettier": "2.7.1", - "prettier-plugin-svelte": "2.7.0", + "prettier-plugin-svelte": "2.7.1", "semver": "7.3.7" }, "bin": { @@ -20,7 +20,7 @@ }, "devDependencies": { "ejs-lint": "1.2.2", - "eslint": "8.23.0", + "eslint": "8.24.0", "eslint-config-airbnb-base": "15.0.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.26.0", @@ -176,9 +176,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.1.tgz", - "integrity": "sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.2.tgz", + "integrity": "sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==", "dev": true, "dependencies": { "ajv": "^6.12.4", @@ -209,9 +209,9 @@ "integrity": "sha512-82cpyJyKRoQoRi+14ibCeGPu0CwypgtBAdBhq1WfvagpCZNKqwXbKwXllYSMG91DhmG4jt9gN8eP6lGOtozuaw==" }, "node_modules/@humanwhocodes/config-array": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", - "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.5.tgz", + "integrity": "sha512-XVVDtp+dVvRxMoxSiSfasYaG02VEe1qH5cKgMQJWhol6HwzbcqoCMJi8dAGoYAO57jhUyhI6cWuRiTcRaDaYug==", "dev": true, "dependencies": { "@humanwhocodes/object-schema": "^1.2.1", @@ -2112,13 +2112,13 @@ } }, "node_modules/eslint": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.23.0.tgz", - "integrity": "sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA==", + "version": "8.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz", + "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.3.1", - "@humanwhocodes/config-array": "^0.10.4", + "@eslint/eslintrc": "^1.3.2", + "@humanwhocodes/config-array": "^0.10.5", "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", "@humanwhocodes/module-importer": "^1.0.1", "ajv": "^6.10.0", @@ -2136,7 +2136,6 @@ "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", - "functional-red-black-tree": "^1.0.1", "glob-parent": "^6.0.1", "globals": "^13.15.0", "globby": "^11.1.0", @@ -2145,6 +2144,7 @@ "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", + "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", @@ -2943,12 +2943,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, "node_modules/functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -4091,6 +4085,12 @@ "node": ">= 0.6.0" } }, + "node_modules/js-sdsl": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.4.tgz", + "integrity": "sha512-Y2/yD55y5jteOAmY50JbUZYwk3CP3wnLPEZnlR1w9oKhITrBEtAxwuWKebFf8hMrPMgbYwFoWK/lH2sBkErELw==", + "dev": true + }, "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -5740,9 +5740,9 @@ } }, "node_modules/prettier-plugin-svelte": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.0.tgz", - "integrity": "sha512-fQhhZICprZot2IqEyoiUYLTRdumULGRvw0o4dzl5jt0jfzVWdGqeYW27QTWAeXhoupEZJULmNoH3ueJwUWFLIA==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.1.tgz", + "integrity": "sha512-H33qjhCBZyd9Zr1A5hUAYDh7j0Mf97uvy7XcA7CP4nNSYrNcPvBUf7wI8K9NptWTIs0S41QtgTWmJIUiGlEBtw==", "peerDependencies": { "prettier": "^1.16.4 || ^2.0.0", "svelte": "^3.2.0" @@ -8326,9 +8326,9 @@ } }, "@eslint/eslintrc": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.1.tgz", - "integrity": "sha512-OhSY22oQQdw3zgPOOwdoj01l/Dzl1Z+xyUP33tkSN+aqyEhymJCcPHyXt+ylW8FSe0TfRC2VG+ROQOapD0aZSQ==", + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.2.tgz", + "integrity": "sha512-AXYd23w1S/bv3fTs3Lz0vjiYemS08jWkI3hYyS9I1ry+0f+Yjs1wm+sU0BS8qDOPrBIkp4qHYC16I8uVtpLajQ==", "dev": true, "requires": { "ajv": "^6.12.4", @@ -8353,9 +8353,9 @@ "integrity": "sha512-82cpyJyKRoQoRi+14ibCeGPu0CwypgtBAdBhq1WfvagpCZNKqwXbKwXllYSMG91DhmG4jt9gN8eP6lGOtozuaw==" }, "@humanwhocodes/config-array": { - "version": "0.10.4", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.4.tgz", - "integrity": "sha512-mXAIHxZT3Vcpg83opl1wGlVZ9xydbfZO3r5YfRSH6Gpp2J/PfdBP0wbDa2sO6/qRbcalpoevVyW6A/fI6LfeMw==", + "version": "0.10.5", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.10.5.tgz", + "integrity": "sha512-XVVDtp+dVvRxMoxSiSfasYaG02VEe1qH5cKgMQJWhol6HwzbcqoCMJi8dAGoYAO57jhUyhI6cWuRiTcRaDaYug==", "dev": true, "requires": { "@humanwhocodes/object-schema": "^1.2.1", @@ -9895,13 +9895,13 @@ "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==" }, "eslint": { - "version": "8.23.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.23.0.tgz", - "integrity": "sha512-pBG/XOn0MsJcKcTRLr27S5HpzQo4kLr+HjLQIyK4EiCsijDl/TB+h5uEuJU6bQ8Edvwz1XWOjpaP2qgnXGpTcA==", + "version": "8.24.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.24.0.tgz", + "integrity": "sha512-dWFaPhGhTAiPcCgm3f6LI2MBWbogMnTJzFBbhXVRQDJPkr9pGZvVjlVfXd+vyDcWPA2Ic9L2AXPIQM0+vk/cSQ==", "dev": true, "requires": { - "@eslint/eslintrc": "^1.3.1", - "@humanwhocodes/config-array": "^0.10.4", + "@eslint/eslintrc": "^1.3.2", + "@humanwhocodes/config-array": "^0.10.5", "@humanwhocodes/gitignore-to-minimatch": "^1.0.2", "@humanwhocodes/module-importer": "^1.0.1", "ajv": "^6.10.0", @@ -9919,7 +9919,6 @@ "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", - "functional-red-black-tree": "^1.0.1", "glob-parent": "^6.0.1", "globals": "^13.15.0", "globby": "^11.1.0", @@ -9928,6 +9927,7 @@ "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", + "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", @@ -10530,12 +10530,6 @@ "functions-have-names": "^1.2.2" } }, - "functional-red-black-tree": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz", - "integrity": "sha1-GwqzvVU7Kg1jmdKcDj6gslIHgyc=", - "dev": true - }, "functions-have-names": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", @@ -11359,6 +11353,12 @@ "resolved": "https://registry.npmjs.org/jmespath/-/jmespath-0.16.0.tgz", "integrity": "sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw==" }, + "js-sdsl": { + "version": "4.1.4", + "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.1.4.tgz", + "integrity": "sha512-Y2/yD55y5jteOAmY50JbUZYwk3CP3wnLPEZnlR1w9oKhITrBEtAxwuWKebFf8hMrPMgbYwFoWK/lH2sBkErELw==", + "dev": true + }, "js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", @@ -12609,9 +12609,9 @@ } }, "prettier-plugin-svelte": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.0.tgz", - "integrity": "sha512-fQhhZICprZot2IqEyoiUYLTRdumULGRvw0o4dzl5jt0jfzVWdGqeYW27QTWAeXhoupEZJULmNoH3ueJwUWFLIA==", + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/prettier-plugin-svelte/-/prettier-plugin-svelte-2.7.1.tgz", + "integrity": "sha512-H33qjhCBZyd9Zr1A5hUAYDh7j0Mf97uvy7XcA7CP4nNSYrNcPvBUf7wI8K9NptWTIs0S41QtgTWmJIUiGlEBtw==", "requires": {} }, "pretty-bytes": { diff --git a/package.json b/package.json index 41282b79a..669e735d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "generator-jhipster-svelte", - "version": "0.10.1", + "version": "0.10.2", "description": "A svelte.js blueprint to generate cybernetically enhanced web applications.", "keywords": [ "yeoman-generator", @@ -40,12 +40,12 @@ "chalk": "4.1.2", "generator-jhipster": "7.9.3", "prettier": "2.7.1", - "prettier-plugin-svelte": "2.7.0", + "prettier-plugin-svelte": "2.7.1", "semver": "7.3.7" }, "devDependencies": { "ejs-lint": "1.2.2", - "eslint": "8.23.0", + "eslint": "8.24.0", "eslint-config-airbnb-base": "15.0.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-import": "2.26.0",