|
1 | 1 | { |
2 | 2 | "name": "react-linkify-it", |
3 | 3 | "author": "Ananto Ghosh", |
4 | | - "version": "1.0.8", |
5 | | - "description": "A tiny and dependency free universal linking solution that turns any pattern in your text into clickable links (aka linkify). Supports i18n and emojis.", |
| 4 | + "version": "2.0.0-2", |
| 5 | + "description": "A super tiny <1KB, dependency-free, highly customizable React utility to turn any pattern in your text into clickable links or custom components. Instantly linkify URLs, emails, twitter handles, hashtags, mentions or anything else out of the box or with your own rules.", |
6 | 6 | "license": "MIT", |
7 | 7 | "type": "module", |
8 | 8 | "source": "src/index.tsx", |
9 | | - "packageManager": "pnpm@8.15.9", |
10 | | - "main": "./dist/react-linkify-it.legacy.umd.min", |
| 9 | + "packageManager": "pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67", |
| 10 | + "main": "./dist/index.cjs", |
11 | 11 | "exports": { |
12 | | - ".": "./dist/react-linkify-it.esm.js", |
13 | | - "./legacy": "./dist/react-linkify-it.legacy.umd.min", |
14 | | - "./dist/react-linkify-it.legacy.umd.min": "./dist/react-linkify-it.legacy.umd.min" |
| 12 | + ".": { |
| 13 | + "import": "./dist/index.js", |
| 14 | + "require": "./dist/index.cjs" |
| 15 | + }, |
| 16 | + "./package.json": "./package.json" |
15 | 17 | }, |
16 | | - "module": "./dist/react-linkify-it.esm.js", |
17 | | - "unpkg": "./dist/react-linkify-it.legacy.umd.min.js", |
18 | | - "types": "./dist/react-linkify-it.esm.d.ts", |
| 18 | + "module": "./dist/index.js", |
| 19 | + "types": "./dist/index.d.cts", |
19 | 20 | "sideEffects": false, |
20 | 21 | "files": [ |
21 | 22 | "dist/" |
|
40 | 41 | "homepage": "https://github.com/anantoghosh/react-linkify-it", |
41 | 42 | "scripts": { |
42 | 43 | "release": "np", |
43 | | - "build": "npm run build:latest && npm run build:legacy", |
44 | | - "build:latest": "rollup -c", |
45 | | - "build:legacy": "rollup -c rollup-legacy.config.js", |
46 | | - "test": "jest --coverage", |
| 44 | + "build": "tsdown", |
| 45 | + "test": "vitest run --coverage", |
| 46 | + "lint": "eslint src/", |
47 | 47 | "prettier": "prettier src/ --write" |
48 | 48 | }, |
| 49 | + "prettier": { |
| 50 | + "singleQuote": true |
| 51 | + }, |
49 | 52 | "keywords": [ |
50 | 53 | "react-linkify", |
51 | 54 | "react", |
52 | 55 | "linkify", |
53 | 56 | "link", |
54 | 57 | "url", |
55 | | - "jira", |
56 | 58 | "email", |
57 | 59 | "twitter", |
58 | 60 | "autolink", |
59 | 61 | "text", |
60 | 62 | "tag" |
61 | 63 | ], |
62 | 64 | "devDependencies": { |
63 | | - "@babel/core": "^7.22.10", |
64 | | - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", |
65 | | - "@babel/plugin-transform-runtime": "^7.22.10", |
66 | | - "@babel/preset-env": "^7.22.10", |
67 | | - "@babel/preset-typescript": "^7.22.5", |
68 | | - "@babel/runtime": "^7.22.10", |
69 | | - "@rollup/plugin-terser": "^0.4.3", |
70 | | - "@testing-library/jest-dom": "^5.17.0", |
71 | | - "@testing-library/react": "^14.0.0", |
72 | | - "@types/jest": "^27.5.2", |
73 | | - "@types/react": "^18.2.20", |
74 | | - "@types/testing-library__jest-dom": "^5.14.9", |
75 | | - "@typescript-eslint/eslint-plugin": "^6.3.0", |
76 | | - "@typescript-eslint/parser": "^6.3.0", |
77 | | - "eslint": "^8.47.0", |
78 | | - "eslint-plugin-tree-shaking": "^1.10.0", |
79 | | - "jest": "^27.5.1", |
80 | | - "np": "^8.0.4", |
81 | | - "prettier": "^3.0.1", |
82 | | - "react": "^18.2.0", |
83 | | - "react-dom": "^18.2.0", |
84 | | - "rollup": "^3.28.0", |
85 | | - "rollup-plugin-size": "^0.3.1", |
86 | | - "rollup-plugin-ts": "^3.4.4", |
87 | | - "ts-jest": "^27.1.5", |
88 | | - "tslib": "^2.6.1", |
89 | | - "typescript": "~4.9.5" |
| 65 | + "@eslint/js": "^9.35.0", |
| 66 | + "@testing-library/dom": "^10.4.1", |
| 67 | + "@testing-library/jest-dom": "^6.8.0", |
| 68 | + "@testing-library/react": "^16.3.0", |
| 69 | + "@types/react": "^19.1.12", |
| 70 | + "@types/react-dom": "^19.1.9", |
| 71 | + "@vitest/coverage-v8": "3.2.4", |
| 72 | + "@vitest/ui": "^3.2.4", |
| 73 | + "eslint": "^9.35.0", |
| 74 | + "jsdom": "^26.1.0", |
| 75 | + "np": "^10.2.0", |
| 76 | + "prettier": "^3.6.2", |
| 77 | + "publint": "^0.3.12", |
| 78 | + "react": "^19.1.1", |
| 79 | + "react-dom": "^19.1.1", |
| 80 | + "tsdown": "^0.15.0", |
| 81 | + "tslib": "^2.8.1", |
| 82 | + "typescript": "~5.9.2", |
| 83 | + "typescript-eslint": "^8.43.0", |
| 84 | + "vitest": "^3.2.4" |
90 | 85 | }, |
91 | 86 | "peerDependencies": { |
92 | 87 | "react": "*" |
|
0 commit comments