From c9386949748693835426165c815a70ead1bc94f6 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Thu, 4 Apr 2024 23:54:34 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20met=20=C3=A0=20jour=20Publicodes=20de?= =?UTF-8?q?=201.0.4=20=C3=A0=201.2.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/package.json | 2 +- package.json | 4 +- site/package.json | 4 +- .../professions-libérales.test.ts.snap | 12 ++-- site/test/regressions/indépendant.test.ts | 1 - .../regressions/professions-libérales.test.ts | 1 - yarn.lock | 67 +++++++++---------- 7 files changed, 44 insertions(+), 47 deletions(-) diff --git a/api/package.json b/api/package.json index f13e74202..b77d745c4 100644 --- a/api/package.json +++ b/api/package.json @@ -43,7 +43,7 @@ "modele-social": "workspace:^", "nodemon": "^3.0.1", "piano-analytics-js": "^6.13.0", - "publicodes": "^1.0.4", + "publicodes": "^1.2.0", "rate-limiter-flexible": "^2.4.2", "swagger-ui-dist": "^5.7.2" }, diff --git a/package.json b/package.json index 3ca29a798..d5b5c1084 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@actions/github": "^5.1.1", "@ianvs/prettier-plugin-sort-imports": "^4.1.0", "@publicodes/codemod": "^1.1.0", - "@publicodes/tools": "^0.4.6", + "@publicodes/tools": "^1.0.7", "@types/got": "^9.6.12", "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", @@ -52,7 +52,7 @@ "eslint-plugin-react-hooks": "^4.6.0", "eslint-plugin-vitest": "^0.3.22", "prettier": "^3.0.3", - "publicodes": "^1.0.4", + "publicodes": "^1.2.0", "rimraf": "^5.0.1" }, "resolutions": { diff --git a/site/package.json b/site/package.json index df4f33fed..ea2a80fae 100644 --- a/site/package.json +++ b/site/package.json @@ -56,7 +56,7 @@ "@internationalized/number": "^3.2.1", "@juggle/resize-observer": "^3.4.0", "@leeoniya/ufuzzy": "^1.0.10", - "@publicodes/react-ui": "^1.0.4", + "@publicodes/react-ui": "^1.2.0", "@react-aria/accordion": "^3.0.0-alpha.17", "@react-pdf/renderer": "^3.1.12", "@sentry/integrations": "^7.70.0", @@ -71,7 +71,7 @@ "markdown-to-jsx": "^7.3.2", "modele-social": "workspace:^", "piano-analytics-js": "^6.13.0", - "publicodes": "^1.0.4", + "publicodes": "^1.2.0", "react": "^18.2.0", "react-aria": "^3.24.0", "react-day-picker": "^8.8.2", diff --git a/site/test/regressions/__snapshots__/professions-libérales.test.ts.snap b/site/test/regressions/__snapshots__/professions-libérales.test.ts.snap index e1e9e6095..631df6d7b 100644 --- a/site/test/regressions/__snapshots__/professions-libérales.test.ts.snap +++ b/site/test/regressions/__snapshots__/professions-libérales.test.ts.snap @@ -84,10 +84,10 @@ protection sociale . retraite . trimestres: 4" `; exports[`calculate simulations-professions-libérales > CIPAV conjoint collaborateur 2`] = ` -"dirigeant . indépendant . cotisations et contributions: 30889 +"dirigeant . indépendant . cotisations et contributions: 30891 dirigeant . rémunération . net: 60000 dirigeant . rémunération . net . après impôt: 47975 -entreprise . chiffre d'affaires: 90889 +entreprise . chiffre d'affaires: 90891 impôt . montant: 12025 protection sociale . retraite . base: 323 protection sociale . retraite . complémentaire: 393 @@ -95,10 +95,10 @@ protection sociale . retraite . trimestres: 4" `; exports[`calculate simulations-professions-libérales > CIPAV conjoint collaborateur 3`] = ` -"dirigeant . indépendant . cotisations et contributions: 30563 +"dirigeant . indépendant . cotisations et contributions: 30565 dirigeant . rémunération . net: 60000 dirigeant . rémunération . net . après impôt: 47977 -entreprise . chiffre d'affaires: 90563 +entreprise . chiffre d'affaires: 90565 impôt . montant: 12023 protection sociale . retraite . base: 429 protection sociale . retraite . complémentaire: 393 @@ -106,10 +106,10 @@ protection sociale . retraite . trimestres: 4" `; exports[`calculate simulations-professions-libérales > CIPAV conjoint collaborateur 4`] = ` -"dirigeant . indépendant . cotisations et contributions: 34909 +"dirigeant . indépendant . cotisations et contributions: 34911 dirigeant . rémunération . net: 60000 dirigeant . rémunération . net . après impôt: 47942 -entreprise . chiffre d'affaires: 94909 +entreprise . chiffre d'affaires: 94911 impôt . montant: 12058 protection sociale . retraite . base: 323 protection sociale . retraite . complémentaire: 394 diff --git a/site/test/regressions/indépendant.test.ts b/site/test/regressions/indépendant.test.ts index e4ef8e6dc..a31738333 100644 --- a/site/test/regressions/indépendant.test.ts +++ b/site/test/regressions/indépendant.test.ts @@ -28,7 +28,6 @@ it('calculate simulations-indépendant', () => { ) ).toMatchInlineSnapshot(` [ - "date", "dirigeant . indépendant . IJSS", "dirigeant . indépendant . conjoint collaborateur", "dirigeant . indépendant . cotisations et contributions . exonérations . pension invalidité", diff --git a/site/test/regressions/professions-libérales.test.ts b/site/test/regressions/professions-libérales.test.ts index d6fb9936f..4a03fcfae 100644 --- a/site/test/regressions/professions-libérales.test.ts +++ b/site/test/regressions/professions-libérales.test.ts @@ -29,7 +29,6 @@ it('calculate simulations-professions-libérales', () => { ) ).toMatchInlineSnapshot(` [ - "date", "dirigeant . indépendant . IJSS", "dirigeant . indépendant . PL . CNAVPL . exonération incapacité", "dirigeant . indépendant . PL . métier", diff --git a/yarn.lock b/yarn.lock index e61575fef..8ce1762d3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7587,22 +7587,23 @@ __metadata: languageName: node linkType: hard -"@publicodes/react-ui@npm:^1.0.4": - version: 1.0.4 - resolution: "@publicodes/react-ui@npm:1.0.4" +"@publicodes/react-ui@npm:^1.2.0": + version: 1.2.0 + resolution: "@publicodes/react-ui@npm:1.2.0" dependencies: + fuse.js: ^7.0.0 styled-components: ^6.1.1 peerDependencies: publicodes: ^1.0.1 react: ^18 react-dom: ^18 - checksum: 12f41b33f7a26d6d83f5c909cb81dde465389193cfddcfe1ced7f6b11ff811426ba1726b34d3e7c4f8b0fbc424a3aef1a17ad816a9ed82fd12c9d1023c4a884f + checksum: 4f786c7e98e90e7b73672ab40852c93bf33e439e58a30df21953ed5027a0cdd1c26864f7cdb04afb2ec45a31e802604034b76a88e3c5a3955ec854e803e0cfeb languageName: node linkType: hard -"@publicodes/rest-api@npm:^1.0.4": - version: 1.0.4 - resolution: "@publicodes/rest-api@npm:1.0.4" +"@publicodes/rest-api@npm:^1.2.0": + version: 1.2.0 + resolution: "@publicodes/rest-api@npm:1.2.0" dependencies: "@koa/cors": ^3.4.3 "@koa/router": ^10.1.1 @@ -7611,17 +7612,17 @@ __metadata: openapi-validator-middleware: ^3.2.6 peerDependencies: publicodes: ^1.0.1 - checksum: 50acd90c3c314dcae44b3d5ecdb5080f5d1f834136918260b20e4d12521627b6207ca1b6c470463fa8523fa64613d31776aa2326fe8a2fd7017786e319d24f24 + checksum: d7e54fe075489b9d1afe176ec1aa75f659bd0aa97823fb231d7a0313c5063087e8a2c64a23df00d5b7c2f751ce4ccaac6f4380a4f88556412fe5effdefd3529c languageName: node linkType: hard -"@publicodes/tools@npm:^0.4.6": - version: 0.4.6 - resolution: "@publicodes/tools@npm:0.4.6" +"@publicodes/tools@npm:^1.0.7": + version: 1.0.7 + resolution: "@publicodes/tools@npm:1.0.7" dependencies: "@types/node": ^18.11.18 - publicodes: ^1.0.0-beta.77 - checksum: cb131f4fe8b18550538c7f395763f547118f9a3d9e13b71f86f1940db8c1921312777c3dbbc432f12f1fa8e1ac9999df845ffc195a6b849d043c0130be3dfcd0 + publicodes: ^1.1.1 + checksum: d57917ca57cdb2904e3ba4239f8cee5f41ee0137945e94e7414d429ceb74d70c783711903d80e997625abce7fcf47c5612f267253e29ea1e0d19fc55b69b227f languageName: node linkType: hard @@ -14015,7 +14016,7 @@ __metadata: "@apidevtools/swagger-cli": ^4.0.4 "@koa/cors": ^4.0.0 "@koa/router": ^12.0.0 - "@publicodes/rest-api": ^1.0.4 + "@publicodes/rest-api": ^1.2.0 "@sentry/node": ^7.70.0 "@sentry/utils": ^7.70.0 "@types/ioredis-mock": ^8.2.2 @@ -14035,7 +14036,7 @@ __metadata: modele-social: "workspace:^" nodemon: ^3.0.1 piano-analytics-js: ^6.13.0 - publicodes: ^1.0.4 + publicodes: ^1.2.0 rate-limiter-flexible: ^2.4.2 swagger-ui-dist: ^5.7.2 ts-node: ^10.9.1 @@ -20295,6 +20296,13 @@ __metadata: languageName: node linkType: hard +"fuse.js@npm:^7.0.0": + version: 7.0.0 + resolution: "fuse.js@npm:7.0.0" + checksum: d15750efec1808370c0cae92ec9473aa7261c59bca1f15f1cf60039ba6f804b8f95340b5cabd83a4ef55839c1034764856e0128e443921f072aa0d8a20e4cacf + languageName: node + linkType: hard + "fuzzy@npm:0.1.3": version: 0.1.3 resolution: "fuzzy@npm:0.1.3" @@ -26892,21 +26900,12 @@ __metadata: languageName: node linkType: hard -"publicodes@npm:^1.0.0-beta.77": - version: 1.0.3 - resolution: "publicodes@npm:1.0.3" +"publicodes@npm:^1.1.1, publicodes@npm:^1.2.0": + version: 1.2.0 + resolution: "publicodes@npm:1.2.0" peerDependencies: "@types/mocha": ^9.0.0 - checksum: c98becd43b8ce009688494b407587fee9382c207734dd6996ab327c9a0f0626cd8439480ec37fc38985d2ee01c769318029a13148e9a89e5b5b16ae5d6194dcc - languageName: node - linkType: hard - -"publicodes@npm:^1.0.4": - version: 1.0.4 - resolution: "publicodes@npm:1.0.4" - peerDependencies: - "@types/mocha": ^9.0.0 - checksum: 35849efe6400833cbee9c249f907c824e0eb44965f93f8275713c05ebe863ef67588d57bab5a844f0a5b2cb9924b4602243b65a02f0839480de1ffeb92fbc6a2 + checksum: 071e586104e4d9ecfb2b7267f34d3307599ddc478e3ec7f3f7d2f6822dcd49ffdc28fcd541c339b437e8ae6966c8707434f9f2e44f78760d17da925e53c3ad80 languageName: node linkType: hard @@ -28599,7 +28598,7 @@ __metadata: "@actions/github": ^5.1.1 "@ianvs/prettier-plugin-sort-imports": ^4.1.0 "@publicodes/codemod": ^1.1.0 - "@publicodes/tools": ^0.4.6 + "@publicodes/tools": ^1.0.7 "@types/got": ^9.6.12 "@typescript-eslint/eslint-plugin": ^6.7.2 "@typescript-eslint/parser": ^6.7.2 @@ -28616,7 +28615,7 @@ __metadata: eslint-plugin-react-hooks: ^4.6.0 eslint-plugin-vitest: ^0.3.22 prettier: ^3.0.3 - publicodes: ^1.0.4 + publicodes: ^1.2.0 rimraf: ^5.0.1 languageName: unknown linkType: soft @@ -29192,7 +29191,7 @@ __metadata: "@internationalized/number": ^3.2.1 "@juggle/resize-observer": ^3.4.0 "@leeoniya/ufuzzy": ^1.0.10 - "@publicodes/react-ui": ^1.0.4 + "@publicodes/react-ui": ^1.2.0 "@react-aria/accordion": ^3.0.0-alpha.17 "@react-pdf/renderer": ^3.1.12 "@react-types/accordion": ^3.0.0-alpha.16 @@ -29243,7 +29242,7 @@ __metadata: modele-social: "workspace:^" netlify-cli: ^17.10.1 piano-analytics-js: ^6.13.0 - publicodes: ^1.0.4 + publicodes: ^1.2.0 react: ^18.2.0 react-aria: ^3.24.0 react-day-picker: ^8.8.2 @@ -31119,7 +31118,7 @@ __metadata: "typescript@patch:typescript@^5.0.0#~builtin, typescript@patch:typescript@^5.0.4#~builtin": version: 5.1.6 - resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin::version=5.1.6&hash=85af82" + resolution: "typescript@patch:typescript@npm%3A5.1.6#~builtin::version=5.1.6&hash=ad5954" bin: tsc: bin/tsc tsserver: bin/tsserver @@ -31129,7 +31128,7 @@ __metadata: "typescript@patch:typescript@^5.2.2#~builtin": version: 5.2.2 - resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=85af82" + resolution: "typescript@patch:typescript@npm%3A5.2.2#~builtin::version=5.2.2&hash=ad5954" bin: tsc: bin/tsc tsserver: bin/tsserver