Skip to content

Commit

Permalink
Merge a31f066 into fbfeaed
Browse files Browse the repository at this point in the history
  • Loading branch information
fox1t committed Feb 20, 2024
2 parents fbfeaed + a31f066 commit baa7bb3
Show file tree
Hide file tree
Showing 71 changed files with 5,503 additions and 4,463 deletions.
10 changes: 10 additions & 0 deletions .changeset/spotty-donuts-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"@storagebus/storage": major
"@storagebus/local": major
"@storagebus/gcs": major
"@storagebus/s3": major
---

The most significant breaking change is the move to a new API, which now has only two methods: write and file.

The write method is used to write a BusFile instance, a Stream of a buffer to the underlying storage. The file method is used to get a file from storage. The file method returns a `BusFile` instance, which can then be used to retrieve the file's content (as stream, string, or buffer) and get metadata about the file.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
cp -r ./packages/*/coverage/tmp/. coverage/tmp
- name: Merge json coverage reports
run: pnpm dlx c8 report --reporter lcov --reporter text --extension ts
run: pnpm dlx c8 report --reporter lcov --reporter text

- name: Coveralls
uses: coverallsapp/github-action@3dfc5567390f6fa9267c0ee9c251e4c8c3f18949 # master
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,4 @@ junit.xml

# Misc
.DS_Store
.turbo/cookies
2 changes: 1 addition & 1 deletion .lintstagedrc.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export default {
'*.{mjs,cjs,js,jsx,ts,tsx}': 'biome lint . && biome check .',
'*': 'biome check --apply-unsafe .',
}
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18
24 changes: 4 additions & 20 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
{
"workbench.colorCustomizations": {
"activityBar.activeBackground": "#8193f4",
"activityBar.background": "#8193f4",
"activityBar.foreground": "#15202b",
"activityBar.inactiveForeground": "#15202b99",
"activityBarBadge.background": "#fce2e6",
"activityBarBadge.foreground": "#15202b",
"commandCenter.border": "#e7e7e799",
"sash.hoverBorder": "#8193f4",
"statusBar.background": "#526bf0",
"statusBar.foreground": "#e7e7e7",
"statusBarItem.hoverBackground": "#8193f4",
"statusBarItem.remoteBackground": "#526bf0",
"statusBarItem.remoteForeground": "#e7e7e7",
"titleBar.activeBackground": "#526bf0",
"titleBar.activeForeground": "#e7e7e7",
"titleBar.inactiveBackground": "#526bf099",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.color": "#526bf0"
"editor.defaultFormatter": "biomejs.biome",
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
4 changes: 1 addition & 3 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@
"root": "."
},
"linter": {
"enabled": true,
"ignore": ["dist"],
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "off"
}
}
},
"formatter": {
"ignore": ["dist"],
"enabled": true,
"formatWithErrors": true,
"indentStyle": "space"
},
"javascript": {
Expand Down
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
"commit": "npx git-cz",
"commitlint": "commitlint",
"dev": "turbo dev",
"format": "turbo format",
"lint": "turbo lint",
"lint": "biome check --apply-unsafe .",
"precommit": "pnpm install",
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
Expand All @@ -27,18 +26,20 @@
},
"keywords": [],
"devDependencies": {
"@biomejs/biome": "^1.2.2",
"@changesets/changelog-github": "^0.4.8",
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@commitlint/lint": "^17.7.0",
"@commitlint/prompt": "^17.7.1",
"@vitest/coverage-istanbul": "^0.28.5",
"@biomejs/biome": "^1.4.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@commitlint/lint": "^17.8.1",
"@commitlint/prompt": "^17.8.1",
"commitlint-plugin-function-rules": "^1.7.1",
"husky": "^8.0.3",
"lint-staged": "^13.3.0",
"turbo": "^1.10.14"
"turbo": "^1.11.1"
},
"engines": {
"node": ">=18.0.0"
},
"bugs": {
"url": "https://github.com/ducktors/storagebus/issues"
Expand Down
42 changes: 0 additions & 42 deletions packages/abstract/package.json

This file was deleted.

60 changes: 0 additions & 60 deletions packages/abstract/src/abstract-storage.ts

This file was deleted.

2 changes: 0 additions & 2 deletions packages/abstract/src/index.ts

This file was deleted.

72 changes: 0 additions & 72 deletions packages/abstract/test/abstract-storage.ts

This file was deleted.

53 changes: 0 additions & 53 deletions packages/abstract/test/sanitize-key.ts

This file was deleted.

Loading

0 comments on commit baa7bb3

Please sign in to comment.