@copilotkit/react-textarea 1.52.0 → 1.52.1-next.1
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
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# ui
|
|
2
2
|
|
|
3
|
+
## 1.52.1-next.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [b555ac4]
|
|
8
|
+
- @copilotkit/react-core@1.52.1-next.1
|
|
9
|
+
- @copilotkit/runtime-client-gql@1.52.1-next.1
|
|
10
|
+
- @copilotkit/shared@1.52.1-next.1
|
|
11
|
+
|
|
12
|
+
## 1.52.1-next.0
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- bbdf67d: fix(css): address imcompat with CJS
|
|
17
|
+
- @copilotkit/react-core@1.52.1-next.0
|
|
18
|
+
- @copilotkit/runtime-client-gql@1.52.1-next.0
|
|
19
|
+
- @copilotkit/shared@1.52.1-next.0
|
|
20
|
+
|
|
3
21
|
## 1.52.0
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
13
|
-
"version": "1.52.
|
|
13
|
+
"version": "1.52.1-next.1",
|
|
14
14
|
"sideEffects": [
|
|
15
15
|
"**/*.css"
|
|
16
16
|
],
|
|
@@ -70,9 +70,9 @@
|
|
|
70
70
|
"slate-history": "^0.93.0",
|
|
71
71
|
"slate-react": "^0.98.1",
|
|
72
72
|
"tailwind-merge": "^1.13.2",
|
|
73
|
-
"@copilotkit/react-core": "1.52.
|
|
74
|
-
"@copilotkit/runtime-client-gql": "1.52.
|
|
75
|
-
"@copilotkit/shared": "1.52.
|
|
73
|
+
"@copilotkit/react-core": "1.52.1-next.1",
|
|
74
|
+
"@copilotkit/runtime-client-gql": "1.52.1-next.1",
|
|
75
|
+
"@copilotkit/shared": "1.52.1-next.1"
|
|
76
76
|
},
|
|
77
77
|
"keywords": [
|
|
78
78
|
"copilotkit",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { describe, it, expect } from "vitest";
|
|
2
|
+
import * as fs from "node:fs";
|
|
3
|
+
import * as path from "node:path";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Validates that packages with "type": "module" don't ship .js files using
|
|
7
|
+
* CommonJS syntax (require/module.exports). Consumers' build tools (e.g.
|
|
8
|
+
* postcss-loader) may discover these config files and fail because Node
|
|
9
|
+
* treats .js as ESM in "type": "module" packages.
|
|
10
|
+
*
|
|
11
|
+
* Fix: rename CJS files to .cjs so Node always treats them as CommonJS.
|
|
12
|
+
*/
|
|
13
|
+
describe("ESM compatibility", () => {
|
|
14
|
+
const pkgRoot = path.resolve(__dirname, "..");
|
|
15
|
+
const pkg = JSON.parse(
|
|
16
|
+
fs.readFileSync(path.join(pkgRoot, "package.json"), "utf-8"),
|
|
17
|
+
);
|
|
18
|
+
|
|
19
|
+
it('should not have .js config files with CJS syntax when package uses "type": "module"', () => {
|
|
20
|
+
if (pkg.type !== "module") return;
|
|
21
|
+
|
|
22
|
+
const jsFiles = fs
|
|
23
|
+
.readdirSync(pkgRoot)
|
|
24
|
+
.filter((f) => f.endsWith(".config.js") || f === ".postcssrc.js");
|
|
25
|
+
|
|
26
|
+
const cjsFiles: string[] = [];
|
|
27
|
+
for (const file of jsFiles) {
|
|
28
|
+
const content = fs.readFileSync(path.join(pkgRoot, file), "utf-8");
|
|
29
|
+
if (content.includes("require(") || content.includes("module.exports")) {
|
|
30
|
+
cjsFiles.push(file);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
expect(cjsFiles).toEqual(expect.arrayContaining([]));
|
|
35
|
+
expect(cjsFiles).toHaveLength(0);
|
|
36
|
+
if (cjsFiles.length > 0) {
|
|
37
|
+
throw new Error(
|
|
38
|
+
`These files use CommonJS syntax but will be treated as ESM because ` +
|
|
39
|
+
`package.json has "type": "module". Rename them to .cjs:\n` +
|
|
40
|
+
cjsFiles.map((f) => ` - ${f}`).join("\n"),
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
File without changes
|
|
File without changes
|