Skip to content

Commit 3c895de

Browse files
authored
Bump deepl-node from 1.15.0 to 1.17.3 (#159)
<!-- markdownlint-disable-file MD041 --> ## Pull request checklist Please check if your PR fulfills the following requirements: - [ ] I have read the [CONTRIBUTING](https://github.com/fabasoad/translation-action/blob/main/CONTRIBUTING.md) doc. - [ ] Tests for the changes have been added (for bug fixes / features). - [ ] Docs have been reviewed and added / updated if needed (for bug fixes / features). - [ ] Build (`yarn run build`) was run locally and any changes were pushed. - [ ] Tests (`yarn test`) has passed locally and any fixes were made for failures. ## Pull request type <!-- Please do not submit updates to dependencies unless it fixes an issue. --> <!-- Please try to limit your pull request to one type, submit multiple pull requests if needed. --> Please check the type of change your PR introduces: - [ ] Bugfix - [ ] Feature - [ ] Code style update (formatting, renaming) - [ ] Refactoring (no functional changes, no api changes) - [ ] Build related changes - [ ] Documentation content changes - [ ] Other (please describe): ## What is the current behavior <!-- Please describe the current behavior that you are modifying, or link to a relevant issue. --> ## What is the new behavior <!-- Please describe the behavior or changes that are being added by this PR. --> - - - ## Does this introduce a breaking change - [ ] Yes - [ ] No <!-- If this introduces a breaking change, please describe the impact and migration path for existing applications below. --> ## Other information <!-- Any other information that is important to this PR such as screenshots of how the component looks before and after the change. --> <!-- This document was adapted from the open-source [appium/appium](https://github.com/appium/appium/blob/master/.github/PULL_REQUEST_TEMPLATE.md) repository. --> --- Closes #{IssueNumber}
1 parent 0f75090 commit 3c895de

File tree

10 files changed

+515
-486
lines changed

10 files changed

+515
-486
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nodejs 23.6.1
1+
nodejs 23.10.0

.yarn/releases/yarn-4.6.0.cjs renamed to .yarn/releases/yarn-4.7.0.cjs

Lines changed: 292 additions & 291 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ plugins:
44
- path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
55
spec: "https://mskelton.dev/yarn-outdated/v2"
66

7-
yarnPath: .yarn/releases/yarn-4.6.0.cjs
7+
yarnPath: .yarn/releases/yarn-4.7.0.cjs

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
# Translation action
22

33
[![Stand With Ukraine](https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg)](https://stand-with-ukraine.pp.ua)
4-
![GitHub release (latest SemVer including pre-releases)](https://img.shields.io/github/v/release/fabasoad/translation-action?include_prereleases)
4+
![Releases](https://img.shields.io/github/v/release/fabasoad/translation-action?include_prereleases)
55
![unit-tests](https://github.com/fabasoad/translation-action/actions/workflows/unit-tests.yml/badge.svg)
66
![test-providers](https://github.com/fabasoad/translation-action/actions/workflows/test-providers.yml/badge.svg)
77
![test-source](https://github.com/fabasoad/translation-action/actions/workflows/test-source.yml/badge.svg)
88
![security](https://github.com/fabasoad/translation-action/actions/workflows/security.yml/badge.svg)
99
![linting](https://github.com/fabasoad/translation-action/actions/workflows/linting.yml/badge.svg)
1010
[![Maintainability](https://api.codeclimate.com/v1/badges/84bb3beceb9503272bc9/maintainability)](https://codeclimate.com/github/fabasoad/translation-action/maintainability)
1111
[![Test Coverage](https://api.codeclimate.com/v1/badges/84bb3beceb9503272bc9/test_coverage)](https://codeclimate.com/github/fabasoad/translation-action/test_coverage)
12-
[![Known Vulnerabilities](https://snyk.io/test/github/fabasoad/translation-action/badge.svg?targetFile=package.json)](https://snyk.io/test/github/fabasoad/translation-action?targetFile=package.json)
1312

1413
This action translates any text to any language supported by chosen provider.
1514
There is a list of providers that can be used for text translation. Please find

dist/index.js

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jest.config.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
],
1111
"coverageThreshold": {
1212
"global": {
13-
"branches": 35,
14-
"functions": 50,
15-
"lines": 45,
16-
"statements": 45
13+
"branches": 40,
14+
"functions": 55,
15+
"lines": 50,
16+
"statements": 50
1717
}
1818
},
1919
"moduleFileExtensions": [

package.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "translation-action",
3-
"version": "3.1.5",
3+
"version": "3.1.6",
44
"description": "This GitHub action translates any text from any language to any language.",
55
"main": "dist/index.js",
66
"scripts": {
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"@actions/core": "1.11.1",
2929
"cross-fetch": "4.1.0",
30-
"deepl-node": "1.15.0",
30+
"deepl-node": "1.17.3",
3131
"google-translate-api-x": "10.7.2",
3232
"typed-rest-client": "2.1.0"
3333
},
@@ -38,9 +38,8 @@
3838
"dotenv": "16.4.7",
3939
"jest": "29.7.0",
4040
"jest-circus": "29.7.0",
41-
"mocha-param": "2.0.1",
42-
"ts-jest": "29.2.5",
43-
"typescript": "5.7.3"
41+
"ts-jest": "29.2.6",
42+
"typescript": "5.8.2"
4443
},
45-
"packageManager": "yarn@4.6.0"
44+
"packageManager": "yarn@4.7.0"
4645
}

src/__tests__/providers/MyMemoryProvider.spec.ts

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import itParam from 'mocha-param'
21
import MyMemoryProvider from '../../providers/MyMemoryProvider'
32
import { config } from 'dotenv'
43
import ProviderTester from './ProviderTester'
@@ -21,18 +20,15 @@ describe('MyMemoryProvider', () => {
2120
type: 'Registered'
2221
}]
2322

24-
itParam<ProviderTesterWrapper>(
25-
'[${value.type}] should get correct translation',
26-
fixture,
27-
async ({ providerTester }: ProviderTesterWrapper) =>
28-
providerTester.positive({
29-
text: 'Night', lang: 'en|be', expected: 'Ноч'
30-
})
23+
test.each(fixture)(
24+
'[$type] should get correct translation',
25+
({ providerTester }: ProviderTesterWrapper) => providerTester.positive({
26+
text: 'Night', lang: 'en|be', expected: 'Ноч'
27+
})
3128
)
3229

33-
itParam<ProviderTesterWrapper>(
34-
'[${value.type}] should fail because of invalid lang',
35-
fixture,
30+
test.each(fixture)(
31+
'[$type] should fail because of invalid lang',
3632
async ({ providerTester }: ProviderTesterWrapper) =>
3733
providerTester.negative()
3834
)

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"compilerOptions": {
3-
"target": "es2022",
3+
"target": "es2024",
44
"module": "commonjs",
55
"lib": [
66
"esnext"

0 commit comments

Comments
 (0)