oc 0.50.59 → 0.50.60

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 (31) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/.turbo/turbo-test-silent.log +10 -7
  3. package/CHANGELOG.md +11 -0
  4. package/dist/cli/domain/ocConfig.js +8 -0
  5. package/dist/cli/facade/dev.js +3 -3
  6. package/dist/cli/facade/publish.js +2 -2
  7. package/dist/cli/facade/validate.js +2 -2
  8. package/dist/cli/logger.js +2 -2
  9. package/dist/components/oc-client/_package/package.json +4 -4
  10. package/dist/components/oc-client/_package/server.js +1 -1
  11. package/dist/components/oc-client/_package/src/oc-client.js +3 -7
  12. package/dist/components/oc-client/_package/src/oc-client.min.js +1 -1
  13. package/dist/components/oc-client/_package/src/oc-client.min.map +1 -1
  14. package/dist/components/oc-client/package-lock.json +9 -23
  15. package/dist/components/oc-client/package.json +1 -1
  16. package/dist/components/oc-client/src/oc-client.js +3 -7
  17. package/dist/components/oc-client/src/oc-client.min.js +1 -1
  18. package/dist/components/oc-client/src/oc-client.min.map +1 -1
  19. package/dist/registry/app-start.js +8 -8
  20. package/dist/registry/domain/options-sanitiser.d.ts +14 -1
  21. package/dist/registry/domain/options-sanitiser.js +24 -1
  22. package/dist/registry/domain/validators/registry-configuration.d.ts +1 -1
  23. package/dist/registry/index.js +2 -2
  24. package/dist/registry/routes/helpers/get-component.js +2 -1
  25. package/dist/resources/index.js +8 -8
  26. package/dist/types.d.ts +17 -0
  27. package/dist/utils/colors.d.ts +14 -0
  28. package/dist/utils/colors.js +21 -0
  29. package/dist/utils/deprecate.d.ts +20 -0
  30. package/dist/utils/deprecate.js +21 -0
  31. package/package.json +4 -6
@@ -0,0 +1,14 @@
1
+ declare const colors: {
2
+ black: import("picocolors/types").Formatter;
3
+ red: import("picocolors/types").Formatter;
4
+ green: import("picocolors/types").Formatter;
5
+ yellow: import("picocolors/types").Formatter;
6
+ blue: import("picocolors/types").Formatter;
7
+ magenta: import("picocolors/types").Formatter;
8
+ cyan: import("picocolors/types").Formatter;
9
+ white: import("picocolors/types").Formatter;
10
+ gray: import("picocolors/types").Formatter;
11
+ grey: import("picocolors/types").Formatter;
12
+ };
13
+ export declare const black: import("picocolors/types").Formatter, red: import("picocolors/types").Formatter, green: import("picocolors/types").Formatter, yellow: import("picocolors/types").Formatter, blue: import("picocolors/types").Formatter, magenta: import("picocolors/types").Formatter, cyan: import("picocolors/types").Formatter, white: import("picocolors/types").Formatter, gray: import("picocolors/types").Formatter, grey: import("picocolors/types").Formatter;
14
+ export default colors;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.grey = exports.gray = exports.white = exports.cyan = exports.magenta = exports.blue = exports.yellow = exports.green = exports.red = exports.black = void 0;
7
+ const picocolors_1 = __importDefault(require("picocolors"));
8
+ const colors = {
9
+ black: picocolors_1.default.black,
10
+ red: picocolors_1.default.red,
11
+ green: picocolors_1.default.green,
12
+ yellow: picocolors_1.default.yellow,
13
+ blue: picocolors_1.default.blue,
14
+ magenta: picocolors_1.default.magenta,
15
+ cyan: picocolors_1.default.cyan,
16
+ white: picocolors_1.default.white,
17
+ gray: picocolors_1.default.gray,
18
+ grey: picocolors_1.default.gray
19
+ };
20
+ exports.black = colors.black, exports.red = colors.red, exports.green = colors.green, exports.yellow = colors.yellow, exports.blue = colors.blue, exports.magenta = colors.magenta, exports.cyan = colors.cyan, exports.white = colors.white, exports.gray = colors.gray, exports.grey = colors.grey;
21
+ exports.default = colors;
@@ -0,0 +1,20 @@
1
+ interface DeprecationNotice {
2
+ /** Stable identifier used to only warn once per process for this deprecation. */
3
+ id: string;
4
+ /** The option/API being removed. */
5
+ subject: string;
6
+ /** What to use instead. */
7
+ replacement: string;
8
+ }
9
+ /**
10
+ * Emits a single, consistent deprecation notice (once per process, per `id`)
11
+ * for a config option or API that will be removed in OpenComponents v1.
12
+ *
13
+ * Routes through `process.emitWarning` with type `DeprecationWarning`, so it
14
+ * honors the standard Node.js opt-out mechanisms (`--no-deprecation`, etc.)
15
+ * without needing a bespoke env var.
16
+ *
17
+ * This never changes runtime behavior - it is purely informational.
18
+ */
19
+ export default function deprecate({ id, subject, replacement }: DeprecationNotice): void;
20
+ export {};
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = deprecate;
4
+ const warned = new Set();
5
+ /**
6
+ * Emits a single, consistent deprecation notice (once per process, per `id`)
7
+ * for a config option or API that will be removed in OpenComponents v1.
8
+ *
9
+ * Routes through `process.emitWarning` with type `DeprecationWarning`, so it
10
+ * honors the standard Node.js opt-out mechanisms (`--no-deprecation`, etc.)
11
+ * without needing a bespoke env var.
12
+ *
13
+ * This never changes runtime behavior - it is purely informational.
14
+ */
15
+ function deprecate({ id, subject, replacement }) {
16
+ if (warned.has(id)) {
17
+ return;
18
+ }
19
+ warned.add(id);
20
+ process.emitWarning(`${subject} is deprecated and will be removed in OpenComponents v1 - use ${replacement} instead.`, 'DeprecationWarning');
21
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc",
3
- "version": "0.50.59",
3
+ "version": "0.50.60",
4
4
  "description": "A framework for developing and distributing html components",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -39,7 +39,6 @@
39
39
  "devDependencies": {
40
40
  "@biomejs/biome": "^2.5.0",
41
41
  "@types/accept-language-parser": "^1.5.8",
42
- "@types/async": "^3.2.25",
43
42
  "@types/bun": "^1.3.14",
44
43
  "@types/cookie-parser": "^1.4.10",
45
44
  "@types/cross-spawn": "^6.0.6",
@@ -74,11 +73,9 @@
74
73
  "@rdevis/turbo-stream": "^2.4.1",
75
74
  "@types/lodash.isequal": "^4.5.8",
76
75
  "accept-language-parser": "^1.5.0",
77
- "async": "^3.2.6",
78
76
  "basic-auth-connect": "^1.1.0",
79
77
  "builtin-modules": "^3.3.0",
80
78
  "chokidar": "^4.0.3",
81
- "colors": "^1.4.0",
82
79
  "cookie-parser": "^1.4.7",
83
80
  "cross-spawn": "^7.0.6",
84
81
  "dependency-graph": "^1.0.0",
@@ -92,14 +89,14 @@
92
89
  "livereload": "^0.10.3",
93
90
  "lodash.isequal": "^4.5.0",
94
91
  "morgan": "^1.11.0",
95
- "multer": "^2.0.2",
92
+ "multer": "^2.2.0",
96
93
  "nice-cache": "^0.0.5",
97
94
  "oc-client": "^4.0.3",
98
95
  "oc-client-browser": "^2.1.12",
99
96
  "oc-empty-response-handler": "^1.0.2",
100
97
  "oc-get-unix-utc-timestamp": "^1.0.6",
101
98
  "oc-metadata-adapters-utils": "^0.1.1",
102
- "oc-s3-storage-adapter": "^2.2.3",
99
+ "oc-s3-storage-adapter": "^2.2.4",
103
100
  "oc-storage-adapters-utils": "^2.1.2",
104
101
  "oc-template-es6": "^2.0.0",
105
102
  "oc-template-es6-compiler": "^7.1.4",
@@ -109,6 +106,7 @@
109
106
  "oc-template-jade-compiler": "^7.5.0",
110
107
  "open": "^10.2.0",
111
108
  "parse-author": "^2.0.0",
109
+ "picocolors": "^1.1.1",
112
110
  "read": "^1.0.7",
113
111
  "require-package-name": "^2.0.1",
114
112
  "response-time": "^2.3.4",