Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

fix: update ipfs versions #365

Merged
merged 10 commits into from
Jun 24, 2022
Merged
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
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,18 @@ jobs:
project:
- browser-add-readable-stream
- browser-angular
- browser-browserify
- browser-create-react-app
- browser-exchange-files
- browser-ipns-publish
- browser-lit
- browser-mfs
- browser-nextjs
- browser-parceljs
- browser-readablestream
- browser-script-tag
- browser-service-worker
- browser-sharing-node-across-tabs
- browser-video-streaming
- browser-vite
- browser-vue
- browser-webpack
- circuit-relaying
Expand All @@ -39,7 +38,7 @@ jobs:
- http-client-name-api
- http-client-upload-file
- ipfs-101
- ipfs-client-add-files
#- ipfs-client-add-files
- run-in-electron
- running-multiple-nodes
- traverse-ipld-graphs
Expand Down
13 changes: 7 additions & 6 deletions examples/browser-add-readable-stream/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,29 @@
"name": "example-browser-add-readable-stream",
"version": "1.0.0",
"private": true,
"type": "module",
"description": "How to add readable streams in the browser",
"keywords": [],
"license": "MIT",
"scripts": {
"clean": "rimraf ./dist ./.cache ./.parcel-cache",
"build": "parcel build index.html --no-scope-hoist",
"serve": "parcel serve index.html --open -p 8888",
"clean": "rimraf ./dist ./.cache ./node_modules/.vite",
"build": "vite build",
"serve": "vite dev --port 8888",
"start": "npm run serve",
"test": "npm run build && playwright test tests"
},
"browserslist": "last 1 Chrome version",
"dependencies": {
"ipfs-core": "^0.14.0"
"ipfs-core": "^0.15.2"
},
"devDependencies": {
"@babel/core": "^7.14.8",
"@playwright/test": "^1.12.3",
"parcel": "^2.3.2",
"playwright": "^1.12.3",
"process": "^0.11.10",
"rimraf": "^3.0.2",
"test-util-ipfs-example": "^1.0.2",
"util": "^0.12.4"
"util": "^0.12.4",
"vite": "^3.0.0-beta.1"
}
}
2 changes: 0 additions & 2 deletions examples/browser-add-readable-stream/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
'use strict'

import { create } from 'ipfs-core'

const main = async () => {
Expand Down
6 changes: 2 additions & 4 deletions examples/browser-add-readable-stream/tests/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict'

const { test, expect } = require('@playwright/test');
const { playwright } = require('test-util-ipfs-example');
import { test, expect } from '@playwright/test';
import { playwright } from 'test-util-ipfs-example';

// Setup
const play = test.extend({
Expand Down
10 changes: 10 additions & 0 deletions examples/browser-add-readable-stream/vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
export default {
build: {
target: 'esnext',
minify: false
},
define: {
'process.env.NODE_DEBUG': 'false',
'global': 'globalThis'
}
}
2 changes: 1 addition & 1 deletion examples/browser-angular/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"builder": "@angular-builders/custom-webpack:browser",
"options": {
"customWebpackConfig": {
"path": "./extra-webpack.config.ts"
"path": "./extra-webpack.config.js"
},
"outputPath": "dist/",
"index": "src/index.html",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Configuration, ProvidePlugin } from 'webpack';
import * as NodePolyfillPlugin from 'node-polyfill-webpack-plugin';
import webpack from 'webpack';
import NodePolyfillPlugin from 'node-polyfill-webpack-plugin';

export default {
plugins: [
Expand All @@ -9,8 +9,8 @@ export default {
// dependencies causing runtime errors. This is a workaround to provide
// global `Buffer` until https://github.com/isaacs/core-util-is/issues/29
// is fixed.
new ProvidePlugin({
new webpack.ProvidePlugin({
global: ['global']
})
]
} as Configuration;
};
6 changes: 4 additions & 2 deletions examples/browser-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "example-browser-angular",
"version": "0.0.0",
"private": true,
"type": "module",
"scripts": {
"clean": "rimraf ./dist",
"ng": "ng",
Expand All @@ -20,9 +21,10 @@
"@angular/platform-browser": "^13.2.0",
"@angular/platform-browser-dynamic": "^13.2.0",
"@angular/router": "^13.2.0",
"@libp2p/interface-peer-id": "^1.0.2",
"global": "^4.4.0",
"ipfs-core": "^0.14.0",
"ipfs-core-types": "^0.10.0",
"ipfs-core": "^0.15.2",
"ipfs-core-types": "^0.11.0",
"rxjs": "^7.5.2",
"tslib": "^2.3.0",
"zone.js": "~0.11.4"
Expand Down
3 changes: 2 additions & 1 deletion examples/browser-angular/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Component, OnInit } from '@angular/core';
import { IpfsService } from './ipfs.service';
import { PeerId } from '@libp2p/interface-peer-id';

@Component({
selector: 'app-root',
Expand All @@ -8,7 +9,7 @@ import { IpfsService } from './ipfs.service';
})
export class AppComponent implements OnInit {
title = 'browser-angular';
id: string | null = null;
id: PeerId | null = null;
version: string | null = null;
status: string | null = null;

Expand Down
6 changes: 2 additions & 4 deletions examples/browser-angular/tests/test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use strict'

const { test, expect } = require('@playwright/test');
const { playwright } = require('test-util-ipfs-example');
import { test, expect } from '@playwright/test';
import { playwright } from 'test-util-ipfs-example';

// Setup
const play = test.extend({
Expand Down
20 changes: 0 additions & 20 deletions examples/browser-browserify/.github/workflows/sync.yml

This file was deleted.

122 changes: 0 additions & 122 deletions examples/browser-browserify/README.md

This file was deleted.

Binary file removed examples/browser-browserify/img/1.png
Binary file not shown.
Binary file removed examples/browser-browserify/img/2.png
Binary file not shown.
29 changes: 0 additions & 29 deletions examples/browser-browserify/package.json

This file was deleted.

Loading