oc 0.50.47 → 0.50.49
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/.turbo/turbo-build.log +18 -0
- package/.turbo/turbo-lint.log +5 -0
- package/.turbo/turbo-test-silent.log +43 -0
- package/.turbo/turbo-test.log +1612 -0
- package/CHANGELOG.md +385 -13
- package/README.md +4 -4
- package/dist/cli/domain/registry.js +5 -5
- package/dist/cli/facade/dev.js +1 -1
- package/dist/cli/facade/publish.js +1 -1
- package/dist/components/oc-client/_package/package.json +4 -4
- package/dist/components/oc-client/_package/server.js +1 -1
- package/dist/components/oc-client/_package/src/oc-client.js +7 -133
- package/dist/components/oc-client/_package/src/oc-client.min.js +1 -15
- package/dist/components/oc-client/_package/src/oc-client.min.map +1 -1
- package/dist/components/oc-client/package.json +1 -1
- package/dist/components/oc-client/src/oc-client.js +7 -133
- package/dist/components/oc-client/src/oc-client.min.js +1 -15
- package/dist/components/oc-client/src/oc-client.min.map +1 -1
- package/dist/registry/domain/components-details.js +44 -10
- package/dist/registry/domain/nested-renderer.js +1 -1
- package/dist/registry/domain/repository.js +15 -4
- package/dist/registry/domain/url-builder.js +1 -1
- package/dist/registry/domain/validators/oc-cli-version.js +3 -1
- package/dist/registry/domain/validators/registry-configuration.js +3 -4
- package/dist/registry/routes/component-info.js +1 -1
- package/dist/registry/routes/helpers/format-error-stack.js +0 -31
- package/dist/registry/routes/helpers/get-component.js +37 -26
- package/dist/registry/routes/index.js +1 -1
- package/dist/registry/routes/validate.js +1 -1
- package/dist/registry/views/partials/components-list.js +1 -1
- package/dist/registry/views/static/index.d.ts +1 -1
- package/dist/registry/views/static/index.js +39 -5
- package/dist/registry/views/static/style.d.ts +1 -1
- package/dist/registry/views/static/style.js +20 -16
- package/dist/utils/clean-require.js +1 -1
- package/dist/utils/module-exists.js +1 -1
- package/logintervals.md +1 -1
- package/package.json +121 -128
- package/tsconfig.json +33 -33
- package/.editorconfig +0 -9
- package/.github/ISSUE_TEMPLATE.md +0 -29
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -21
- package/.github/workflows/node.js.yml +0 -29
- package/.nvmrc +0 -1
- package/.prettierrc +0 -8
- package/.yarnrc.yml +0 -1
- package/AGENTS.md +0 -58
- package/CONTRIBUTING.md +0 -68
- package/LICENSE +0 -20
- package/biome.json +0 -52
- package/lefthook.yml +0 -5
- package/logo-type.png +0 -0
- package/logo.png +0 -0
package/AGENTS.md
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
## Rules
|
|
2
|
-
|
|
3
|
-
### 1. File & Folder Organization
|
|
4
|
-
- **Domain-driven structure**: Organize code by business domains (`cli/`, `registry/`, `components/`, `utils/`)
|
|
5
|
-
- **Subfolder patterns**: Use consistent patterns (`domain/`, `routes/`, `views/`, `middleware/`)
|
|
6
|
-
- **File naming**: Use kebab-case for all files and folders (`components-cache`, `package-json-validator`)
|
|
7
|
-
- **Module exports**: Use `index.ts` files for clean public APIs and re-exports
|
|
8
|
-
- **Centralized types**: Place shared TypeScript interfaces in `src/types.ts`
|
|
9
|
-
|
|
10
|
-
### 2. TypeScript Coding Standards
|
|
11
|
-
- **Strict compilation**: All code must pass TypeScript strict mode checks
|
|
12
|
-
- **Interface design**: Use comprehensive interfaces with optional properties (`?` syntax)
|
|
13
|
-
- **Type imports**: Use `import type` for type-only dependencies
|
|
14
|
-
- **Union types**: Use union types for constrained values (`'oc-registry' | 'oc-registry-local'`)
|
|
15
|
-
- **Generic interfaces**: Extend base types like `PackageJson` for specialized interfaces
|
|
16
|
-
- **Naming conventions**:
|
|
17
|
-
- camelCase for variables/functions (`componentName`, `getComponent`)
|
|
18
|
-
- PascalCase for interfaces/types (`Component`, `RegistryOptions`)
|
|
19
|
-
- UPPER_CASE for constants (`DEFAULT_PORT`)
|
|
20
|
-
|
|
21
|
-
### 3. Code Style & Patterns
|
|
22
|
-
- **Import organization**: Group imports (Node.js with `node:` prefix, external libraries, local modules)
|
|
23
|
-
- **Function style**: Use arrow functions for simple operations, function declarations for main functions
|
|
24
|
-
- **Async patterns**: Prefer async/await over Promise chains
|
|
25
|
-
- **Object destructuring**: Use destructuring in function parameters
|
|
26
|
-
- **Descriptive naming**: Use clear, descriptive function names (`getComponentRetrievingInfo` vs `getComp`)
|
|
27
|
-
|
|
28
|
-
---
|
|
29
|
-
|
|
30
|
-
## File Structure Enforcement
|
|
31
|
-
|
|
32
|
-
### Required Directory Structure
|
|
33
|
-
```
|
|
34
|
-
src/
|
|
35
|
-
├── cli/
|
|
36
|
-
│ ├── commands.ts
|
|
37
|
-
│ ├── domain/ # Business logic
|
|
38
|
-
│ ├── facade/ # Public APIs
|
|
39
|
-
│ └── programmatic-api.ts
|
|
40
|
-
├── registry/
|
|
41
|
-
│ ├── routes/ # Express routes
|
|
42
|
-
│ ├── domain/ # Business logic
|
|
43
|
-
│ │ └── validators/ # Input validation
|
|
44
|
-
│ ├── views/ # JSX components
|
|
45
|
-
│ │ └── partials/ # Reusable components
|
|
46
|
-
│ └── middleware/ # Express middleware
|
|
47
|
-
├── components/ # Component implementations
|
|
48
|
-
├── utils/ # Shared utilities
|
|
49
|
-
├── types.ts # Centralized type definitions
|
|
50
|
-
└── resources/ # Static resources
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
### File Extension Rules
|
|
54
|
-
- `.ts` for TypeScript modules and business logic
|
|
55
|
-
- `.tsx` for React/JSX components and views
|
|
56
|
-
- `index.ts` for module exports and public APIs
|
|
57
|
-
|
|
58
|
-
---
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
# Contributing guidelines
|
|
2
|
-
|
|
3
|
-
Contributes are more than welcome!
|
|
4
|
-
|
|
5
|
-
## Troubleshooting
|
|
6
|
-
|
|
7
|
-
If you find an issue, feel free to check the [issues](https://github.com/opencomponents/oc/issues) page, and open a new one if you need.
|
|
8
|
-
|
|
9
|
-
### Sending a Pull Request
|
|
10
|
-
|
|
11
|
-
If you want to send a Pull Request, ensure you join the conversation first on the [issues page](https://github.com/opencomponents/oc/issues)! This is to avoid multiple people working on the same thing. You can get in touch via the [chat](https://gitter.im/opentable/oc) too.
|
|
12
|
-
|
|
13
|
-
When preparing a pull request, ensure all the tests pass locally running `npm test`. If you have write/admin access, do it on a new branch on the upstream opencomponents repo. This allows all the test to run smoothly.
|
|
14
|
-
|
|
15
|
-
A couple of coding rules:
|
|
16
|
-
|
|
17
|
-
- never play with git history
|
|
18
|
-
- don't auto-merge
|
|
19
|
-
- merge only when tests are all green
|
|
20
|
-
|
|
21
|
-
### Publishing new version to npm
|
|
22
|
-
|
|
23
|
-
You need to be enabled for doing this.
|
|
24
|
-
|
|
25
|
-
- `master` should be all green. If not, make it green first.
|
|
26
|
-
- git checkout master
|
|
27
|
-
- git pull --tags
|
|
28
|
-
- Run `npm run <versionType>` for new version.
|
|
29
|
-
- While on 0.X.X (not stable):
|
|
30
|
-
- `npm run publish-patch` for bugfixes, new features
|
|
31
|
-
- `npm run publish-minor` for all breaking changes
|
|
32
|
-
- `npm run publish-major` NOT YET. Still need to define milestones for 1.0.0.
|
|
33
|
-
|
|
34
|
-
## Code of Conduct
|
|
35
|
-
|
|
36
|
-
This Code of Conduct is adapted from [Rust's wonderful
|
|
37
|
-
CoC](http://www.rust-lang.org/conduct.html).
|
|
38
|
-
|
|
39
|
-
- We are committed to providing a friendly, safe and welcoming
|
|
40
|
-
environment for all, regardless of gender, sexual orientation,
|
|
41
|
-
disability, ethnicity, religion, or similar personal characteristic.
|
|
42
|
-
- Please avoid using overtly sexual nicknames or other nicknames that
|
|
43
|
-
might detract from a friendly, safe and welcoming environment for
|
|
44
|
-
all.
|
|
45
|
-
- Please be kind and courteous. There's no need to be mean or rude.
|
|
46
|
-
- Respect that people have differences of opinion and that every
|
|
47
|
-
design or implementation choice carries a trade-off and numerous
|
|
48
|
-
costs. There is seldom a right answer.
|
|
49
|
-
- Please keep unstructured critique to a minimum. If you have solid
|
|
50
|
-
ideas you want to experiment with, make a fork and see how it works.
|
|
51
|
-
- We will exclude you from interaction if you insult, demean or harass
|
|
52
|
-
anyone. That is not welcome behavior. We interpret the term
|
|
53
|
-
"harassment" as including the definition in the [Citizen Code of
|
|
54
|
-
Conduct](http://citizencodeofconduct.org/); if you have any lack of
|
|
55
|
-
clarity about what might be included in that concept, please read
|
|
56
|
-
their definition. In particular, we don't tolerate behavior that
|
|
57
|
-
excludes people in socially marginalized groups.
|
|
58
|
-
- Private harassment is also unacceptable. No matter who you are, if
|
|
59
|
-
you feel you have been or are being harassed or made uncomfortable
|
|
60
|
-
by a community member, please contact us at oc@opentable.com with a capture (log, photo, email) of
|
|
61
|
-
the harassment if possible. Whether you're a regular contributor or
|
|
62
|
-
a newcomer, we care about making this community a safe place for you
|
|
63
|
-
and we've got your back.
|
|
64
|
-
- Likewise any spamming, trolling, flaming, baiting or other
|
|
65
|
-
attention-stealing behavior is not welcome.
|
|
66
|
-
- Avoid the use of personal pronouns in code comments or
|
|
67
|
-
documentation. There is no need to address persons when explaining
|
|
68
|
-
code (e.g. "When the developer")
|
package/LICENSE
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2019 OpenComponents Community
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
18
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
19
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
20
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/biome.json
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
|
|
3
|
-
"vcs": {
|
|
4
|
-
"enabled": false,
|
|
5
|
-
"clientKind": "git",
|
|
6
|
-
"useIgnoreFile": false
|
|
7
|
-
},
|
|
8
|
-
"files": {
|
|
9
|
-
"ignoreUnknown": false,
|
|
10
|
-
"includes": ["preview/**/*", "src/**/*", "!src/components/oc-client/**/*"]
|
|
11
|
-
},
|
|
12
|
-
"formatter": {
|
|
13
|
-
"enabled": true,
|
|
14
|
-
"indentStyle": "tab"
|
|
15
|
-
},
|
|
16
|
-
"linter": {
|
|
17
|
-
"enabled": true,
|
|
18
|
-
"rules": {
|
|
19
|
-
"recommended": true,
|
|
20
|
-
"correctness": {
|
|
21
|
-
"useJsxKeyInIterable": "off"
|
|
22
|
-
},
|
|
23
|
-
"complexity": {
|
|
24
|
-
"useLiteralKeys": "off",
|
|
25
|
-
"noExcessiveNestedTestSuites": "off"
|
|
26
|
-
},
|
|
27
|
-
"style": {
|
|
28
|
-
"noParameterAssign": "off",
|
|
29
|
-
"noNonNullAssertion": "off",
|
|
30
|
-
"useTemplate": "off"
|
|
31
|
-
},
|
|
32
|
-
"suspicious": {
|
|
33
|
-
"noExplicitAny": "off"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"javascript": {
|
|
38
|
-
"formatter": {
|
|
39
|
-
"trailingCommas": "none",
|
|
40
|
-
"indentStyle": "space",
|
|
41
|
-
"quoteStyle": "single"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"assist": {
|
|
45
|
-
"enabled": true,
|
|
46
|
-
"actions": {
|
|
47
|
-
"source": {
|
|
48
|
-
"organizeImports": "on"
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
package/lefthook.yml
DELETED
package/logo-type.png
DELETED
|
Binary file
|
package/logo.png
DELETED
|
Binary file
|