@revenium/anthropic 1.0.2 → 1.0.4
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 +52 -0
- package/LICENSE +20 -20
- package/README.md +456 -806
- package/examples/README.md +179 -0
- package/examples/advanced-features.ts +501 -0
- package/examples/basic-usage.ts +322 -0
- package/package.json +84 -82
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
## [1.0.4] - 2025-10-21
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
- Simplified README documentation and consolidated examples
|
|
9
|
+
- Updated documentation links to use GitHub HEAD references
|
|
10
|
+
- Enhanced .gitignore setup instructions with industry-standard reference
|
|
11
|
+
|
|
12
|
+
## [1.0.3] - 2025-10-17
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Updated publishing documentation with validated release workflow
|
|
16
|
+
|
|
17
|
+
## [1.0.2] - 2025-10-16
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
- Package maintenance and stability improvements
|
|
21
|
+
|
|
22
|
+
## [1.0.1] - 2025-10-15
|
|
23
|
+
|
|
24
|
+
### Changed
|
|
25
|
+
- Updated all package name references from `revenium-middleware-anthropic-node` to `@revenium/anthropic` throughout documentation
|
|
26
|
+
- Removed emojis from all documentation and examples for professional presentation
|
|
27
|
+
- Updated repository references to point to public repository
|
|
28
|
+
- Updated DEVELOPMENT.md with correct package installation instructions
|
|
29
|
+
- Updated PUBLISHING.md with correct npm package commands
|
|
30
|
+
|
|
31
|
+
## [1.0.0] - 2025-10-14
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
- Transparent middleware for Anthropic Claude usage tracking
|
|
35
|
+
- Automatic metadata integration with native TypeScript support
|
|
36
|
+
- Streaming support for real-time responses
|
|
37
|
+
- Fire-and-forget tracking (non-blocking)
|
|
38
|
+
- Comprehensive analytics tracking (users, organizations, custom business data)
|
|
39
|
+
- Tool use support (function calling)
|
|
40
|
+
- Multi-modal support (text, images, etc.)
|
|
41
|
+
- Dual package exports (CJS + ESM) support
|
|
42
|
+
- Enhanced TypeScript definitions and JSDoc documentation
|
|
43
|
+
- Full TypeScript and JavaScript support
|
|
44
|
+
- Circuit breaker pattern for reliability
|
|
45
|
+
- Configurable retry logic
|
|
46
|
+
- Debug logging support
|
|
47
|
+
|
|
48
|
+
[1.0.4]: https://github.com/revenium/revenium-middleware-anthropic-node/releases/tag/v1.0.4
|
|
49
|
+
[1.0.3]: https://github.com/revenium/revenium-middleware-anthropic-node/releases/tag/v1.0.3
|
|
50
|
+
[1.0.2]: https://github.com/revenium/revenium-middleware-anthropic-node/releases/tag/v1.0.2
|
|
51
|
+
[1.0.1]: https://github.com/revenium/revenium-middleware-anthropic-node/releases/tag/v1.0.1
|
|
52
|
+
[1.0.0]: https://github.com/revenium/revenium-middleware-anthropic-node/releases/tag/v1.0.0
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Revenium, Inc.
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Revenium, Inc.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|