@tolgee/svelte 2.2.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/README.md +1 -2
- package/TolgeeProvider.svelte +1 -1
- package/package.json +12 -14
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
+
|
|
6
|
+
# [2.7.0](https://github.com/tolgee/tolgee-js/compare/v2.6.0...v2.7.0) (2021-11-23)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **js:** Fix readmes TG-415 ([856539f](https://github.com/tolgee/tolgee-js/commit/856539fe5d3de82a07317915d2b1222cd0785dcc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.5.1](https://github.com/tolgee/tolgee-js/compare/v2.5.0...v2.5.1) (2021-11-11)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* Svelte integration TG-380 - fix document not defined error ([ffabdf8](https://github.com/tolgee/tolgee-js/commit/ffabdf859d50439729e5ac770f836e224cdd9b99))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## [2.4.1](https://github.com/tolgee/tolgee-js/compare/v2.4.0...v2.4.1) (2021-11-10)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* Svelte integration TG-380 - Fix missing document in svelteKit v192 ([218e3d0](https://github.com/tolgee/tolgee-js/commit/218e3d08b429b8a1c5e078c694a884945c3e2116))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
# [2.4.0](https://github.com/tolgee/tolgee-js/compare/v2.3.2...v2.4.0) (2021-11-09)
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
### Features
|
|
43
|
+
|
|
44
|
+
* Svelte integration TG-380 ([9e56290](https://github.com/tolgee/tolgee-js/commit/9e562905a43dea557cf6d66ffb1109ef3897a3e6))
|
package/README.md
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# Tolgee for Svelte
|
|
1
2
|

|
|
2
3
|

|
|
3
4
|

|
|
@@ -5,8 +6,6 @@
|
|
|
5
6
|
[](https://twitter.com/Tolgee_i18n)
|
|
6
7
|
[](https://github.com/tolgee/tolgee-js)
|
|
7
8
|
|
|
8
|
-
# Tolgee for Svelte
|
|
9
|
-
|
|
10
9
|
Svelte integration library (SDK) of Tolgee. For more information about using Tolgee with Svelte, visit our
|
|
11
10
|
[documentation website 📖](https://tolgee.io/docs).
|
|
12
11
|
|
package/TolgeeProvider.svelte
CHANGED
|
@@ -3,11 +3,11 @@ import { Tolgee, TolgeeConfig } from "@tolgee/core";
|
|
|
3
3
|
export let config;
|
|
4
4
|
const tolgee = new Tolgee(config || new TolgeeConfig());
|
|
5
5
|
let tolgeeRunPromise;
|
|
6
|
-
onMount(() => tolgeeRunPromise = tolgee.run());
|
|
7
6
|
setContext("tolgeeContext", {
|
|
8
7
|
tolgee
|
|
9
8
|
});
|
|
10
9
|
if (typeof window !== "undefined") {
|
|
10
|
+
onMount(() => tolgeeRunPromise = tolgee.run());
|
|
11
11
|
onDestroy(tolgee.stop);
|
|
12
12
|
}
|
|
13
13
|
</script>
|
package/package.json
CHANGED
|
@@ -1,32 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tolgee/svelte",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@tolgee/core": "^2.
|
|
5
|
+
"@tolgee/core": "^2.7.0"
|
|
6
6
|
},
|
|
7
7
|
"devDependencies": {
|
|
8
|
-
"@types/jest": "27.0.2",
|
|
9
|
-
"@testing-library/svelte": "3.0.3",
|
|
10
|
-
"ts-jest": "27.0.7",
|
|
11
8
|
"@sveltejs/kit": "next",
|
|
12
9
|
"@testing-library/jest-dom": "5.14.1",
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
15
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
|
10
|
+
"@testing-library/svelte": "3.0.3",
|
|
11
|
+
"@types/jest": "27.0.2",
|
|
12
|
+
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
16
13
|
"@typescript-eslint/parser": "^4.31.1",
|
|
17
|
-
"eslint": "^
|
|
14
|
+
"eslint": "^8.3.0",
|
|
18
15
|
"eslint-config-prettier": "^8.3.0",
|
|
19
16
|
"eslint-plugin-svelte3": "^3.2.1",
|
|
20
17
|
"jest": "27.3.1",
|
|
21
18
|
"prettier": "^2.4.1",
|
|
22
|
-
"prettier-plugin-svelte": "^2.
|
|
23
|
-
"svelte": "^3.
|
|
24
|
-
"svelte-check": "^2.2.
|
|
19
|
+
"prettier-plugin-svelte": "^2.5.0",
|
|
20
|
+
"svelte": "^3.44.2",
|
|
21
|
+
"svelte-check": "^2.2.10",
|
|
25
22
|
"svelte-jester": "2.1.5",
|
|
26
23
|
"svelte-preprocess": "^4.9.4",
|
|
27
|
-
"svelte2tsx": "0.4.
|
|
24
|
+
"svelte2tsx": "0.4.10",
|
|
25
|
+
"ts-jest": "27.0.7",
|
|
28
26
|
"tslib": "^2.3.1",
|
|
29
|
-
"typescript": "^4.
|
|
27
|
+
"typescript": "^4.5.2"
|
|
30
28
|
},
|
|
31
29
|
"type": "module",
|
|
32
30
|
"publishConfig": {
|