{
  "name": "@ably/chat",
  "version": "2.0.0",
  "description": "Ably Chat is a set of purpose-built APIs for a host of chat features enabling you to create 1:1, 1:Many, Many:1 and Many:Many chat rooms for any scale. It is designed to meet a wide range of chat use cases, such as livestreams, in-game communication, customer support, or social interactions in SaaS products.",
  "type": "module",
  "main": "dist/chat/ably-chat.umd.cjs",
  "browser": "dist/chat/ably-chat.js",
  "types": "dist/chat/index.d.ts",
  "react-native": "dist/chat/ably-chat.umd.cjs",
  "exports": {
    ".": {
      "types": "./dist/chat/index.d.ts",
      "react-native": "./dist/chat/ably-chat.umd.cjs",
      "import": "./dist/chat/ably-chat.js",
      "require": "./dist/chat/ably-chat.umd.cjs"
    },
    "./react": {
      "types": "./dist/react/index.d.ts",
      "react-native": "./dist/react/ably-chat-react.umd.cjs",
      "import": "./dist/react/ably-chat-react.js",
      "require": "./dist/react/ably-chat-react.umd.cjs"
    },
    "./package.json": "./package.json"
  },
  "scripts": {
    "check:error-codes": "tsx scripts/validate-error-codes.ts",
    "lint": "eslint . && npm run cspell && npm run docs:lint",
    "lint:fix": "eslint --fix .; (npm run format > /dev/null)",
    "format": "prettier --list-different --write src test __mocks__ demo/src",
    "format:check": "prettier --check src test __mocks__ demo/src",
    "test": "vitest run",
    "test:chat": "vitest run --project chat",
    "test:react": "vitest run --project react-hooks",
    "test:unit": "vitest run --exclude \"test/**/*.integration.test.ts?(x)\"",
    "test:chat-unit": "vitest run --project chat --exclude \"test/**/*.integration.test.ts?(x)\"",
    "test:react-unit": "vitest run --project react-hooks --exclude \"test/**/*.integration.test.ts?(x)\"",
    "test:watch": "vitest watch",
    "build": "npm run build:chat && npm run build:core && npm run build:react",
    "build:chat": "vite build --config ./src/vite.config.ts --emptyOutDir",
    "build:core": "vite build --config ./src/core/vite.config.ts --emptyOutDir",
    "build:react": "vite build --config ./src/react/vite.config.ts --emptyOutDir",
    "build:cdn": "vite build --config ./src/core/vite.cdn.config.ts",
    "build:start-demo": "npm run build && (cd demo && npm start)",
    "prepare": "npm run build",
    "test:typescript": "tsc",
    "demo:reload": "npm run build && cd demo && npm i file:../",
    "docs": "typedoc",
    "docs:lint": "typedoc --emit none",
    "modulereport": "tsc --noEmit --esModuleInterop scripts/moduleReport.ts && esr scripts/moduleReport.ts",
    "cspell": "cspell --quiet '{src,test}/**' './*.md'",
    "test:no-integration": "vitest run --exclude \"test/**/*.integration.test.ts?(x)\"",
    "precommit": "npm run format:check && npm run lint && npm run test:typescript"
  },
  "files": [
    "dist/**",
    "!dist/cdn",
    "src/**",
    "react/**"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/ably/ably-chat-js.git"
  },
  "keywords": [
    "chat",
    "ably",
    "ably-realtime",
    "websockets"
  ],
  "author": "Ably Realtime",
  "license": "Apache-2.0",
  "bugs": {
    "url": "https://github.com/ably/ably-chat-js/issues"
  },
  "homepage": "https://github.com/ably/ably-chat-js#readme",
  "engines": {
    "node": ">=22.0.0"
  },
  "peerDependencies": {
    "@ably/pubsub-device": "^3.0.0",
    "@ably/pubsub-server": "^3.0.0",
    "react": "^18.0.0 || ^19.0.0",
    "react-dom": "^18.0.0 || ^19.0.0"
  },
  "peerDependenciesMeta": {
    "react": {
      "optional": true
    },
    "react-dom": {
      "optional": true
    },
    "@ably/pubsub-server": {
      "optional": true
    },
    "@ably/pubsub-device": {
      "optional": true
    }
  },
  "devDependencies": {
    "@ably/pubsub-device": "^3.0.0",
    "@eslint/compat": "^1.2.7",
    "@eslint/eslintrc": "^3.3.0",
    "@eslint/js": "^9.12.0",
    "@testing-library/react": "^16.2.0",
    "@types/jsonwebtoken": "^9.0.9",
    "@types/lodash.clonedeep": "^4.5.9",
    "@types/react": "^19.0.10",
    "@types/react-dom": "^19.0.4",
    "@typescript-eslint/eslint-plugin": "^8.26.1",
    "@typescript-eslint/parser": "^8.26.1",
    "@vitejs/plugin-react": "^5.0.2",
    "@vitest/coverage-v8": "^3.0.8",
    "aws-sdk": "^2.1692.0",
    "baseline-browser-mapping": "^2.9.19",
    "cspell": "^9.0.2",
    "eslint": "^9.31.0",
    "eslint-plugin-compat": "^6.0.2",
    "eslint-plugin-import": "^2.31.0",
    "eslint-plugin-jsdoc": "^60.7.0",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-prefer-arrow-functions": "^3.6.2",
    "eslint-plugin-react": "^7.37.4",
    "eslint-plugin-react-hooks": "^5.2.0",
    "eslint-plugin-react-refresh": "^0.4.19",
    "eslint-plugin-security": "^3.0.1",
    "eslint-plugin-simple-import-sort": "^12.1.1",
    "eslint-plugin-unicorn": "^61.0.2",
    "globals": "^16.0.0",
    "jsdom": "^27.0.0",
    "jsonwebtoken": "^9.0.2",
    "minimist": "^1.2.8",
    "prettier": "^3.5.3",
    "react": "^19.0.0",
    "react-dom": "^19.0.0",
    "typedoc": "^0.28.13",
    "typedoc-plugin-no-inherit": "^1.5.0",
    "typescript": "^5.8.2",
    "vite": "^7.0.0",
    "vite-plugin-dts": "^4.5.3",
    "vitest": "^3.0.8"
  },
  "dependencies": {
    "@ably/pubsub-core": "^3.0.0",
    "async-mutex": "^0.5.0",
    "dequal": "^2.0.3",
    "lodash.clonedeep": "^4.5.0"
  },
  "optionalDependencies": {
    "@rollup/rollup-darwin-arm64": "^4.18",
    "@rollup/rollup-linux-x64-gnu": "^4.18"
  },
  "browserslist": [
    "defaults",
    "not op_mini all"
  ]
}
