Skip to content

Commit

Permalink
chore: Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergonz committed Jun 11, 2024
1 parent c7ac4c7 commit 8d9ecc4
Show file tree
Hide file tree
Showing 9 changed files with 199 additions and 328 deletions.
2 changes: 2 additions & 0 deletions apps/site/src/pages/example-apps/yjs-binding.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* eslint-disable import-x/no-unresolved */
import BrowserOnly from "@docusaurus/BrowserOnly"
import Head from "@docusaurus/Head"
/* eslint-enable import-x/no-unresolved */
import { App } from "../../../docs/examples/yjsBinding/app"

const Page = () => (
Expand Down
9 changes: 5 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { FlatCompat } from "@eslint/eslintrc"
import eslint from "@eslint/js"
import eslintConfigPrettier from "eslint-config-prettier"
import pluginImportX from "eslint-plugin-import-x"
import eslintPluginReactConfigsJsxRuntime from "eslint-plugin-react/configs/jsx-runtime.js"
import eslintPluginReactConfigsRecommended from "eslint-plugin-react/configs/recommended.js"
import globals from "globals"
Expand Down Expand Up @@ -63,15 +64,15 @@ export default tseslint.config(
},
},
},
// TODO: not working right now with flat configs
//...compat.extends("plugin:import/errors", "plugin:import/warnings", "plugin:import/typescript"),
...compat.config(pluginImportX.configs.recommended),
pluginImportX.configs.typescript,
eslintPluginReactConfigsRecommended,
eslintPluginReactConfigsJsxRuntime,
...compat.extends("plugin:react-hooks/recommended"),
{
rules: {
// doesn't get along well with .js extensions (needed so node "type": module works)
"import/no-unresolved": "off",
// does not get along with flat configs for now, but TS takes care of this I think
"import-x/namespace": "off",
// "import/no-cycle": ["error", { ignoreExternal: true }],
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-this-alias": "off",
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@
"codecov": "^3.8.3",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-import-x": "^0.5.1",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"globals": "^15.4.0",
"netlify-cli": "^17.26.1",
"prettier": "^3.3.1",
"netlify-cli": "^17.26.2",
"prettier": "^3.3.2",
"prettier-plugin-organize-imports": "^3.2.4",
"turbo": "^2.0.3",
"typescript": "^5.4.5",
"typescript-eslint": "^7.12.0"
"typescript-eslint": "^7.13.0"
},
"packageManager": "[email protected]"
}
2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@babel/plugin-proposal-decorators": "^7.24.7",
"@babel/preset-env": "^7.24.7",
"@babel/preset-typescript": "^7.24.7",
"@swc/core": "^1.5.27",
"@swc/core": "^1.5.28",
"@swc/jest": "^0.2.36",
"@types/jest": "^29.5.12",
"@types/node": "^20.14.2",
Expand Down
4 changes: 4 additions & 0 deletions packages/mobx-keystone-yjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 1.5.1

- Fixed a wrong import.

## 1.5.0

- Added undefined to accepted primitive "JSON" types.
Expand Down
2 changes: 1 addition & 1 deletion packages/mobx-keystone-yjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobx-keystone-yjs",
"version": "1.5.0",
"version": "1.5.1",
"description": "Yjs bindings for mobx-keystone",
"keywords": [
"mobx",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Patch } from "mobx-keystone"
import * as Y from "yjs"
import { failure } from "../utils/error"
import { convertJsonToYjsData } from "./convertJsonToYjsData"
import { JsonValueWithUndefined } from "jsonTypes"
import { JsonValueWithUndefined } from "../jsonTypes"

export function applyMobxKeystonePatchToYjsObject(patch: Patch, yjs: unknown): void {
if (patch.path.length > 1) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
JsonObjectWithUndefined,
JsonPrimitiveWithUndefined,
JsonValueWithUndefined,
} from "jsonTypes"
} from "../jsonTypes"

function isJsonPrimitiveWithUndefined(v: JsonValueWithUndefined): v is JsonPrimitiveWithUndefined {
const t = typeof v
Expand Down
Loading

0 comments on commit 8d9ecc4

Please sign in to comment.