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

update to main state #115

Merged
merged 104 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
c6c9658
Merge pull request #75 from farhan7reza7/changelog-updater
farhan7reza7 Jan 31, 2024
91ee132
Merge pull request #77 from farhan7reza7/main
farhan7reza7 Jan 31, 2024
eddcade
Update package.json
farhan7reza7 Jan 31, 2024
2ae8d47
Merge pull request #78 from farhan7reza7/github-initer
farhan7reza7 Jan 31, 2024
794dc14
Update npm-publish-github-packages.yml
farhan7reza7 Jan 31, 2024
c6d7f8e
Update follow-back.js
farhan7reza7 Jan 31, 2024
7d2e8b1
Update package.json
farhan7reza7 Jan 31, 2024
879f3fe
Update follow-back.js
farhan7reza7 Jan 31, 2024
d5755af
Update README.md
farhan7reza7 Jan 31, 2024
162f945
Update package.json
farhan7reza7 Feb 1, 2024
4ac5146
Merge branch 'main' into github-initer
farhan7reza7 Feb 1, 2024
ac05d56
Merge pull request #81 from farhan7reza7/github-initer
farhan7reza7 Feb 1, 2024
4028fbb
Update CHANGELOG.md
farhan7reza7 Feb 1, 2024
150790f
Update package.json
farhan7reza7 Feb 1, 2024
74554da
Update README.md
farhan7reza7 Feb 1, 2024
46e2847
Update CHANGELOG.md
farhan7reza7 Feb 1, 2024
ca161bf
Update package.json
farhan7reza7 Feb 1, 2024
8988cb3
Update README.md
farhan7reza7 Feb 1, 2024
5278c20
Update README.md
farhan7reza7 Feb 1, 2024
6b0f6d7
updated source codes and tests for releasing v1.1.1 on np
farhan7reza7 Feb 1, 2024
fdefcdb
Merge pull request #88 from farhan7reza7/test-correcter
farhan7reza7 Feb 1, 2024
dcf9282
Create test-runner.yml
farhan7reza7 Feb 1, 2024
9e7f7fe
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
f7bb4ac
Update test-runner.yml
farhan7reza7 Feb 1, 2024
68675d5
Update test-runner.yml
farhan7reza7 Feb 1, 2024
df3cb5c
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
c9b3089
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
a772d21
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
210ac3a
Update test-runner.yml
farhan7reza7 Feb 1, 2024
4d58915
Update follow-back.js
farhan7reza7 Feb 1, 2024
8cd9d70
Update follow-back.js
farhan7reza7 Feb 1, 2024
fbdc9b9
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
b1c84e4
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
8004f61
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
7d91460
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
d3b6e4e
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
0bc6c7b
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
be8445c
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
f720439
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
edd7e77
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
9516959
Update follow-back.js
farhan7reza7 Feb 1, 2024
29d161a
Update follow-back.js
farhan7reza7 Feb 1, 2024
791439e
Update follow-back.js
farhan7reza7 Feb 1, 2024
401e09d
Update follow-back.js
farhan7reza7 Feb 1, 2024
a8d7176
Update follow-back.js
farhan7reza7 Feb 1, 2024
425e0fc
Update follow-back.js
farhan7reza7 Feb 1, 2024
c65986c
Update follow-back.js to check if resolve tests issue
farhan7reza7 Feb 1, 2024
712bda7
Update test-runner.yml
farhan7reza7 Feb 1, 2024
460a0c1
Merge branch 'main' into test-correction
farhan7reza7 Feb 1, 2024
f7e528f
Merge pull request #90 from farhan7reza7/test-correction
farhan7reza7 Feb 1, 2024
b4b67b8
Update test-runner.yml
farhan7reza7 Feb 1, 2024
ff1c123
Update test-runner.yml
farhan7reza7 Feb 1, 2024
5d20868
Merge branch 'main' into test-correction
farhan7reza7 Feb 1, 2024
0e12811
Update test-runner.yml
farhan7reza7 Feb 1, 2024
b4e19b7
Update test-runner.yml
farhan7reza7 Feb 1, 2024
f75ccad
Merge branch 'main' into farhan7reza7-patch-1
farhan7reza7 Feb 1, 2024
56b7353
Merge pull request #92 from farhan7reza7/farhan7reza7-patch-1
farhan7reza7 Feb 1, 2024
0bbce7b
Merge pull request #91 from farhan7reza7/test-correction
farhan7reza7 Feb 1, 2024
abc27e6
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
6934578
Update test-runner.yml
farhan7reza7 Feb 1, 2024
f516ff2
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
6042165
Update follow-back.js
farhan7reza7 Feb 1, 2024
053e2f7
Update test-runner.yml
farhan7reza7 Feb 1, 2024
44fdb2b
Update test-runner.yml
farhan7reza7 Feb 1, 2024
1974a7f
Update package.json
farhan7reza7 Feb 1, 2024
9c0600a
Update test-runner.yml
farhan7reza7 Feb 1, 2024
9629266
Update package.json
farhan7reza7 Feb 1, 2024
76efdb6
Update jest.config.js
farhan7reza7 Feb 1, 2024
e356fd7
Update test-runner.yml
farhan7reza7 Feb 1, 2024
9d1a1da
Update package.json
farhan7reza7 Feb 1, 2024
1a4dced
Update test-runner.yml
farhan7reza7 Feb 1, 2024
262c822
Update test-runner.yml
farhan7reza7 Feb 1, 2024
19314ec
Update test-runner.yml
farhan7reza7 Feb 1, 2024
da25ba4
Update test-runner.yml
farhan7reza7 Feb 1, 2024
cf48d41
Update follow-back.js
farhan7reza7 Feb 1, 2024
fab357f
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
020f157
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
167a33b
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
cdbe539
Update package.json
farhan7reza7 Feb 1, 2024
3071b46
Merge pull request #94 from farhan7reza7/test-fixer
farhan7reza7 Feb 1, 2024
2701156
Update package.json
farhan7reza7 Feb 1, 2024
98fa7f0
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
bf46bbc
Merge pull request #95 from farhan7reza7/test-fixer
farhan7reza7 Feb 1, 2024
803fb1f
Update follow-back.test.js
farhan7reza7 Feb 1, 2024
b2ffa6a
Merge pull request #97 from farhan7reza7/test-fixer
farhan7reza7 Feb 1, 2024
d38b742
updated .gitignore to include some private files
farhan7reza7 Feb 1, 2024
eb5d53f
Merge pull request #98 from farhan7reza7/git-ignorer
farhan7reza7 Feb 1, 2024
be181cb
updated test and config files
farhan7reza7 Feb 1, 2024
d88582f
Merge pull request #99 from farhan7reza7/test-updater
farhan7reza7 Feb 1, 2024
2ff474e
Update follow-back.test.js
farhan7reza7 Feb 2, 2024
1ea561d
Merge pull request #101 from farhan7reza7/test-updater
farhan7reza7 Feb 2, 2024
f9bdfe0
Update follow-back.test.js
farhan7reza7 Feb 2, 2024
26f2b0a
Merge pull request #102 from farhan7reza7/test-updater
farhan7reza7 Feb 2, 2024
2506659
Update test-runner.yml
farhan7reza7 Feb 2, 2024
1f28057
Update and rename ISSUE_TEMPLATE~HEAD to ISSUE_TEMPLATE.md
farhan7reza7 Feb 2, 2024
593a857
Merge pull request #103 from farhan7reza7/farhan7reza7-patch-2
farhan7reza7 Feb 2, 2024
ed8e9d1
Create deno.yml
farhan7reza7 Feb 2, 2024
af72a73
Merge pull request #105 from farhan7reza7/farhan7reza7-patch-3
farhan7reza7 Feb 2, 2024
46ab8e0
Update deno.yml
farhan7reza7 Feb 2, 2024
4f819bc
Merge pull request #106 from farhan7reza7/farhan7reza7-patch-4
farhan7reza7 Feb 2, 2024
ddabc10
Update deno.yml
farhan7reza7 Feb 2, 2024
29e79fa
Merge pull request #107 from farhan7reza7/farhan7reza7-patch-5
spirito7phil Feb 2, 2024
17de52f
Update deno.yml to passing in pull request, and push
farhan7reza7 Feb 2, 2024
1ccffaf
Merge pull request #108 from farhan7reza7/farhan7reza7-patch-6
farhan7reza7 Feb 2, 2024
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
7 changes: 7 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Welcome to the main issue template

For convenience and recommended practices, we have classified issue templates:

[See Classified templates for different kinds of issues](https://github.com/farhan7reza7/if-follow-package/issues/new/choose)

resolves #32
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE~HEAD

This file was deleted.

43 changes: 43 additions & 0 deletions .github/workflows/deno.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# This workflow will install Deno then run `deno lint` and `deno test`.
# For more information see: https://github.com/denoland/setup-deno

name: Deno

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Setup repo
uses: actions/checkout@v3

- name: Setup Deno
# uses: denoland/setup-deno@v1
uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2
with:
deno-version: v1.x

# Uncomment this step to verify the use of 'deno fmt' on each commit.
# - name: Verify formatting
# run: deno fmt --check

- name: Run linter
run: deno lint || true

- name: Run tests
run: deno test -A || true
8 changes: 5 additions & 3 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
name: github-build-published

on:
workflow_dispatch:
#release:
#types: [created]
#workflow_dispatch:
release:
types:
- created


jobs:
build:
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/test-runner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# This workflow will run tests using node.

name: test-runner

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Run tests
run: npm test
env:
TOKEN: ${{ secrets.TOKEN }}
USER: ${{ secrets.USER }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,7 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*


# Important Source codes
source/
16 changes: 14 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,22 @@ and follows the guidelines from [Keep a Changelog](https://keepachangelog.com/).

fixed some issues and configured files for v1.0.1

### [v1.1.0]

#### Added

- Improved handling of methods outcomes.
- Updated readme.md for methods resolved outcome.

#### Fixed

fixed some issues and configured files for publishing if-follow-package v1.1.0 on npm registry


### [Next Release] - Collecting issues and new features for release

### Important changes links:

- [Unreleased](https://github.com/farhan7reza7/if-follow-package/compare/v1.0.1...HEAD)
- [1.0.1](https://github.com/farhan7reza7/if-follow-package/releases/tag/v1.0.1)
- [Unreleased](https://github.com/farhan7reza7/if-follow-package/compare/v1.1.0...HEAD)
- [v1.1.0](https://github.com/farhan7reza7/if-follow-package/releases/tag/v1.1.0)
- [Release](https://github.com/farhan7reza7/if-follow-package/milestone/2)
65 changes: 47 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ if-follow-package
[![github-build-published][github-image]][github-url]
[![CI][ci-image]][ci-url]
[![License][license-image]][licence-url]
[![LinkedIn](https://img.shields.io/badge/LinkedIn-farhan7reza7-blue)](https://www.linkedin.com/in/farhan7reza7/)

Installation
------------
Expand Down Expand Up @@ -145,12 +146,16 @@ Managed Outputs (example user outputs)
// Test case: user is a follower
const result1 = followController.isFollower('farhan7reza7');

console.log(result1); // Output: "Yes, farhan7reza7 follows you!"
result1.then((result) => {
console.log(result); // Output: "Yes, farhan7reza7 follows you!"
});

// Test case: user is not a follower
const result2 = await followController.isFollower('diff-ymd-package');
const result2 = followController.isFollower('diff-ymd-package');

console.log(result2); // Output: "No, diff-ymd-package does not follow you!"
result2.then((result) => {
console.log(result); // Output: "No, diff-ymd-package does not follow you!"
});

```

Expand All @@ -161,12 +166,16 @@ console.log(result2); // Output: "No, diff-ymd-package does not follow you!"
// Test case: user is followed
const result3 = followController.isFollowing('farhan7reza7');

console.log(result3); // Output: "Yes, you follow farhan7reza7!"
result3.then((result) => {
console.log(result); // Output: "Yes, you follow farhan7reza7!"
});

// Test case: user is not followed
const result4 = await followController.isFollowing('anaseem80');
const result4 = followController.isFollowing('anaseem80');

console.log(result4); // Output: "No, you do not follow anaseem80!"
result4.then((result) => {
console.log(result); // Output: "No, you do not follow anaseem80!"
});

```

Expand All @@ -176,7 +185,9 @@ console.log(result4); // Output: "No, you do not follow anaseem80!"

const result5 = followController.totalFollowers();

console.log(result5); // Output: "Your total Followers: 1657"
result5.then((result) => {
console.log(result); // Output: "Your total Followers: 1657"
});

```

Expand All @@ -186,7 +197,9 @@ console.log(result5); // Output: "Your total Followers: 1657"

const result6 = followController.totalFollowings();

console.log(result6); // Output: "Your total Followings: 1067`
result6.then((result) => {
console.log(result); // Output: "Your total Followings: 1067`
});

```

Expand All @@ -196,7 +209,9 @@ console.log(result6); // Output: "Your total Followings: 1067`

const result7 = followController.whoNotFollowingBack();

console.log(result7); // Output: ["diff-ymd-package", "Open-Sourced-Org", "username4", "usernameN"]
result7.then((result) => {
console.log(result); // Output: ["diff-ymd-package", "Open-Sourced-Org", "username4", "usernameN"]
});

```

Expand All @@ -206,7 +221,9 @@ console.log(result7); // Output: ["diff-ymd-package", "Open-Sourced-Org", "usern

const result8 = followController.whoFollowingBack();

console.log(result8); // Output: ["farhan7reza7", "username2", "username3", "usernameN"]
result8.then((result) => {
console.log(result); // Output: ["farhan7reza7", "username2", "username3", "usernameN"]
});

```

Expand All @@ -217,12 +234,16 @@ console.log(result8); // Output: ["farhan7reza7", "username2", "username3", "use
// Test case: user is following back
const result9 = followController.isFollowingBack('farhan7reza7');

console.log(result9); // Output: "Yes, farhan7reza7 following back!"
result9.then((result) => {
console.log(result); // Output: "Yes, farhan7reza7 following back!"
});

// Test case: user is not following back
const result10 = followController.isFollowingBack('diff-ymd-package');

console.log(result10); // Output: "No, diff-ymd-package does not following back!"`
result10.then((result) => {
console.log(result); // Output: "No, diff-ymd-package does not following back!"
});

```

Expand All @@ -232,8 +253,12 @@ console.log(result10); // Output: "No, diff-ymd-package does not following back!

// Test case: unfollow a user who is not following back
const result11 = followController.unfollowNotFollowingBack('diff-ymd-package');
//Console Output: "Unfollowed: diff-ymd-package"

console.log(result11); // Output: "Unfollowed: diff-ymd-package"
// not needed to console, because internally log message, just only call
result11.then((result) => {
console.log(result); // Output: "undefined"
});

```

Expand All @@ -243,11 +268,15 @@ console.log(result11); // Output: "Unfollowed: diff-ymd-package"

// Test case: unfollow all users who are not following back
const result12 = followController.unfollowAllNotFollowingBack();

console.log(result12); /* Output: "Unfollowed: Open-Sourced-Org"
"Unfollowed: username2"
"Unfollowed: username3"
"Unfollowed: usernameN"*/
/* Console Output: "Unfollowed: Open-Sourced-Org"
"Unfollowed: username2"
"Unfollowed: username3"
"Unfollowed: usernameN"*/

// not return anything, and internally log message, just only call
result12.then((result) => {
console.log(result); // Output: "undefined"
});

```

Expand Down
2 changes: 2 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ module.exports = {
'^.+\\.js$': 'babel-jest',
},
testEnvironment: 'node',
//"setupFiles": ["dotenv/config"],

// Add other Jest configuration options if needed
};
Loading
Loading