Skip to content

Commit

Permalink
js: replace wasm-api library owner
Browse files Browse the repository at this point in the history
Update wasm-api npm library from @vectorizedio/wasm-api to
@redpanda-data/wasm-api.

This change moves wasm-api to the Redpanda's npm organisation.
  • Loading branch information
sago2k8 committed Jan 25, 2023
1 parent f85aa15 commit 7d09ce2
Show file tree
Hide file tree
Showing 8 changed files with 428 additions and 486 deletions.
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/cli/cmd/wasm/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func latestClientAPIVersion() string {
}

proc := vos.NewProc()
output, err := proc.RunWithSystemLdPath(2*time.Second, "npm", "search", "@vectorizedio/wasm-api", "--json")
output, err := proc.RunWithSystemLdPath(2*time.Second, "npm", "search", "@redpanda-data/wasm-api", "--json")
if err != nil {
log.Error(err)
return defAPIVersion
Expand Down
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/cli/cmd/wasm/template/wasm.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const wasmJs = `const {
SimpleTransform,
PolicyError,
PolicyInjection
} = require("@vectorizedio/wasm-api");
} = require("@redpanda-data/wasm-api");
const transform = new SimpleTransform();
/* Topics that fire the transform function */
transform.subscribe([["test-topic", PolicyInjection.Stored]]);
Expand Down
4 changes: 2 additions & 2 deletions src/js/build-package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Depedencies",
"description": "Vectorized's materialized stream dependencies",
"description": "Redpanda's materialized stream dependencies",
"version": "0.0.1",
"keywords": [],
"author": "hi@vectorized.io",
"author": "hi@redpanda.com",
"scripts": {
"start": "sudo node ./modules/rpc/service.js"
},
Expand Down
890 changes: 416 additions & 474 deletions src/js/package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/js/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "Depedencies",
"description": "Vectorized's materialized stream dependencies",
"description": "Redpanda's materialized stream dependencies",
"version": "0.0.1",
"keywords": [],
"author": "hi@vectorized.io",
"author": "hi@redpanda.com",
"scripts": {
"build:ts": "npx tsc",
"build": "./build.sh",
Expand Down
6 changes: 3 additions & 3 deletions src/js/publish-wasm-dependecy.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ const readmeArtifact = path.join(artifactFolder, readmeName);
const publishReadme = path.join(publicFolder, readmeName);
const publishCmd = "cd public && npm publish --access=public";

var version = "1.0.0";
var publish = true;
let version = "1.0.0";
let publish = true;

if (process.argv.length == 4) {
const arr = process.argv.splice(2);
Expand All @@ -49,7 +49,7 @@ if (process.argv.length == 4) {
}

const wasmPackageJson = `{
"name": "@vectorizedio/wasm-api",
"name": "@redpanda-data/wasm-api",
"version": "${version}",
"description": "wasm api helps to define wasm function",
"main": "${dependencyName}",
Expand Down
4 changes: 2 additions & 2 deletions src/js/publish_artifacts/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# vectorized wasm-api
# redpanda wasm-api

Redpanda coprocessing client library for nodejs

Expand All @@ -9,7 +9,7 @@ Redpanda coprocessing client library for nodejs
```
const wasmJs = const {
SimpleTransform,
} = require("@vectorizedio/wasm-api");
} = require("@redpanda-data/wasm-api");
const transform = new SimpleTransform();
```

Expand Down
2 changes: 1 addition & 1 deletion src/js/publish_artifacts/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vectorizedio/wasm-api",
"name": "@redpanda-data/wasm-api",
"version": "${version}",
"description": "wasm api helps to define wasm function",
"main": "${dependencyName}",
Expand Down

0 comments on commit 7d09ce2

Please sign in to comment.