Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockoon/commons-server
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.11.2
Choose a base ref
...
head repository: mockoon/commons-server
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Oct 21, 2021

  1. Update PR template

    Guillaume committed Oct 21, 2021
    Copy the full SHA
    e7dab85 View commit details

Commits on Oct 28, 2021

  1. Feature/rules for cookie values (#30)

    * Add new Target Cookie for Response Rules
    Closes #475
    
    * Formatting
    
    * Added Tests for Cookie Rules
    
    Co-authored-by: Gilles Meyer <gilles@meyer.red>
    gamedevtutorials and vfgillesmeyer authored Oct 28, 2021
    Copy the full SHA
    8dad9d0 View commit details
  2. Small fixes to cookie rules

    - make cookie rules fail when modifier is empty
    - make distinction between absent and empty cookie works (equals vs null)
    - add more tests
    Guillaume committed Oct 28, 2021
    Copy the full SHA
    be341a3 View commit details
  3. Set version 2.12.0

    Guillaume committed Oct 28, 2021
    Copy the full SHA
    12ef51c View commit details

Commits on Nov 11, 2021

  1. Added Handlebars helper (join, len, gt, lt, gte, lte, eq, toFixed, ro…

    …und, stringify, slice) (#33)
    
    Fixed setVar Helper which could not handle Object, 0 or Arrays
    Closes #29
    Closes #31
    Closes #32
    
    Co-authored-by: Gilles Meyer <gilles@meyer.red>
    gamedevtutorials and vfgillesmeyer authored Nov 11, 2021
    Copy the full SHA
    e7be455 View commit details
  2. Add tests for split helper, set version 2.13.0

    Guillaume committed Nov 11, 2021
    Copy the full SHA
    732a5b8 View commit details

Commits on Nov 16, 2021

  1. Simplify path resolving code

    Guillaume committed Nov 16, 2021
    Copy the full SHA
    2d4f6e8 View commit details

Commits on Nov 23, 2021

  1. Add support for custom TLS certificate

    - Add certs and key loading + error handling
    - update tests
    See mockoon/mockoon#175
    Guillaume committed Nov 23, 2021
    Copy the full SHA
    6eddfc7 View commit details
  2. Change header name validity check, set version 2.14.0

    Remove homemade function and replace by try/catch
    Closes #34
    Guillaume committed Nov 23, 2021
    Copy the full SHA
    1c60e41 View commit details
  3. Update commons lib

    Guillaume committed Nov 23, 2021
    Copy the full SHA
    cd887eb View commit details

Commits on Nov 25, 2021

  1. Removed domain from cookies and erased secure flag (#35)

    * Removed domain from cookies and erased secure flag
    
    * Fixed lint complainign about quotes
    
    Co-authored-by: Guillaume <hi@255kb.dev>
    Saucistophe and Guillaume authored Nov 25, 2021
    Copy the full SHA
    069de8e View commit details
  2. Code format

    Guillaume committed Nov 25, 2021
    Copy the full SHA
    7b1432f View commit details
  3. Set version 2.15.0

    Guillaume committed Nov 25, 2021
    Copy the full SHA
    bb1ffed View commit details

Commits on Nov 29, 2021

  1. Fix Switch/case not working with numbers

    Closes #37
    Guillaume committed Nov 29, 2021
    Copy the full SHA
    94ccbc9 View commit details
  2. Set version 2.15.1

    Guillaume committed Nov 29, 2021
    Copy the full SHA
    2f62dba View commit details

Commits on Nov 30, 2021

  1. Add more tests for switch helper

    Guillaume committed Nov 30, 2021
    Copy the full SHA
    073c9bc View commit details

Commits on Jan 25, 2022

  1. Use new community Faker.js lib

    Guillaume committed Jan 25, 2022
    Copy the full SHA
    452ba1d View commit details
  2. Set version 2.15.2

    Guillaume committed Jan 25, 2022
    Copy the full SHA
    d2f60f5 View commit details
  3. Fix faker.js imports

    Guillaume committed Jan 25, 2022
    Copy the full SHA
    e5e763c View commit details

Commits on Jan 26, 2022

  1. Update sponsor links

    Guillaume committed Jan 26, 2022
    Copy the full SHA
    d0b5ef3 View commit details

Commits on Jan 27, 2022

  1. Reorganize test folder

    Guillaume committed Jan 27, 2022
    Copy the full SHA
    017098a View commit details
  2. Use sendFile when templating is disabled

    Reading the file to parse templating helpers is using a lot of memory. When templating is disabled, or for files not supporting templating, use sendFile for better performances (streaming).
    Closes mockoon/mockoon#605
    Guillaume committed Jan 27, 2022
    Copy the full SHA
    a3c734d View commit details
  3. Set version 2.15.4

    Guillaume committed Jan 27, 2022
    Copy the full SHA
    8b6068b View commit details
  4. Merge branch 'feature/file-streaming' into main

    Guillaume committed Jan 27, 2022
    Copy the full SHA
    f0a2d1d View commit details
  5. Copy the full SHA
    872c2e6 View commit details

Commits on Feb 11, 2022

  1. Extract OpenAPI methods from main application

    See mockoon/cli#18
    Guillaume committed Feb 11, 2022
    Copy the full SHA
    e9f1318 View commit details
  2. Merge branch 'feature/extract-openapi' into main

    Guillaume committed Feb 11, 2022
    Copy the full SHA
    7f6029a View commit details

Commits on Feb 18, 2022

  1. Make dateTimeShift helper parameters compatible with SafeStrings

    Closes #39
    Guillaume committed Feb 18, 2022
    Copy the full SHA
    2de68b0 View commit details
  2. Copy the full SHA
    2231469 View commit details
  3. Feature/query string display (#40)

    * Convert Transaction constructor into a function
    
    * Store original query string in Transaction's request
    
    * Store original query params object as returned by parser
    timon authored Feb 18, 2022
    Copy the full SHA
    4e11d3a View commit details
  4. Update commons lib and set v2.16.1

    Guillaume committed Feb 18, 2022
    Copy the full SHA
    852a13e View commit details
  5. Make bodyRaw returns the parsed body when no path is provided

    Closes #41
    Guillaume committed Feb 18, 2022
    Copy the full SHA
    3eed3e6 View commit details
  6. Merge branch 'fix/bodyraw-no-path' into main

    Guillaume committed Feb 18, 2022
    Copy the full SHA
    aa073a8 View commit details
  7. Set version 2.16.2

    Guillaume committed Feb 18, 2022
    Copy the full SHA
    a57f54f View commit details

Commits on Feb 21, 2022

  1. Allow number as path for body and bodyRaw helpers

    Closes #42
    Guillaume committed Feb 21, 2022
    Copy the full SHA
    ad19d68 View commit details
  2. Merge branch 'fix/body-path-number' into main

    Guillaume committed Feb 21, 2022
    Copy the full SHA
    6463bec View commit details

Commits on Feb 23, 2022

  1. Update Faker random helpers to datatype

    most random.* helpers are deprecated
    Guillaume committed Feb 23, 2022
    Copy the full SHA
    1b91007 View commit details
  2. Fix body and bodyRaw helpers for empty string paths

    Guillaume committed Feb 23, 2022
    Copy the full SHA
    b16c1d5 View commit details
  3. Move req.parsedBody to body

    Preparing for GraphQL lib expecting JSON parsed object on `req.body`
    Guillaume committed Feb 23, 2022
    Copy the full SHA
    f3dcdf8 View commit details
  4. Set version 2.16.4

    Guillaume committed Feb 23, 2022
    Copy the full SHA
    daccbb1 View commit details

Commits on Mar 28, 2022

  1. Add archive monorepo message

    Guillaume committed Mar 28, 2022
    Copy the full SHA
    14c1448 View commit details

Commits on Jul 12, 2024

  1. Update README.md

    255kb authored Jul 12, 2024
    Copy the full SHA
    70d472b View commit details
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -144,5 +144,13 @@ module.exports = {
markers: ['/']
}
]
}
},
overrides: [
{
files: ['*.spec.ts'],
rules: {
'@typescript-eslint/no-unused-expressions': 'off'
}
}
]
};
3 changes: 1 addition & 2 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# These are supported funding model platforms

github: [255kb]
custom: https://www.buymeacoffee.com/255kb
github: [mockoon, 255kb]
10 changes: 5 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<!--
IMPORTANT RULES:
<!--
IMPORTANT RULES:
- Read the contributing guidelines first!
- All pull requests must be linked to an issue.
- Implementation, UI, UX, needs to be discussed either in the issue, or in the PR before starting the development.
- Implementation, UI, UX, needs to be discussed either in the issue, or in the PR before starting the development.
- Commits should be squashed to a single commit, or more if relevant. They should follow this guide: https://chris.beams.io/posts/git-commit/
- Follow the branch naming convention.
- Follow the template!
-->

**Parent issue**
**Parent issue**

Closes #[insert_issue_number_here]
Closes #insert_issue_number_here

**Technical implementation details**

33 changes: 17 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,39 @@
> # 📦This repository has been archived. We keep it for historical reasons. You will find Mockoon's new monorepo [here](https://github.com/mockoon/mockoon).
<div align="center">
<a href="https://mockoon.com" alt="mockoon logo">
<img width="200" height="200" src="https://mockoon.com/images/logo-square-commons-server.png">
<img width="200" height="200" src="https://mockoon.com/images/logo-square-app.png">
</a>
<br>
<a href="https://mockoon.com/#download"><img src="https://img.shields.io/badge/Download%20app-Go-green.svg?style=flat-square&colorB=1997c6"/></a>
<a href="https://mockoon.com/"><img src="https://img.shields.io/badge/Website-Go-green.svg?style=flat-square&colorB=1997c6"/></a>
<a href="http://eepurl.com/dskB2X"><img src="https://img.shields.io/badge/Newsletter-Subscribe-green.svg?style=flat-square"/></a>
<a href="https://mockoon.com/newsletter/"><img src="https://img.shields.io/badge/Newsletter-Subscribe-green.svg?style=flat-square"/></a>
<a href="https://twitter.com/GetMockoon"><img src="https://img.shields.io/badge/Twitter_@GetMockoon-follow-blue.svg?style=flat-square&colorB=1da1f2"/></a>
<a href="https://discord.gg/MutRpsY5gE"><img src="https://img.shields.io/badge/Discord-go-blue.svg?style=flat-square&colorA=6c84d9&colorB=1da1f2"/></a>
<a href="[https://discord.gg/FtJjkejKGp](https://mockoon.com/discord/)"><img src="https://img.shields.io/badge/Discord-go-blue.svg?style=flat-square&colorA=6c84d9&colorB=1da1f2"/></a>
<br>
<br>
<h1>@Mockoon/commons-server</h1>
<h1>Mockoon: awesome API mocking</h1>
</div>

Mockoon's Commons server library regroups Mockoon's shared code used in the [main application](https://github.com/mockoon/mockoon) and the [CLI](https://github.com/mockoon/cli). It contains mostly "server side" code designed to be used in a Node.js environments.
## Mockoon's documentation

---
You will find Mockoon's [documentation](https://mockoon.com/docs/latest/about/) on the official website. It covers Mockoon's most complex features. Feel free to contribute or ask for new topics to be covered.

## Support/feedback
## Changelogs

You can discuss all things related to Mockoon, and ask for help, on the [main application community](https://github.com/mockoon/mockoon/discussions) or the [CLI community](https://github.com/mockoon/cli/discussions). It's also a good place to discuss bugs and feature requests before opening an issue on this repository. For more chat-like discussions, you can also join our [Discord server](https://discord.gg/MutRpsY5gE).
You will find Mockoon applications [changelogs](https://mockoon.com/releases/) on the official website.

## Contributing
## Support/feedback

If you are interested in contributing to Mockoon, please take a look at the main [contributing guidelines](https://github.com/mockoon/mockoon/blob/main/CONTRIBUTING.md) and the [ones specific to this repository](https://github.com/mockoon/commons-server/blob/main/CONTRIBUTING.md).
You can discuss all things related to Mockoon and ask for help on the [official community](https://github.com/mockoon/mockoon/discussions). It's also a good place to discuss bugs and feature requests before opening an issue on this repository. For more chat-like discussions, you can also join our [Discord server](https://discord.gg/FtJjkejKGp).

Please also take a look at our [Code of Conduct](https://github.com/mockoon/commons-server/blob/main/CODE_OF_CONDUCT.md).
## Contributing

## Documentation
If you are interested in contributing to Mockoon, please take a look at the [contributing guidelines](https://github.com/mockoon/mockoon/blob/main/CONTRIBUTING.md).

You will find Mockoon's [documentation](https://mockoon.com/docs/latest) on the official website. It covers Mockoon's most complex features. Feel free to contribute or ask for new topics to be covered.
Please also take a look at our [Code of Conduct](https://github.com/mockoon/mockoon/blob/main/CODE_OF_CONDUCT.md).

## Roadmap

If you want to know what will be coming in the next release you can check the global [Roadmap](https://github.com/orgs/mockoon/projects/2).
If you want to know what will be coming in the next release you can check the global [Roadmap](https://mockoon.com/public-roadmap/).

New releases will be announced on Mockoon's [Twitter account @GetMockoon](https://twitter.com/GetMockoon) and through the newsletter to which you can subscribe [here](http://eepurl.com/dskB2X).
New releases will be announced on Mockoon's [Twitter account @GetMockoon](https://twitter.com/GetMockoon) and through the newsletter to which you can subscribe [here](https://mockoon.com/newsletter/).
Loading