Skip to content

Commit

Permalink
Chore: Upgraded to Lit release 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanholzapfel committed Sep 24, 2021
1 parent 44e8ecb commit 55c35b5
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 45 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stefanholzapfel/lit-state",
"version": "3.2.2",
"version": "3.3.0",
"description": "A reactive state management for Lit 2",
"publishConfig": {
"access": "public"
Expand All @@ -11,16 +11,16 @@
},
"scripts": {
"build": "tsc --build --clean && tsc",
"publish_npm": "tsc --build --clean && tsc && yarn publish"
"publish_npm": "tsc -b --clean && tsc && yarn publish"
},
"author": "Stefan Holzapfel",
"license": "MIT",
"dependencies": {
"lit": "^2.0.0-rc.2",
"ts-essentials": "^7.0.3"
"lit": "^2.0.0",
"ts-essentials": "^8.1.0"
},
"devDependencies": {
"typescript": "^4.3.5"
"typescript": "^4.4.3"
},
"type": "module",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/cacheHandlers/localStorage.cacheHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class LocalStorageCacheHandler<State> implements CacheHandler<State> {
}

private setRecursive(change: ReducableState<State> | DeepPartial<ReducableState<State>>, path: string[]) {
for (const key in change) {
for (const key in change as any) {
if (!isExceptionFromDeepReduce(change[key])) {
if (isObject(change[key]) && !Array.isArray(change[key])) {
if ('_reducerMode' in change[key] && change[key]._reducerMode === 'replace') {
Expand Down
2 changes: 1 addition & 1 deletion src/litElementState.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class LitElementStateService<State> {
}

private deepReduce(state: State, change: ReducableState<State> | DeepPartial<ReducableState<State>>) {
for (const key in change) {
for (const key in change as any) {
if (isObject(change[key]) && !(isExceptionFromDeepReduce(change[key])) &&
(!('_reducerMode' in change[key]) || change[key]._reducerMode === 'merge')) {
delete change[key]._reducerMode;
Expand Down
76 changes: 38 additions & 38 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,46 +2,46 @@
# yarn lockfile v1


"@lit/reactive-element@^1.0.0-rc.2":
version "1.0.0-rc.2"
resolved "https://registry.yarnpkg.com/@lit/reactive-element/-/reactive-element-1.0.0-rc.2.tgz#f24dba16ea571a08dca70f1783bd2ca5ec8de3ee"
integrity sha512-cujeIl5Ei8FC7UHf4/4Q3bRJOtdTe1vpJV/JEBYCggedmQ+2P8A2oz7eE+Vxi6OJ4nc0X+KZxXnBoH4QrEbmEQ==

"@types/trusted-types@^1.0.1":
version "1.0.6"
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-1.0.6.tgz#569b8a08121d3203398290d602d84d73c8dcf5da"
integrity sha512-230RC8sFeHoT6sSUlRO6a8cAnclO06eeiq1QDfiv2FGCLWFvvERWgwIQD4FWqD9A69BN7Lzee4OXwoMVnnsWDw==

lit-element@^3.0.0-rc.2:
version "3.0.0-rc.2"
resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.0.0-rc.2.tgz#883d0b6fd7b846226d360699d1b713da5fc7e1b7"
integrity sha512-2Z7DabJ3b5K+p5073vFjMODoaWqy5PIaI4y6ADKm+fCGc8OnX9fU9dMoUEBZjFpd/bEFR9PBp050tUtBnT9XTQ==
"@lit/reactive-element@^1.0.0":
version "1.0.0"
resolved "https://registry.yarnpkg.com/@lit/reactive-element/-/reactive-element-1.0.0.tgz#7b6e6a85709cda0370c47e425ac2f3b553696a4b"
integrity sha512-Kpgenb8UNFsKCsFhggiVvUkCbcFQSd6N8hffYEEGjz27/4rw3cTSsmP9t3q1EHOAsdum60Wo64HvuZDFpEwexA==

"@types/trusted-types@^2.0.2":
version "2.0.2"
resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.2.tgz#fc25ad9943bcac11cceb8168db4f275e0e72e756"
integrity sha512-F5DIZ36YVLE+PN+Zwws4kJogq47hNgX3Nx6WyDJ3kcplxyke3XIzB8uK5n/Lpm1HBsbGzd6nmGehL8cPekP+Tg==

lit-element@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/lit-element/-/lit-element-3.0.0.tgz#0e9e64ddbc3dd6a8da4d6fbfadbc070a54cf0597"
integrity sha512-oPqRhhBBhs+AlI62QLwtWQNU/bNK/h2L1jI3IDroqZubo6XVAkyNy2dW3CRfjij8mrNlY7wULOfyyKKOnfEePA==
dependencies:
"@lit/reactive-element" "^1.0.0-rc.2"
lit-html "^2.0.0-rc.3"
"@lit/reactive-element" "^1.0.0"
lit-html "^2.0.0"

lit-html@^2.0.0-rc.3:
version "2.0.0-rc.3"
resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.0.0-rc.3.tgz#1c216e548630e18d3093d97f4e29563abce659af"
integrity sha512-Y6P8LlAyQuqvzq6l/Nc4z5/P5M/rVLYKQIRxcNwSuGajK0g4kbcBFQqZmgvqKG+ak+dHZjfm2HUw9TF5N/pkCw==
lit-html@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/lit-html/-/lit-html-2.0.0.tgz#ba6779269c382e66d7403a96ed99516ccc3d658b"
integrity sha512-tJsCapCmc0vtLj6harqd6HfCxnlt/RSkgowtz4SC9dFE3nSL38Tb33I5HMDiyJsRjQZRTgpVsahrnDrR9wg27w==
dependencies:
"@types/trusted-types" "^1.0.1"
"@types/trusted-types" "^2.0.2"

lit@^2.0.0-rc.2:
version "2.0.0-rc.2"
resolved "https://registry.yarnpkg.com/lit/-/lit-2.0.0-rc.2.tgz#724a2d621aa098001d73bf7106f3a72b7b5948ef"
integrity sha512-BOCuoJR04WaTV8UqTKk09cNcQA10Aq2LCcBOiHuF7TzWH5RNDsbCBP5QM9sLBSotGTXbDug/gFO08jq6TbyEtw==
lit@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/lit/-/lit-2.0.0.tgz#7710095dc518d9858dde579e9c76b9eed71e98ba"
integrity sha512-pqi5O/wVzQ9Bn4ERRoYQlt1EAUWyY5Wv888vzpoArbtChc+zfUv1XohRqSdtQZYCogl0eHKd+MQwymg2XJfECg==
dependencies:
"@lit/reactive-element" "^1.0.0-rc.2"
lit-element "^3.0.0-rc.2"
lit-html "^2.0.0-rc.3"

ts-essentials@^7.0.1:
version "7.0.1"
resolved "https://registry.yarnpkg.com/ts-essentials/-/ts-essentials-7.0.1.tgz#d205508cae0cdadfb73c89503140cf2228389e2d"
integrity sha512-8lwh3QJtIc1UWhkQtr9XuksXu3O0YQdEE5g79guDfhCaU1FWTDIEDZ1ZSx4HTHUmlJZ8L812j3BZQ4a0aOUkSA==

typescript@^4.2.4:
version "4.2.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==
"@lit/reactive-element" "^1.0.0"
lit-element "^3.0.0"
lit-html "^2.0.0"

ts-essentials@^8.1.0:
version "8.1.0"
resolved "https://registry.yarnpkg.com/ts-essentials/-/ts-essentials-8.1.0.tgz#bc982b242db226b84c89477d3d42630ee2954513"
integrity sha512-34xALeQADWRYq9kbtprP4KdpTQ3v3BBIs/U4SpaP+C4++B8ijXY5NnILRJLchQVMzw7YBzKuGMUMrI9uT+ALVw==

typescript@^4.4.3:
version "4.4.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.3.tgz#bdc5407caa2b109efd4f82fe130656f977a29324"
integrity sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==

0 comments on commit 55c35b5

Please sign in to comment.