Skip to content

Commit

Permalink
Merge pull request #1068 from mrgnlabs/feat/sdk-npm-versioning
Browse files Browse the repository at this point in the history
feat(mfi-sdk): improved npm publish versioning
  • Loading branch information
k0beLeenders authored Feb 13, 2025
2 parents 42f91ec + 5741137 commit 2403aab
Show file tree
Hide file tree
Showing 61 changed files with 33,176 additions and 178,483 deletions.
33 changes: 27 additions & 6 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,32 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"commit": true,
"ignore": [
"@mrgnlabs/mrgn-ui",
"@mrgnlabs/marginfi-v2-trading",
"@mrgnlabs/marginfi-v2-ui",
"@mrgnlabs/mrgn-utils",
"@mrgnlabs/lip-client",
"@mrgnlabs/scripts",
"@mrgnlabs/health-notifier",
"@mrgnlabs/marginfi-landing-page",
"@mrgnlabs/marginfi-v2-ui-state"
],
"versioning": {
"ignore": [
"@mrgnlabs/mrgn-ui",
"@mrgnlabs/marginfi-v2-trading",
"@mrgnlabs/marginfi-v2-ui",
"@mrgnlabs/mrgn-utils",
"@mrgnlabs/lip-client",
"@mrgnlabs/scripts",
"@mrgnlabs/health-notifier",
"@mrgnlabs/marginfi-landing-page",
"@mrgnlabs/marginfi-v2-ui-state"
]
},
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
"updateInternalDependencies": "patch"
}
37 changes: 37 additions & 0 deletions .changeset/heavy-kangaroos-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
"@mrgnlabs/marginfi-client-v2": major
---

# 🚀 v5.0.0-beta.0 - Major Release (2025-02-10)

This is a **major update** that brings significant improvements, optimizations, and new features to the SDK.

- **Enhanced Flashloan Support** 🏦

- Improved handling and execution of flashloans.
- More efficient processing of transactions.

- **More Configurable SDK Functions** ⚙️

- Added new options to fine-tune SDK behavior.
- Greater flexibility for integrators.

- **Optimized Flashloan Transaction Processing**

- Reduced overhead for executing flashloan transactions.
- Improved speed and reliability.

- **Added Full JSDoc Support** 📖

- Comprehensive documentation for better developer experience.
- Improved type safety and inline documentation.

- **Staked Collateral Support** 🔐

- Introduced support for staked collateral in margin strategies.
- Enables more flexible and efficient collateral management.

- Resolved multiple issues from previous versions.
- General performance optimizations and stability improvements.

⚠️ **This is a beta release!** Please test and provide feedback before full release. 🚀
24 changes: 24 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"mode": "pre",
"tag": "beta",
"initialVersions": {
"@mrgnlabs/health-notifier": "0.1.0",
"@mrgnlabs/marginfi-landing-page": "0.1.0",
"@mrgnlabs/marginfi-v2-docs": "0.1.0",
"@mrgnlabs/marginfi-v2-trading": "1.0.0",
"@mrgnlabs/marginfi-v2-ui": "1.0.0",
"@mrgnlabs/eslint-config-custom": "1.0.0",
"@mrgnlabs/lip-client": "1.1.0",
"@mrgnlabs/marginfi-client-v2": "5.0.0-beta.0",
"@mrgnlabs/marginfi-v2-ui-state": "0.0.1",
"@mrgnlabs/mrgn-common": "2.0.0-beta.0",
"@mrgnlabs/mrgn-ui": "0.0.1",
"@mrgnlabs/mrgn-utils": "0.0.1",
"@mrgnlabs/scripts": "0.0.1",
"@mrgnlabs/tsconfig": "0.0.1"
},
"changesets": [
"heavy-kangaroos-applaud",
"serious-pans-unite"
]
}
30 changes: 30 additions & 0 deletions .changeset/serious-pans-unite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
"@mrgnlabs/mrgn-common": major
---

# 🚀 v2.0.0-beta.0 - Major Release (2025-02-10)

This is a **major update** that brings significant improvements, optimizations, and new features to the SDK.

- **Enhanced Flashloan Support** 🏦

- Improved handling and execution of flashloans.
- More efficient processing of transactions.

- **More Configurable Utilities** ⚙️

- Added improved utilities for interacting with the Marginfi protocol.
- Greater flexibility for integrators.

- **Optimized Flashloan Transaction Processing**

- Added more utilities for flashloan support and optimized transaction processing.

- **Added Full JSDoc Support** 📖

- Comprehensive documentation for better developer experience.
- Improved type safety and inline documentation.

- This release focuses on refining internal utilities, improving documentation, and optimizing core functionalities.

⚠️ **This is a beta release!** Please test and provide feedback before full release. 🚀
20 changes: 12 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [ "main" ]
branches: ["main"]
pull_request:
types: [ opened, synchronize ]
types: [opened, synchronize]

jobs:
build:
Expand All @@ -14,18 +14,22 @@ jobs:

steps:
- name: Check out code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
node-version: 20
registry-url: https://registry.npmjs.org
cache: "pnpm"

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Build
run: yarn build
run: pnpm build
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
store-dir=~/.pnpm-store
Loading

0 comments on commit 2403aab

Please sign in to comment.