@opra/core 1.28.4 → 1.28.5

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 (3) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +32 -4
  3. package/package.json +3 -2
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Panates
3
+ Copyright (c) 2020-present Panates®
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,19 +1,47 @@
1
+ <div align="center">
2
+
3
+ <a href="https://oprajs.com">
4
+ <img src="https://oprajs.com/img/opra-header-block.webp" width="880" alt="OPRA — Open Platform for Rich APIs" />
5
+ </a>
6
+
1
7
  # @opra/core
2
8
 
9
+ Runtime engine of the OPRA framework — request lifecycle, validation, and routing
10
+
3
11
  [![NPM Version][npm-image]][npm-url]
4
12
  [![NPM Downloads][downloads-image]][downloads-url]
5
13
  [![CI Tests][ci-test-image]][ci-test-url]
6
14
  [![Test Coverage][coveralls-image]][coveralls-url]
7
15
 
16
+ [🌐 Documentation](https://oprajs.com) · [🚀 Getting Started](https://oprajs.com/docs/introduction) · [📦 Packages](https://github.com/panates/opra#packages) · [💬 Issues](https://github.com/panates/opra/issues)
17
+
18
+ </div>
19
+
20
+ ---
21
+
22
+ Core runtime package of the [OPRA](https://oprajs.com) framework. Provides the execution engine, platform adapter base classes, service patterns, and infrastructure utilities that all OPRA adapters and services depend on.
8
23
 
9
- ## Support
10
- You can report bugs and discuss features on the [GitHub issues](https://github.com/panates/opra/issues) page.
24
+ ## Features
25
+
26
+ - **Platform Adapter Base** — Abstract foundation for HTTP, Socket.IO, Kafka, RabbitMQ, and other transport adapters
27
+ - **Execution Context** — Request-scoped context carrying adapter, document, transport, and platform references
28
+ - **Service Pattern** — `ServiceBase` with context propagation and immutable `.for()` cloning
29
+ - **i18n Support** — Built-in internationalization with lazy-loading of resource bundles and localized error messages
30
+ - **Asset Cache** — WeakMap-based cache for automatic memory-safe asset lifecycle management
31
+ - **Event-Driven** — `AsyncEventEmitter`-based lifecycle hooks on both adapters and execution contexts
32
+
33
+ ## Installation
34
+
35
+ ```bash
36
+ npm install @opra/core
37
+ ```
11
38
 
12
39
  ## Node Compatibility
13
- - node >= 20.x
14
40
 
41
+ - node >= 20.x
15
42
 
16
43
  ## License
44
+
17
45
  Available under [MIT](LICENSE) license.
18
46
 
19
47
  [npm-image]: https://img.shields.io/npm/v/@opra/core
@@ -22,5 +50,5 @@ Available under [MIT](LICENSE) license.
22
50
  [downloads-url]: https://npmjs.org/package/@opra/core
23
51
  [ci-test-image]: https://github.com/panates/opra/actions/workflows/test.yml/badge.svg
24
52
  [ci-test-url]: https://github.com/panates/opra/actions/workflows/test.yml
25
- [coveralls-image]: https://coveralls.io/repos/github/panates/opra/badge.svg?branch=main
53
+ [coveralls-image]: https://coveralls.io/repos/github/panates/opra/badge.svg?branch=dev
26
54
  [coveralls-url]: https://coveralls.io/github/panates/opra?branch=main
package/package.json CHANGED
@@ -1,16 +1,17 @@
1
1
  {
2
2
  "name": "@opra/core",
3
- "version": "1.28.4",
3
+ "version": "1.28.5",
4
4
  "description": "Opra schema package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
+ "homepage": "https://www.oprajs.com",
7
8
  "dependencies": {
8
9
  "node-events-async": "^1.5.2",
9
10
  "reflect-metadata": "^0.2.2",
10
11
  "tslib": "^2.8.1"
11
12
  },
12
13
  "peerDependencies": {
13
- "@opra/common": "^1.28.4"
14
+ "@opra/common": "^1.28.5"
14
15
  },
15
16
  "type": "module",
16
17
  "module": "./index.js",