@ic-reactor/vite-plugin 0.10.0 → 0.11.0

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.
Files changed (2) hide show
  1. package/README.md +8 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -92,10 +92,17 @@ Supported `target` values:
92
92
  When `injectEnvironment` is enabled during `vite dev`, the plugin:
93
93
 
94
94
  1. asks `icp` for the local network status
95
- 2. resolves configured canister IDs
95
+ 2. resolves canister IDs — `internet_identity` is added automatically if not
96
+ already in your canister list
96
97
  3. sets the `ic_env` cookie
97
98
  4. proxies `/api` to the local replica
98
99
 
100
+ If a canister has a `canisterId` set in the plugin config, that value overrides
101
+ the auto-detected ID for that canister.
102
+
103
+ Set the `ICP_ENVIRONMENT` environment variable to target a non-default network
104
+ (defaults to `"local"`).
105
+
99
106
  If environment detection fails, the plugin still falls back to proxying `/api`
100
107
  to `http://127.0.0.1:4943`, but it will not inject canister metadata.
101
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ic-reactor/vite-plugin",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "description": "Vite plugin for zero-config IC reactor generation from Candid files",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -37,7 +37,7 @@
37
37
  "url": "https://github.com/B3Pay/ic-reactor/issues"
38
38
  },
39
39
  "dependencies": {
40
- "@ic-reactor/codegen": "0.10.0"
40
+ "@ic-reactor/codegen": "0.11.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"