targwire 1.1.0 → 1.2.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 +12 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -309,3 +309,15 @@ test('override de use case', async () => {
309
309
  ## Licença
310
310
 
311
311
  MIT © Rafael Targino
312
+
313
+ ---
314
+
315
+ ### Exemplo completo (Expo + Decorators + React Query + Zustand)
316
+
317
+ - Veja `examples/expo-zustand-react-query` para um app Expo que usa decorators com TargWire, React Query e Zustand consumindo a API do JSONPlaceholder.
318
+ - Inclui `babel.config.js` (com `@babel/plugin-proposal-decorators` e `babel-plugin-transform-typescript-metadata`) e `tsconfig.json` configurados para decorators.
319
+
320
+ **Importante (Expo):** para que os decorators (`@Injectable`, `@Inject`, `@Resolve`) funcionem, copie para a raiz do seu app:
321
+ - `babel.config.js` com os plugins acima (decorators deve vir antes do metadata).
322
+ - `tsconfig.json` com `experimentalDecorators` e `emitDecoratorMetadata` habilitados.
323
+ - Além disso, instale como dependências de desenvolvimento: `@babel/plugin-proposal-decorators` e `babel-plugin-transform-typescript-metadata`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "targwire",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "TargWire – mini IoC para TS/JS com Singleton, Transient e Scoped (ideal para Expo/React Native).",
5
5
  "repository": {
6
6
  "type": "git",