zephyr-repack-plugin 0.0.49 → 0.0.51

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/README.md CHANGED
@@ -1,14 +1,25 @@
1
1
  # Zephyr Repack Plugin
2
2
 
3
- `zephyr-repack-plugin` is a plugin to deploy cross-platform application built with [React Native](https://reactnative.dev), [Rspack](https://rspack.dev) and [Re.Pack](https://re-pack.dev) and enable Over-The-Air updates capablities for federated applications.
4
-
5
3
  <div align="center">
6
4
 
7
- [Zephyr Cloud](https://zephyr-cloud.io) | [Zephyr Docs](https://docs.zephyr-cloud.io/recipes/repack-mf) | [Rspack Docs](https://rspack.dev) | [Re.Pack Docs](https://re-pack.dev) | [Discord](https://zephyr-cloud.io/discord) | [Twitter](https://x.com/ZephyrCloudIO) | [LinkedIn](https://www.linkedin.com/company/zephyr-cloud/)
5
+ [Zephyr Cloud](https://zephyr-cloud.io) | [Zephyr Docs](https://docs.zephyr-cloud.io/recipes/repack-mf) | [Discord](https://zephyr-cloud.io/discord) | [Twitter](https://x.com/ZephyrCloudIO) | [LinkedIn](https://www.linkedin.com/company/zephyr-cloud/)
8
6
 
9
7
  <hr/>
8
+ <img src="https://cdn.prod.website-files.com/669061ee3adb95b628c3acda/66981c766e352fe1f57191e2_Opengraph-zephyr.png" alt="Zephyr Logo" />
10
9
  </div>
11
10
 
11
+ A React Native plugin for deploying cross-platform applications built with [React Native](https://reactnative.dev), [Rspack](https://rspack.dev) and [Re.Pack](https://re-pack.dev). This plugin enables Over-The-Air updates capabilities for federated applications and seamless deployment to Zephyr Cloud.
12
+
13
+ ## Get Started
14
+
15
+ The fastest way to get started is to use `create-zephyr-apps` to generate a new React Native application with Zephyr integration and choose from React Native example:
16
+
17
+ ```bash
18
+ npx create-zephyr-apps@latest
19
+ ```
20
+
21
+ For more information, please refer to our [documentation](https://docs.zephyr-cloud.io/recipes/repack-mf) for Repack and also a comprehensive guide to work with Re.Pack [here](https://docs.zephyr-cloud.io/recipes/react-native).
22
+
12
23
  ## Installation
13
24
 
14
25
  Installing the `zephyr-repack-plugin` for your cross-platform application:
@@ -125,3 +136,29 @@ npx create-zephyr-apps@latest
125
136
  ```
126
137
 
127
138
  This will create a new React Native application with Zephyr enabled, configured, and ready to use. [Read more about what this command would create here](https://docs.zephyr-cloud.io/recipes/repack-mf).
139
+
140
+ ## Features
141
+
142
+ - 📱 Cross-platform React Native support (iOS, Android)
143
+ - 🚀 Over-The-Air (OTA) updates for federated applications
144
+ - 🏗️ Module Federation support with Re.Pack
145
+ - ⚡ Rspack for fast bundling and building
146
+ - 🔧 Zero-config setup with minimal configuration
147
+ - 📊 Build analytics and monitoring
148
+ - 🌐 Global CDN distribution for mobile assets
149
+
150
+ ## Requirements
151
+
152
+ - React Native 0.70 or higher
153
+ - Re.Pack 3.x or higher
154
+ - Rspack 0.3 or higher
155
+ - Node.js 18 or higher
156
+ - Zephyr Cloud account (sign up at [zephyr-cloud.io](https://zephyr-cloud.io))
157
+
158
+ ## Contributing
159
+
160
+ We welcome contributions! Please read our [contributing guidelines](../../CONTRIBUTING.md) for more information.
161
+
162
+ ## License
163
+
164
+ Licensed under the Apache-2.0 License. See [LICENSE](LICENSE) for more information.
package/dist/README.md CHANGED
@@ -1,14 +1,25 @@
1
1
  # Zephyr Repack Plugin
2
2
 
3
- `zephyr-repack-plugin` is a plugin to deploy cross-platform application built with [React Native](https://reactnative.dev), [Rspack](https://rspack.dev) and [Re.Pack](https://re-pack.dev) and enable Over-The-Air updates capablities for federated applications.
4
-
5
3
  <div align="center">
6
4
 
7
- [Zephyr Cloud](https://zephyr-cloud.io) | [Zephyr Docs](https://docs.zephyr-cloud.io/recipes/repack-mf) | [Rspack Docs](https://rspack.dev) | [Re.Pack Docs](https://re-pack.dev) | [Discord](https://zephyr-cloud.io/discord) | [Twitter](https://x.com/ZephyrCloudIO) | [LinkedIn](https://www.linkedin.com/company/zephyr-cloud/)
5
+ [Zephyr Cloud](https://zephyr-cloud.io) | [Zephyr Docs](https://docs.zephyr-cloud.io/recipes/repack-mf) | [Discord](https://zephyr-cloud.io/discord) | [Twitter](https://x.com/ZephyrCloudIO) | [LinkedIn](https://www.linkedin.com/company/zephyr-cloud/)
8
6
 
9
7
  <hr/>
8
+ <img src="https://cdn.prod.website-files.com/669061ee3adb95b628c3acda/66981c766e352fe1f57191e2_Opengraph-zephyr.png" alt="Zephyr Logo" />
10
9
  </div>
11
10
 
11
+ A React Native plugin for deploying cross-platform applications built with [React Native](https://reactnative.dev), [Rspack](https://rspack.dev) and [Re.Pack](https://re-pack.dev). This plugin enables Over-The-Air updates capabilities for federated applications and seamless deployment to Zephyr Cloud.
12
+
13
+ ## Get Started
14
+
15
+ The fastest way to get started is to use `create-zephyr-apps` to generate a new React Native application with Zephyr integration and choose from React Native example:
16
+
17
+ ```bash
18
+ npx create-zephyr-apps@latest
19
+ ```
20
+
21
+ For more information, please refer to our [documentation](https://docs.zephyr-cloud.io/recipes/repack-mf) for Repack and also a comprehensive guide to work with Re.Pack [here](https://docs.zephyr-cloud.io/recipes/react-native).
22
+
12
23
  ## Installation
13
24
 
14
25
  Installing the `zephyr-repack-plugin` for your cross-platform application:
@@ -125,3 +136,29 @@ npx create-zephyr-apps@latest
125
136
  ```
126
137
 
127
138
  This will create a new React Native application with Zephyr enabled, configured, and ready to use. [Read more about what this command would create here](https://docs.zephyr-cloud.io/recipes/repack-mf).
139
+
140
+ ## Features
141
+
142
+ - 📱 Cross-platform React Native support (iOS, Android)
143
+ - 🚀 Over-The-Air (OTA) updates for federated applications
144
+ - 🏗️ Module Federation support with Re.Pack
145
+ - ⚡ Rspack for fast bundling and building
146
+ - 🔧 Zero-config setup with minimal configuration
147
+ - 📊 Build analytics and monitoring
148
+ - 🌐 Global CDN distribution for mobile assets
149
+
150
+ ## Requirements
151
+
152
+ - React Native 0.70 or higher
153
+ - Re.Pack 3.x or higher
154
+ - Rspack 0.3 or higher
155
+ - Node.js 18 or higher
156
+ - Zephyr Cloud account (sign up at [zephyr-cloud.io](https://zephyr-cloud.io))
157
+
158
+ ## Contributing
159
+
160
+ We welcome contributions! Please read our [contributing guidelines](../../CONTRIBUTING.md) for more information.
161
+
162
+ ## License
163
+
164
+ Licensed under the Apache-2.0 License. See [LICENSE](LICENSE) for more information.
@@ -20,7 +20,7 @@ function withZephyr(zephyrPluginOptions) {
20
20
  ...zephyrPluginOptions,
21
21
  target: config.platform,
22
22
  };
23
- (0, zephyr_agent_1.ze_log)('updatedZephyrConfig: ', updatedZephyrConfig);
23
+ zephyr_agent_1.ze_log.init('updatedZephyrConfig: ', updatedZephyrConfig);
24
24
  // Return the final processed configuration
25
25
  return _zephyr_configuration(userConfig, updatedZephyrConfig);
26
26
  };
@@ -35,21 +35,21 @@ _zephyrOptions) {
35
35
  builder: 'repack',
36
36
  context: config.context,
37
37
  });
38
- (0, zephyr_agent_1.ze_log)('Configuring with Zephyr... \n config: ', config);
38
+ zephyr_agent_1.ze_log.init('Configuring with Zephyr... \n config: ', config);
39
39
  if (!_zephyrOptions?.target) {
40
40
  throw new zephyr_agent_1.ZephyrError(zephyr_agent_1.ZeErrors.ERR_MISSING_PLATFORM);
41
41
  }
42
42
  zephyr_engine.env.target = _zephyrOptions?.target;
43
43
  const dependency_pairs = (0, zephyr_xpack_internal_1.extractFederatedDependencyPairs)(config);
44
- (0, zephyr_agent_1.ze_log)('Resolving and building towards target by zephyr_engine.env.target: ', zephyr_engine.env.target);
44
+ zephyr_agent_1.ze_log.init('Resolving and building towards target by zephyr_engine.env.target: ', zephyr_engine.env.target);
45
45
  const resolved_dependency_pairs = await zephyr_engine.resolve_remote_dependencies(dependency_pairs);
46
46
  (0, zephyr_xpack_internal_1.mutWebpackFederatedRemotesConfig)(zephyr_engine, config, resolved_dependency_pairs);
47
- (0, zephyr_agent_1.ze_log)('dependency resolution completed successfully...or at least trying to...');
47
+ zephyr_agent_1.ze_log.remotes('dependency resolution completed successfully...or at least trying to...');
48
48
  const mf_configs = (0, zephyr_xpack_internal_1.makeCopyOfModuleFederationOptions)(config);
49
49
  // const app_config = await zephyr_engine.application_configuration;
50
50
  // Verify Module Federation configuration's naming
51
51
  await (0, ze_util_verification_1.verify_mf_fastly_config)(mf_configs, zephyr_engine);
52
- (0, zephyr_agent_1.ze_log)('Application uid created...');
52
+ zephyr_agent_1.ze_log.app('Application uid created...');
53
53
  config.plugins?.push(new ze_repack_plugin_1.ZeRepackPlugin({
54
54
  zephyr_engine,
55
55
  mfConfig: (0, zephyr_xpack_internal_1.makeCopyOfModuleFederationOptions)(config),
@@ -1 +1 @@
1
- {"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/lib/with-zephyr.ts"],"names":[],"mappings":";;AAWA,gCA8BC;AAxCD,+CAAkF;AAClF,iEAI+B;AAE/B,uEAAuE;AACvE,yDAAoF;AAEpF,SAAgB,UAAU,CAAC,mBAA+C;IAOxE,2DAA2D;IAC3D,OAAO,CAAC,QAA2C,EAAE,EAAE;QACrD,qFAAqF;QACrF,OAAO,CAAC,MAAiB,EAAE,EAAE;YAC3B,kCAAkC;YAElC,0DAA0D;YAC1D,MAAM,UAAU,GAAG,QAAQ,CAAC;gBAC1B,QAAQ,EAAE,MAAM,CAAC,QAAQ;gBACzB,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB,CAAC,CAAC;YAEH,MAAM,mBAAmB,GAAG;gBAC1B,GAAG,mBAAmB;gBACtB,MAAM,EAAE,MAAM,CAAC,QAAQ;aACK,CAAC;YAE/B,IAAA,qBAAM,EAAC,uBAAuB,EAAE,mBAAmB,CAAC,CAAC;YAErD,2CAA2C;YAC3C,OAAO,qBAAqB,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAC;QAChE,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AACD,KAAK,UAAU,qBAAqB,CAClC,MAAqB;AACrB,6DAA6D;AAC7D,cAA0C;IAE1C,IAAI,CAAC;QACH,2DAA2D;QAC3D,MAAM,aAAa,GAAG,MAAM,2BAAY,CAA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AG,CAAC,MAAM,GAAG,cAAc,EAAE,MAAM,CAAC;QAElD,MAAM,gBAAgB,GAAG,IAAA,uDAA+B,EAAC,MAAM,CAAC,CAAC;QAEjE,qBAAM,CAAC,IAAI,CACT,qEAAqE,EACrE,aAAa,CAAC,GAAG,CAAC,MAAM,CACzB,CAAC;QAEF,MAAM,yBAAyB,GAC7B,MAAM,aAAa,CAAC,2BAA2B,CAAC,gBAAgB,CAAC,CAAC;QACpE,IAAA,wDAAgC,EAAC,aAAa,EAAE,MAAM,EAAE,yBAAyB,CAAC,CAAC;QAEnF,qBAAM,CAAC,OAAO,CACZ,yEAAyE,CAC1E,CAAC;QAEF,MAAM,UAAU,GAAG,IAAA,yDAAiC,EAAC,MAAM,CAAC,CAAC;QAC7D,oEAAoE;QACpE,kDAAkD;QAClD,MAAM,IAAA,8CAAuB,EAAC,UAAU,EAAE,aAAa,CAAC,CAAC;QAEzD,qBAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAAC;QACzC,MAAM,CAAC,OAAO,EAAE,IAAI,CAClB,IAAI,iCAAc,CAAC;YACjB,aAAa;YACb,QAAQ,EAAE,IAAA,yDAAiC,EAAC,MAAM,CAAC;YACnD,MAAM,EAAE,aAAa,CAAC,GAAG,CAAC,MAAM;SACjC,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-repack-plugin",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "Repack plugin for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zephyr-repack-plugin",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "description": "Repack plugin for Zephyr",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,8 +16,8 @@
16
16
  "main": "dist/index.js",
17
17
  "typings": "dist/index.d.ts",
18
18
  "dependencies": {
19
- "zephyr-agent": "0.0.49",
20
- "zephyr-xpack-internal": "0.0.49"
19
+ "zephyr-agent": "0.0.51",
20
+ "zephyr-xpack-internal": "0.0.51"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@rspack/core": "1.2.8",