@heroku/functions-core
TypeScript icon, indicating that this package has built-in type declarations

0.7.2 • Public • Published

@heroku/functions-core

This is a shared library for interacting with Salesforce Functions from the following:

Used In Project Documentation
Salesforce CLI @salesforce/plugin-functions https://developer.salesforce.com/tools/sfdxcli
Visual Studio Code salesforcedx-vscode-core https://marketplace.visualstudio.com/items?itemName=salesforce.salesforcedx-vscode-core

Currently, this library exposes:

  • generateProject
  • generateFunction
  • a custom error class (FunctionsError).
  • LocalRun a class for running functions on the local host.
  • runFunction for sending data to a running function.

Build

$ yarn build

Run Validations

$ yarn test
$ yarn lint

Publishing

  1. Open a PR to bump the version field in package.json
  2. Merge the PR once the Languages Team approves
  3. Run npm publish to publish the library (this step must be performed using npm and not yarn)
  4. Run git tag -a v{VERSION} -m "Released v{VERSION}" && git push --tags to tag the release

    Note:
    All occurrences of{VERSION} in the command above should be replaced with the value of version set in package.json

Next Steps

For changes made to this library to make it into the Salesforce CLI and Visual Studio Code plugins it is necessary to create PRs against those projects. Steps for each related project are detailed below.

@salesforce/plugin-functions

  1. Git clone the Functions CLI plugin project at https://github.com/salesforcecli/plugin-functions
  2. Update this project's package.json with the latest version for @heroku/functions-core

    Note:
    Due to path length constraints for Windows machines the @heroku/functions-core package is aliased as @hk/functions-core

  3. Regenerate the yarn.lock by running yarn install
  4. Create a PR for these changes with fix: in the title and be sure to include in the description a reference to a work item using @GUS-W-12345678@

    Note:
    The Languages Team has permission to merge and approve PRs which only bump this dependency

  5. Once the PR is merged a bot service should:
    • bump the version
    • auto-publish the release to npm
    • tag the release in GitHub
  6. Verify the bot has performed the tasks above before moving on
  7. Git clone the Salesforce CLI project at https://github.com/salesforcecli/cli
  8. Update this project's package.json with the latest version of @salesforce/plugin-functions

    Note:
    Due to path length constraints for Windows machines the @salesforce/plugin-functions package is aliased as @sf/functions

  9. Regenerate the yarn.lock by running yarn install
  10. Create a PR with the title chore: bump plugin-function from {OLD_VERSION} to {NEW_VERSION}
  11. The PR must be approved by CLI team before merging

salesforcedx-vscode-core

  1. Git clone the VSCode plugin project at https://github.com/forcedotcom/salesforcedx-vscode
  2. Update this project's package.json with the latest version of @heroku/functions-core
  3. Regenerate the yarn.lock by running yarn install from the project root
  4. Create a PR with the title chore: bump functions-core from {OLD_VERSION} to {NEW_VERSION}
  5. Wait for the PR to be approved and merged

Readme

Keywords

none

Package Sidebar

Install

npm i @heroku/functions-core

Weekly Downloads

3,557

Version

0.7.2

License

MIT

Unpacked Size

100 kB

Total Files

57

Last publish

Collaborators

  • afraidknot
  • vish_heroku
  • sarahoh2468
  • sghaffar
  • dkabanov1
  • sbosio_sf
  • angelcampbell
  • 7ftz
  • sfalan
  • hillzbot2000
  • kdreyeroren
  • rcross
  • lsorstokke
  • sudarshanhiray
  • alex_heroku
  • rajashri-gurusamy
  • mandeepsf
  • mingzhi-liu1258
  • beanieboi
  • dougmcinnes-sfdc
  • beckychen
  • dasofiei
  • xx-sfdc-npm
  • kpremkumar
  • stessema-sfc
  • chap-heroku
  • dhammer25
  • ndavidson-sf
  • umarsfdc
  • amandadolansf
  • cdwort-sfdc
  • apoorvasriv
  • michellejhlim
  • jhili!16
  • apadala
  • cmcclung-npm-salesforce.com
  • rstiltonsf
  • tlowrimore
  • rchanda
  • abhinavkoul
  • daniel.bright
  • jonnymac
  • justinwilaby-sf
  • cv88
  • aaronromeosfdc
  • tenharmsel_sf
  • ekozilforce
  • coreypurcell_salesforce
  • jmonreal
  • sconklin
  • suppada
  • gnetter
  • tkoh-sfdc
  • jasoncummings-heroku
  • diana.doherty.sfdc
  • joeybrown90sf
  • rsoerensen
  • ademusoyo
  • lsangalang2023
  • ccasey
  • ryanbrainard
  • marcelsfdc
  • nrisaro
  • chetankd10
  • kscarey
  • bemory-heroku
  • revativelagada
  • brock-salesforce
  • jmorrell-sfdc
  • bencdenton
  • rafaydin
  • dhagberg-sf
  • elzoona
  • cmarcojos
  • adirasanam
  • kbaird-sf
  • bhawnaheroku
  • jondaniel-sfdc
  • gkommineni
  • p.shreya
  • sai_harshitha_neela
  • ktsforce
  • hkii
  • heroku-front-end
  • vammundra
  • the7oka
  • vlazuka
  • grismar17
  • lucaszhou
  • mars
  • ashher.khan
  • nlanatta
  • pranamsharma
  • nrenke
  • richatiwari
  • psalim
  • wchrisjohnson
  • agatpareek
  • swapnilghose
  • mgates-salesforce
  • ryoneyama
  • sripad.kulkarni
  • anujpandey001
  • dboston528
  • adirksmeier
  • christopher.jose
  • cbaxtersf
  • mttr
  • tetsuya_
  • daebumlee
  • msamineni
  • srishtigautam
  • bsperlingsf
  • pbomma
  • lalitreddy
  • zli-sf
  • sbaner18
  • joanneyeung
  • paguilar
  • bleong
  • montes_heroku
  • pfuente
  • saikrishna0202
  • jwadsworthsf
  • jheikes
  • mimen
  • daigo-heroku
  • mpeck
  • jmccartie
  • jordaneekey
  • lmckenzie
  • v.anand
  • barma.jahnavi
  • araja
  • sarassassin
  • reidmix
  • mbuschheroku
  • k.plenty
  • eblack
  • sheax0r
  • k80bowman
  • rdagg-hero
  • grundy.g
  • robinson.m
  • tcareysmith-sfdc
  • ptemporini
  • paulaprado18
  • harish.457
  • jsullivandigs
  • ssherbondy77
  • marcusblankenship
  • ntonollier
  • eleary
  • salesforce-releases