Skip to content

Commit

Permalink
Merge branch 'master' into optimize-partial-partialRight
Browse files Browse the repository at this point in the history
  • Loading branch information
adispring committed Jan 24, 2022
2 parents 9a79517 + 4fb5c61 commit 8b7ec85
Show file tree
Hide file tree
Showing 624 changed files with 16,686 additions and 11,568 deletions.
28 changes: 28 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: '2'

plugins:
nodesecurity:
enabled: true

editorconfig:
enabled: true

markdownlint:
enabled: true

duplication:
enabled: true
config:
languages:
- javascript

eslint:
enabled: true

fixme:
enabled: true

exclude_patterns:
- '.*'
- '**/*.*'
- '!source/**/*.js'
7 changes: 6 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"globals": {
"Symbol": true
},
"plugins": [ "import" ],
"rules": {
"no-eval": 2,
"eqeqeq": 0,
Expand Down Expand Up @@ -121,6 +122,10 @@
"no-duplicate-case": 2,
"no-extra-semi": 2,
"no-unreachable": 2,
"semi": 2
"semi": 2,
"import/extensions": [
2,
"always"
]
}
}
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: ramda
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build

on: [push, pull_request]

jobs:
coverage:
runs-on: ubuntu-latest
name: Code Climate Coverage
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Installing Dependencies
run: npm ci

- name: Collecting Coverage
uses: paambaati/codeclimate-action@v2.6.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODE_CLIMATE_TOKEN }}
with:
coverageCommand: npm run coverage
coverageLocations: |
${{github.workspace}}/coverage/lcov.info:lcov
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: ['14', '12', '10', '8']
name: Node ${{ matrix.node }}
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Installing Dependencies
run: npm ci

- name: Linting Codebase
run: npm run lint

- name: Unit Testing
run: npm run test

- name: Building Artefacts
run: npm run build
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
/dist/gh-pages/
/tmp-test-bundle.js
/coverage/
/.idea
/.nyc_output
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion BOOKMARKLET.md

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@
commit message, wrapped at 72 characters. Do not commit changes to
`dist/ramda.js`.

1. Run `npm test` (or `make test lint`) and address any errors. It will install
needed dependencies locally. Preferably, fix commits in place using `git
rebase` or `git commit --amend` to make the changes easier to review and to
keep the history tidy.
1. Run `npm install` to install needed local dependencies.

1. Run `npm test` and address any errors. Preferably, fix commits in place
using `git rebase` or `git commit --amend` to make the changes easier to
review and to keep the history tidy.

1. Push to your fork:

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2019 Scott Sauyet and Michael Hurley
Copyright (c) 2013-2020 Scott Sauyet and Michael Hurley

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
35 changes: 29 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Ramda

A practical functional library for JavaScript programmers.

[![Build Status](https://travis-ci.org/ramda/ramda.svg?branch=master)](https://travis-ci.org/ramda/ramda)
[![Build Status](https://github.com/ramda/ramda/workflows/Build/badge.svg)](https://github.com/ramda/ramda/actions?query=workflow%3ABuild)
[![Test Coverage](https://api.codeclimate.com/v1/badges/953a3c5ee423e5301d18/test_coverage)](https://codeclimate.com/github/ramda/ramda/test_coverage)
[![npm module](https://badge.fury.io/js/ramda.svg)](https://www.npmjs.org/package/ramda)
[![dependencies](https://david-dm.org/ramda/ramda.svg)](https://david-dm.org/ramda/ramda)
[![deno land](http://img.shields.io/badge/available%20on-deno.land/x-lightgrey.svg?logo=deno&labelColor=black)](https://deno.land/x/ramda@v0.27.2)
[![nest badge](https://nest.land/badge.svg)](https://nest.land/package/ramda)
[![Gitter](https://badges.gitter.im/Join_Chat.svg)](https://gitter.im/ramda/ramda?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)


Expand Down Expand Up @@ -47,7 +49,7 @@ Introductions
* [Favoring Curry](http://fr.umio.us/favoring-curry/) by Scott Sauyet
* [Why Curry Helps](https://hughfdjackson.com/javascript/why-curry-helps/) by Hugh Jackson
* [Hey Underscore, You're Doing It Wrong!](https://www.youtube.com/watch?v=m3svKOdZijA&app=desktop) by Brian Lonsdorf
* [Thinking in Ramda](http://randycoulman.com/blog/categories/thinking-in-ramda) by Randy Coulman
* [Thinking in Ramda](https://randycoulman.com/blog/categories/thinking-in-ramda) by Randy Coulman



Expand Down Expand Up @@ -91,6 +93,16 @@ Then in the console:
const R = require('ramda');
```

To use directly in [Deno](https://deno.land):
```javascript
import * as R from "https://deno.land/x/ramda@v0.27.2/mod.ts";
```

or using Nest.land:
```javascript
import * as R from "https://x.nest.land/ramda@0.27.2/mod.ts";
```

To use directly in the browser:

```html
Expand All @@ -106,14 +118,13 @@ or the minified version:
or from a CDN, either cdnjs:

```html
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.25.0/ramda.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/ramda/0.27.1/ramda.min.js"></script>
```

or one of the below links from [jsDelivr](http://jsdelivr.com):

```html
<script src="//cdn.jsdelivr.net/npm/ramda@0.25.0/dist/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/ramda@0.25/dist/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/ramda@0.27.1/dist/ramda.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/ramda@latest/dist/ramda.min.js"></script>
```

Expand All @@ -128,6 +139,10 @@ Ramda versions > 0.25 don't have a default export.
So instead of `import R from 'ramda';`, one has to use `import * as R from 'ramda';`
Or better yet, import only the required functions via `import { functionName } from 'ramda';`

**Note for ES6 module and browsers**
In order to access to the ES6 module in browsers, one has to provide the content of the __es__ directory (see below for the build instructions) and use `import * as R from './node_modules/ramda/es/index.js';`


### Build

`npm run build` creates `es`, `src` directories and updates both __dist/ramda.js__ and __dist/ramda.min.js__
Expand Down Expand Up @@ -239,7 +254,15 @@ Translations
- [Ukrainian(Українська)](https://github.com/ivanzusko/ramda)
- [Portuguese(BR)](https://github.com/renansj/ramda)
- [Russian(Русский)](https://github.com/Guck111/ramda)
- [Spanish(ES)](https://github.com/wirecobweb/ramda)




Funding
-----------------

If you wish to donate to Ramda please see our [Open Collective](https://opencollective.com/ramda) page. Thank you!


Acknowledgements
Expand Down
12 changes: 12 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Security Policy

## Supported Versions

| Version | Supported |
| ------- | ------------------ |
| 0.27.* | :white_check_mark: |
| < 0.27 | :x: |

## Reporting a Vulnerability

Feel free to <a href="mailto:scott@sauyet.com">email Scott Sauyet</a> with any security issues

0 comments on commit 8b7ec85

Please sign in to comment.