Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/nodejs comlink package #128

Merged
merged 7 commits into from
Feb 8, 2024
Merged

Conversation

TheEdward162
Copy link
Contributor

@TheEdward162 TheEdward162 commented Jan 30, 2024

Draft because:

@TheEdward162 TheEdward162 force-pushed the feat/nodejs_comlink_package branch 7 times, most recently from 0277cbd to ef52550 Compare January 30, 2024 15:45
@TheEdward162 TheEdward162 marked this pull request as ready for review February 2, 2024 15:58
* also add bundler to comlink_language_server
* ensure that schemas generated for profile input, result and error are valid json schemas even in case of parsing errors (although they might be trivial in that case)
* this allows better integration with json schema types in POD
* emit error when profile has no Use cases
* profile id and version are not currently present in the profile document
* add convenience to nodejs_comlink package to parse them from file name in the parseProfile function
* update actions checkout, cache, download-artifact, upload-artifact, setup-node, setup-python to newest major version
* separate map_std, nodejs_comlink and comlink_language_server into a separate workflow
* abstract core_build action, which takes care of building any core component (core.wasm, test-core.wasm, comlink.wasm)
* remove option to build all hosts at once, it doesn't properly work anyway
* add changelogs, version files, gitignore
* use the same version in VERSION file and package.json in new packages
* remove incorrect comment
* remove misplaced tab character
Copy link
Member

@freaz freaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just names of steps.

.github/actions/build_core/action.yml Outdated Show resolved Hide resolved
.github/actions/build_core/action.yml Outdated Show resolved Hide resolved
import {
DocumentUri,
TextDocumentContentChangeEvent,
} from 'vscode-languageserver';

import { ComlinkDocument } from './document';
import { stripUriPrefix } from './lib';
import { Diagnostic, Profile, ProfileSpans } from './parser/model';
import { Diagnostic, Profile, ProfileSpans } from '@superfaceai/comlink';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How does it work with linked package? It works thanks to bundling right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, since this is basically a "binary" release (as opposed to a library), and I was using it this way during development. It's a good question whether we want to keep it this way or add a proper npm dependency.

@TheEdward162 TheEdward162 merged commit 46f1316 into main Feb 8, 2024
5 checks passed
@TheEdward162 TheEdward162 deleted the feat/nodejs_comlink_package branch February 8, 2024 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants