![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@simpleview/camber-client
Advanced tools
Client for communication with the camber
GraphQL system.
It is build in TypeScript and has one peer dependency of @simpleview/sv-graphql-client
.
The expectation is that this application will be installed in Linux using sv-kubernetes.
Using npm:
npm install @simpleview/camber-client
Using yarn:
yarn install @simpleview/camber-client
To update to the latest version, rerun the install command.
Interactions with camber
require authentication as a Simpleview user.
Use a Google Service Account when interacting with the service on behalf of a product.
const { AuthPrefix } = require("@simpleview/sv-auth-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
async function serviceAccountToken() {
const service_account = JSON.parse(SERVICE_ACCOUNT_JSON);
const { auth } = new GraphServer({
graphUrl: AUTH_GRAPHQL_URL,
prefixes: [AuthPrefix]
});
// authorize the service_account return the token
const { token } = await auth.login_service_account({
input: {
email: service_account.client_email,
private_key: service_account.private_key
},
fields: `
success
token
`
});
return token;
}
The token
should be added to the context
for each function call.
To see the input parameters and output fields of an endpoint, view the Schema in the GraphQL Explorer at https://graphql.simpleviewinc.com/ for the corresponding GraphQL query.
CamberPrefix
can be loaded into the sv-graphql-client
GraphServer
to use as a client library for accessing camber
in GraphQL.
JavaScript:
const { CamberPrefix } = require("@simpleview/camber-client");
const { GraphServer } = require("@simpleview/sv-graphql-client");
module.exports = new GraphServer({ graphUrl: GRAPHQL_URL, prefixes: [CamberPrefix] });
TypeScript:
import { CamberPrefix } from "@simpleview/camber-client";
import { GraphServer } from "@simpleview/sv-graphql-client";
export default new GraphServer({ graphUrl: GRAPHQL_URL, prefixes: [CamberPrefix] });
Where you are making server requests:
JavaScript:
const { camber } = require("./camberGraphServer");
TypeScript:
import { camber } from "./camberGraphServer";
This method wraps the camber.accounts
GraphQL query.
const result = camber.accounts({
fields: `
docs {
acct_id
label
name
external_id
logo_url
sendgrid {
api_key
transaction_pool
marketing_pool
}
cloudinary {
cloud_name
api_key
api_secret
}
timezone
mfa_required
created
updated
}
count
`,
context: {
token // from serviceAccountToken call
}
});
This method wraps the camber.feature_sets_upsert
GraphQL mutation.
const result = camber.feature_sets_upsert({
fields: "success message",
input: {
product_key: "APEX",
groups: [
{
key: "MODULES",
features: [
{
key: "ACCOUNTS",
name: "Accounts"
},
{
key: "CONTACTS",
name: "Contacts"
}
]
},
{
key: "INTEGRATIONS",
features: [
{
key: "ACTON",
name: "Act-On"
},
{
key: "ZAPIER",
name: "Zapier"
}
]
},
{
key: "PLUGINS",
features: [
{
key: "PLUGINONE",
name: "Plugin One"
}
]
},
{
key: "ADDONS",
features: [
{
key: "ADDONONE",
name: "Addon One"
}
]
}
]
}
context: {
token // from serviceAccountToken call
}
});
This method wraps the camber.products
GraphQL query.
const result = camber.products({
fields: `
docs {
key
name
description
}
count
`,
context: {
token // from serviceAccountToken call
}
});
For any assistance please reach out on the camber Slack channel.
FAQs
Client for communicating with camber
The npm package @simpleview/camber-client receives a total of 10 weekly downloads. As such, @simpleview/camber-client popularity was classified as not popular.
We found that @simpleview/camber-client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.