@carlos-tzin/tzin 0.1.11 → 1.0.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,86 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.1 — Repo moved to Tzinny-dev
4
+
5
+ Metadata-only release after the source repository moved from
6
+ `github.com/Charly921/tzin` to `github.com/Tzinny-dev/tzin`. No API changes.
7
+
8
+ ## 1.0.0 — Stable Release
9
+
10
+ The first stable release of tzin. Contract-first TypeScript framework with
11
+ realtime, AI-native tooling, and a complete development experience.
12
+
13
+ ### What's new since 0.1.2
14
+
15
+ #### Project Structure
16
+
17
+ - Convention-based project layout: `src/routes/`, `src/middleware/`, `src/app.ts`
18
+ - Config system: `defineConfig()`, auto-detection of `src/app.ts`
19
+ - Dev server: `tzin dev` with hot reload and route table display
20
+
21
+ #### CLI
22
+
23
+ - `tzin dev [entry] [--port N]` — dev server with hot reload
24
+ - `tzin build` — production build
25
+ - `tzin deploy --target node|workers` — deploy to production
26
+ - `tzin generate route <name>` — scaffold a route
27
+ - `tzin generate middleware <name>` — scaffold middleware
28
+ - `tzin generate test <name>` — scaffold a test
29
+
30
+ #### Database
31
+
32
+ - `defineModel(table, schema)` — type-safe ORM with query builder
33
+ - `findById`, `findFirst`, `findMany` — CRUD operations
34
+ - Chainable query builder: `.where().limit().orderBy()`
35
+ - Extensible store adapters: `setStore(adapter)`
36
+
37
+ #### Authentication
38
+
39
+ - `bearerAuth({ secret })` — JWT Bearer token validation
40
+ - `optionalAuth({ secret })` — non-strict JWT validation
41
+ - `apiKeyAuth({ key })` — API key authentication
42
+ - `signJwt()` / `verifyJwt()` — JWT utilities
43
+
44
+ #### Jobs & Tasks
45
+
46
+ - `defineJob<Payload>(config)` — background job definition
47
+ - `job.enqueue(payload)` — job queue with retry
48
+ - `handle.wait()` — wait for job completion
49
+
50
+ #### Logging
51
+
52
+ - `log.info/warn/error/fatal` — structured logging
53
+ - `log.child(prefix)` — scoped child loggers
54
+ - `configure({ level, pretty })` — global configuration
55
+
56
+ #### Rate Limiting
57
+
58
+ - `rateLimit({ max, windowMs })` — request rate limiting
59
+ - `strictRateLimit()` — strict limiting for sensitive endpoints
60
+ - Custom store adapters for distributed rate limiting
61
+
62
+ #### Caching
63
+
64
+ - `cache({ ttl })` — HTTP response caching
65
+ - `staleWhileRevalidate()` — stale-while-revalidate pattern
66
+ - Cache headers: X-Cache, Cache-Control, ETag
67
+
68
+ #### Testing
69
+
70
+ - `createTestClient(app)` — API test client
71
+ - `expectSchema(schema, value)` — schema validation
72
+ - `mockSections(contract)` — mock data generation
73
+
74
+ #### Documentation
75
+
76
+ - Complete API Reference with all modules
77
+ - Architecture Guide
78
+ - Updated README with feature table
79
+
80
+ ### Backwards Compatibility
81
+
82
+ This release is backwards compatible with 0.1.x.
83
+
3
84
  ## 0.1.2
4
85
 
5
86
  - Added `create-tzin` scaffolding CLI (`npx create-tzin my-app`)
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  > `tzin` — from Nahuatl *-tzin*, an honorific suffix for what is valued and beloved.
6
6
  > A pact between client and server, declared once.
7
7
 
8
- [![CI](https://github.com/Charly921/tzin/actions/workflows/ci.yml/badge.svg)](https://github.com/Charly921/tzin/actions/workflows/ci.yml)
8
+ [![CI](https://github.com/Tzinny-dev/tzin/actions/workflows/ci.yml/badge.svg)](https://github.com/Tzinny-dev/tzin/actions/workflows/ci.yml)
9
9
  [![npm](https://img.shields.io/npm/v/@carlos-tzin/tzin)](https://www.npmjs.com/package/@carlos-tzin/tzin)
10
10
 
11
11
  **Status: experimental, pre-1.0.** The core works end-to-end and the scaling thesis is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlos-tzin/tzin",
3
- "version": "0.1.11",
3
+ "version": "1.0.1",
4
4
  "description": "Contract-first TypeScript framework. Types that scale, realtime channels with presence, and an MCP server for every API.",
5
5
  "license": "MIT",
6
6
  "author": "The tzin authors",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "repository": {
23
23
  "type": "git",
24
- "url": "git+https://github.com/Charly921/tzin.git"
24
+ "url": "git+https://github.com/Tzinny-dev/tzin.git"
25
25
  },
26
26
  "type": "module",
27
27
  "main": "./dist/index.js",