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

Documented Changes & Dependency Cleanup | Release 5.0.0 #255

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .changeset/tangy-hotels-shine.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"near-workspaces": major
---

Implemented GitHub Actions Workflows:
- Add to the DevTools project
- Automate package release to npm

Update:
- Node.js -> 20.0.0
- TypeScript -> 5.4.5
- TSConfig(target) -> ES2022
- Borsh -> 2.0.0
- Near-api-js -> 5.1.0

BREAKING CHANGES:
- Replaced Yarn + Lerna with pnpm
- Removed bn.js and near-units → Now using TypeScript’s native BigInt
- Removed outcome files (/dist) from the repository
- Borsh update: Now requires an explicit Schema parameter for serialization/deserialization
- Added changeset package to simplify the release flow
- Removed rimraf, use fs-extra instead
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 9.4.0
version: 9.15.0

- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
"@changesets/cli": "^2.28.1",
"@types/fs-extra": "^9.0.12",
"@types/node": "20.0.0",
"@types/rimraf": "^3.0.1",
"borsh": "^2.0.0",
"ava": "^6.2.0",
"husky": "^7.0.1",
Expand Down
3 changes: 1 addition & 2 deletions packages/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@
"callsites": "^4.0.0",
"fs-extra": "^10.0.0",
"js-sha256": "^0.9.0",
"near-api-js": "5.0.1",
"near-api-js": "^5.1.0",
"near-sandbox": "^0.1.1",
"node-port-check": "^2.0.1",
"promisify-child-process": "^4.1.1",
"proper-lockfile": "^4.1.2",
"pure-uuid": "^1.6.2",
"rimraf": "^3.0.2",
"temp-dir": "^2.0.0"
},
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions packages/js/src/internal-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import * as fs from 'fs/promises';
import {promisify} from 'util';
import {URL} from 'url';
import {spawn as _asyncSpawn} from 'promisify-child-process';
import rimraf from 'rimraf';
import {type Binary} from 'near-sandbox';
import {getBinary} from 'near-sandbox/dist/getBinary';
import fs_extra from 'fs-extra';
import {type ChildProcessPromise} from './types';

export const rm = promisify(rimraf);
export const {rm} = fs_extra;
export const sandboxBinary: () => Promise<Binary> = async () => (getBinary());

export async function exists(d: PathLike): Promise<boolean> {
Expand Down
Loading
Loading