Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
b5fb041
chore(package): update npmpub to version 5.0.0
greenkeeper[bot] Sep 20, 2019
3d38892
Merge pull request #43 from kristerkari/greenkeeper/npmpub-5.0.0
kristerkari Jul 18, 2021
9a93166
Bump lodash from 4.17.5 to 4.17.21
dependabot[bot] Jul 18, 2021
7bee909
Merge pull request #49 from kristerkari/dependabot/npm_and_yarn/lodas…
kristerkari Jul 18, 2021
31941a1
Bump hosted-git-info from 2.6.0 to 2.8.9
dependabot[bot] Jul 18, 2021
6ed0d3c
Bump browserslist from 4.6.6 to 4.16.6
dependabot[bot] Jul 18, 2021
fed693e
Bump y18n from 4.0.0 to 4.0.3
dependabot[bot] Jul 18, 2021
d116ce1
Bump extend from 3.0.1 to 3.0.2
dependabot[bot] Jul 18, 2021
d70c60a
Bump handlebars from 4.1.2 to 4.7.7
dependabot[bot] Jul 18, 2021
3784418
Merge pull request #50 from kristerkari/dependabot/npm_and_yarn/hoste…
kristerkari Jul 18, 2021
3b960b5
Merge pull request #52 from kristerkari/dependabot/npm_and_yarn/brows…
kristerkari Jul 18, 2021
f952928
Merge pull request #51 from kristerkari/dependabot/npm_and_yarn/y18n-…
kristerkari Jul 18, 2021
66d2ca9
Bump yargs-parser from 13.1.1 to 13.1.2
dependabot[bot] Jul 18, 2021
820a73b
Merge pull request #53 from kristerkari/dependabot/npm_and_yarn/exten…
kristerkari Jul 18, 2021
bea30de
Merge pull request #54 from kristerkari/dependabot/npm_and_yarn/handl…
kristerkari Jul 18, 2021
36c1a8b
Bump mixin-deep from 1.3.1 to 1.3.2
dependabot[bot] Jul 18, 2021
69cc6c3
Bump acorn from 5.5.3 to 5.7.4
dependabot[bot] Jul 18, 2021
3c3a6f5
Merge pull request #57 from kristerkari/dependabot/npm_and_yarn/yargs…
kristerkari Jul 18, 2021
087e13b
Merge pull request #59 from kristerkari/dependabot/npm_and_yarn/mixin…
kristerkari Jul 18, 2021
8e359d1
Bump stringstream from 0.0.5 to 0.0.6
dependabot[bot] Jul 18, 2021
2abfabb
Bump ini from 1.3.5 to 1.3.8
dependabot[bot] Jul 18, 2021
26649be
Merge pull request #58 from kristerkari/dependabot/npm_and_yarn/acorn…
kristerkari Jul 18, 2021
3767474
Merge pull request #60 from kristerkari/dependabot/npm_and_yarn/strin…
kristerkari Jul 18, 2021
81c861d
Merge pull request #56 from kristerkari/dependabot/npm_and_yarn/ini-1…
kristerkari Jul 18, 2021
ad463dd
Update dev deps
kristerkari Jul 18, 2021
cfe3663
Merge pull request #61 from kristerkari/feat/dev-deps
kristerkari Jul 18, 2021
61a86da
Update css-to-react-native to version 3.0.0
kristerkari Jul 18, 2021
8c752e6
Merge pull request #62 from kristerkari/update/css-to-react-native-to…
kristerkari Jul 18, 2021
7f39d82
Update css to version 3.0.0
kristerkari Jul 18, 2021
9997f72
Merge pull request #63 from kristerkari/update/css-to-version-3
kristerkari Jul 18, 2021
020bceb
Prepare version 2.0.0 [ci skip]
kristerkari Jul 18, 2021
db9f413
Bump path-parse from 1.0.6 to 1.0.7
dependabot[bot] Aug 10, 2021
a6f1ca9
Merge pull request #64 from kristerkari/dependabot/npm_and_yarn/path-…
kristerkari Aug 24, 2021
92aa404
Bump tmpl from 1.0.4 to 1.0.5
dependabot[bot] Sep 21, 2021
fb1d424
Merge pull request #65 from kristerkari/dependabot/npm_and_yarn/tmpl-…
kristerkari Sep 23, 2021
e756673
Bump ajv from 6.5.5 to 6.12.6
dependabot[bot] Feb 11, 2022
30f1d65
Merge pull request #67 from kristerkari/dependabot/npm_and_yarn/ajv-6…
kristerkari Feb 26, 2022
e4795bf
Bump node-fetch from 2.6.1 to 2.6.7
dependabot[bot] Feb 26, 2022
cc21b19
Merge pull request #68 from kristerkari/dependabot/npm_and_yarn/node-…
kristerkari Mar 22, 2022
91d3c03
Bump minimist from 1.2.5 to 1.2.6
dependabot[bot] Apr 10, 2022
a180910
Merge pull request #69 from kristerkari/dependabot/npm_and_yarn/minim…
kristerkari Apr 20, 2022
b6ca414
Create dependabot.yml
kristerkari Jul 6, 2022
13003cc
Bump prettier from 2.3.2 to 2.7.1
dependabot[bot] Jul 6, 2022
6165d57
Bump @babel/preset-env from 7.14.7 to 7.18.6
dependabot[bot] Jul 6, 2022
c100b4a
Merge pull request #70 from kristerkari/dependabot/npm_and_yarn/prett…
kristerkari Jul 6, 2022
c77accc
Merge pull request #72 from kristerkari/dependabot/npm_and_yarn/babel…
kristerkari Jul 6, 2022
491e1b2
Switch to GitHub Actions CI
kristerkari Jul 6, 2022
aec0dad
Merge pull request #75 from kristerkari/github-actions-ci
kristerkari Jul 6, 2022
1e82386
Bump @babel/cli from 7.14.5 to 7.18.6
dependabot[bot] Jul 6, 2022
7b1f223
Merge pull request #74 from kristerkari/dependabot/npm_and_yarn/babel…
kristerkari Jul 6, 2022
e236fa7
Bump jest from 27.0.6 to 28.1.2
dependabot[bot] Jul 6, 2022
60e26ec
Merge pull request #71 from kristerkari/dependabot/npm_and_yarn/jest-…
kristerkari Jul 6, 2022
6abd9df
Bump @babel/core from 7.14.6 to 7.18.6
dependabot[bot] Jul 6, 2022
d17df95
Merge pull request #73 from kristerkari/dependabot/npm_and_yarn/babel…
kristerkari Jul 6, 2022
fac5d1c
Bump coveralls from 3.0.6 to 3.1.1
dependabot[bot] Jul 6, 2022
2d1a434
Bump husky from 7.0.1 to 8.0.1
dependabot[bot] Jul 6, 2022
eb40b91
Merge pull request #76 from kristerkari/dependabot/npm_and_yarn/cover…
kristerkari Jul 6, 2022
f695f32
Merge pull request #79 from kristerkari/dependabot/npm_and_yarn/husky…
kristerkari Jul 6, 2022
a942104
Bump lint-staged from 11.0.1 to 13.0.3
dependabot[bot] Jul 6, 2022
c57e493
Merge pull request #78 from kristerkari/dependabot/npm_and_yarn/lint-…
kristerkari Jul 6, 2022
ac64dd5
Bump babel-jest from 27.0.6 to 28.1.2
dependabot[bot] Jul 6, 2022
dbdc3fd
Bump npmpub from 5.0.0 to 5.1.1
dependabot[bot] Jul 6, 2022
f63907f
Merge pull request #77 from kristerkari/dependabot/npm_and_yarn/npmpu…
kristerkari Jul 6, 2022
e89c610
Merge pull request #80 from kristerkari/dependabot/npm_and_yarn/babel…
kristerkari Jul 6, 2022
6f73f3c
Create codeql-analysis.yml
kristerkari Jul 6, 2022
87a0064
Bump babel-jest from 28.1.2 to 28.1.3
dependabot[bot] Jul 15, 2022
80451ba
Merge pull request #81 from kristerkari/dependabot/npm_and_yarn/babel…
kristerkari Jul 18, 2022
25bf8f4
Bump jest from 28.1.2 to 28.1.3
dependabot[bot] Jul 18, 2022
0cbe425
Bump @babel/preset-env from 7.18.6 to 7.18.10
dependabot[bot] Aug 8, 2022
a481fb4
Bump @babel/cli from 7.18.6 to 7.18.10
dependabot[bot] Aug 8, 2022
7b50d80
Merge pull request #82 from kristerkari/dependabot/npm_and_yarn/jest-…
kristerkari Aug 16, 2022
98b8497
Merge pull request #86 from kristerkari/dependabot/npm_and_yarn/babel…
kristerkari Aug 16, 2022
6d3d3de
Merge pull request #88 from kristerkari/dependabot/npm_and_yarn/babel…
kristerkari Aug 16, 2022
4e8a957
Bump @babel/core from 7.18.6 to 7.18.10
dependabot[bot] Aug 16, 2022
6724b63
Merge pull request #87 from kristerkari/dependabot/npm_and_yarn/babel…
kristerkari Aug 16, 2022
147f297
Bump @babel/cli from 7.18.10 to 7.19.3
dependabot[bot] Oct 3, 2022
d54774d
Bump @babel/preset-env from 7.18.10 to 7.19.3
dependabot[bot] Oct 3, 2022
5cfc269
Merge pull request #100 from kristerkari/dependabot/npm_and_yarn/babe…
kristerkari Oct 6, 2022
bfa1831
Merge pull request #103 from kristerkari/dependabot/npm_and_yarn/babe…
kristerkari Oct 6, 2022
5b49109
Bump @babel/core from 7.18.10 to 7.19.3
dependabot[bot] Oct 6, 2022
b01a082
Bump babel-jest from 28.1.3 to 29.1.2
dependabot[bot] Oct 6, 2022
56a6305
Merge pull request #101 from kristerkari/dependabot/npm_and_yarn/babe…
kristerkari Oct 6, 2022
fe73959
Merge pull request #102 from kristerkari/dependabot/npm_and_yarn/babe…
kristerkari Oct 6, 2022
0aace55
Bump jest from 28.1.3 to 29.2.0
dependabot[bot] Oct 17, 2022
d8b551c
Bump @babel/preset-env from 7.19.3 to 7.19.4
dependabot[bot] Oct 17, 2022
10bbdcb
Merge pull request #105 from kristerkari/dependabot/npm_and_yarn/jest…
kristerkari Oct 21, 2022
bc04bca
Merge pull request #106 from kristerkari/dependabot/npm_and_yarn/babe…
kristerkari Oct 21, 2022
a508440
Bump @babel/preset-env from 7.19.4 to 7.20.2 (#114)
dependabot[bot] Dec 5, 2022
e2c2db9
Bump husky from 8.0.1 to 8.0.2 (#115)
dependabot[bot] Dec 5, 2022
4d26a3d
Bump babel-jest from 29.1.2 to 29.3.1 (#116)
dependabot[bot] Dec 5, 2022
0e98df7
Bump decode-uri-component from 0.2.0 to 0.2.2 (#118)
dependabot[bot] Dec 5, 2022
5976fa8
Bump jest from 29.2.0 to 29.3.1 (#117)
dependabot[bot] Dec 5, 2022
6fd3186
Bump @babel/core from 7.19.3 to 7.20.5 (#119)
dependabot[bot] Dec 5, 2022
625a252
Bump qs from 6.5.2 to 6.5.3 (#120)
dependabot[bot] Dec 8, 2022
d94c413
Bump prettier from 2.7.1 to 2.8.1 (#121)
dependabot[bot] Jan 1, 2023
ba547a0
Bump lint-staged from 13.0.3 to 13.1.0 (#122)
dependabot[bot] Jan 1, 2023
065f4d6
Bump @babel/cli from 7.19.3 to 7.20.7 (#123)
dependabot[bot] Jan 1, 2023
32f4b4f
Bump @babel/core from 7.20.5 to 7.20.7 (#124)
dependabot[bot] Jan 1, 2023
08b1986
Bump json5 from 2.2.1 to 2.2.3 (#125)
dependabot[bot] Jan 1, 2023
af9c405
Bump @babel/core from 7.20.7 to 7.20.12 (#128)
dependabot[bot] Jan 13, 2023
39fa93c
Bump husky from 8.0.2 to 8.0.3 (#127)
dependabot[bot] Jan 13, 2023
c7c69e5
Bump prettier from 2.8.1 to 2.8.2 (#126)
dependabot[bot] Jan 13, 2023
e9fcc12
Bump css-to-react-native from 3.0.0 to 3.1.0 (#129)
dependabot[bot] Feb 9, 2023
bbcf5df
Bump prettier from 2.8.2 to 2.8.3 (#130)
dependabot[bot] Feb 9, 2023
fca2b9b
Bump babel-jest from 29.3.1 to 29.4.1 (#131)
dependabot[bot] Feb 9, 2023
4f175db
Bump jest from 29.3.1 to 29.4.2 (#133)
dependabot[bot] Feb 9, 2023
35e076a
Bump css-to-react-native from 3.1.0 to 3.2.0 (#139)
dependabot[bot] Feb 28, 2023
8ecfc52
Bump prettier from 2.8.3 to 2.8.4 (#134)
dependabot[bot] Feb 28, 2023
0d4e40b
Bump lint-staged from 13.1.0 to 13.1.2 (#137)
dependabot[bot] Feb 28, 2023
2b4dd01
Bump jest from 29.4.2 to 29.4.3 (#138)
dependabot[bot] Feb 28, 2023
b69f45a
Bump babel-jest from 29.4.1 to 29.4.3 (#140)
dependabot[bot] Feb 28, 2023
def9f0b
Bump @babel/cli from 7.20.7 to 7.21.0 (#141)
dependabot[bot] Mar 8, 2023
4cf6193
Bump @babel/core from 7.20.12 to 7.21.0 (#142)
dependabot[bot] Mar 14, 2023
6a0633f
Bump babel-jest from 29.4.3 to 29.5.0 (#143)
dependabot[bot] Mar 14, 2023
761b8ea
Bump lint-staged from 13.1.2 to 13.2.0 (#145)
dependabot[bot] Mar 14, 2023
80f8298
Bump jest from 29.4.3 to 29.5.0 (#144)
dependabot[bot] Mar 14, 2023
652c8a6
Bump minimatch from 3.0.4 to 3.1.2 (#146)
dependabot[bot] Mar 14, 2023
6fecf67
Bump @babel/core from 7.21.0 to 7.21.3 (#147)
dependabot[bot] Mar 26, 2023
9858938
Bump prettier from 2.8.4 to 2.8.7 (#148)
dependabot[bot] Mar 28, 2023
7c6ed19
Bump @babel/preset-env from 7.20.2 to 7.21.4 (#149)
dependabot[bot] Apr 10, 2023
6a8c538
Bump lint-staged from 13.2.0 to 13.2.1 (#151)
dependabot[bot] Apr 10, 2023
00e9b01
Bump @babel/core from 7.21.3 to 7.21.4 (#150)
dependabot[bot] Apr 10, 2023
62dad31
Bump prettier from 2.8.7 to 2.8.8 (#152)
dependabot[bot] Apr 24, 2023
34ec382
Bump yaml from 2.2.1 to 2.2.2 (#153)
dependabot[bot] Apr 29, 2023
a450023
Bump @babel/preset-env from 7.21.4 to 7.21.5 (#154)
dependabot[bot] May 22, 2023
1a220f9
Bump @babel/cli from 7.21.0 to 7.21.5 (#155)
dependabot[bot] May 22, 2023
ca33a16
Bump lint-staged from 13.2.1 to 13.2.2 (#156)
dependabot[bot] May 22, 2023
bc34a0f
Bump @babel/core from 7.21.4 to 7.22.1 (#159)
dependabot[bot] Jun 7, 2023
7c3cc60
Bump @babel/core from 7.22.1 to 7.22.5 (#164)
dependabot[bot] Jun 29, 2023
0cf6db2
Bump @babel/cli from 7.21.5 to 7.22.5 (#163)
dependabot[bot] Jun 29, 2023
d992b1d
Bump lint-staged from 13.2.2 to 13.2.3 (#165)
dependabot[bot] Jul 9, 2023
cde162a
Bump @babel/preset-env from 7.21.5 to 7.22.5 (#162)
dependabot[bot] Jul 9, 2023
db51471
Bump babel-jest from 29.5.0 to 29.6.1 (#166)
dependabot[bot] Jul 20, 2023
36e0861
Bump prettier from 2.8.8 to 3.0.0 (#168)
dependabot[bot] Jul 20, 2023
f470abc
Bump semver from 5.7.1 to 5.7.2 (#171)
dependabot[bot] Jul 20, 2023
366f558
Bump @babel/cli from 7.22.5 to 7.22.9 (#172)
dependabot[bot] Jul 20, 2023
0a647a6
Bump jest from 29.5.0 to 29.6.1 (#169)
dependabot[bot] Jul 20, 2023
f71b990
Bump @babel/core from 7.22.5 to 7.22.9 (#173)
dependabot[bot] Jul 20, 2023
1b90316
Bump @babel/preset-env from 7.22.5 to 7.22.9 (#174)
dependabot[bot] Aug 5, 2023
d7cabe8
Bump jest from 29.6.1 to 29.6.2 (#175)
dependabot[bot] Aug 5, 2023
bcfa6a3
Bump babel-jest from 29.6.1 to 29.6.2 (#176)
dependabot[bot] Aug 5, 2023
864ce29
Bump prettier from 3.0.0 to 3.2.5 (#200)
dependabot[bot] Feb 25, 2024
5e51f0d
Bump @babel/core from 7.22.9 to 7.23.9 (#201)
dependabot[bot] Feb 25, 2024
e35d4b8
Bump @babel/cli from 7.22.9 to 7.23.9 (#203)
dependabot[bot] Feb 25, 2024
25f1b88
Bump @babel/preset-env from 7.22.9 to 7.23.9 (#204)
dependabot[bot] Feb 25, 2024
658c650
Update CI config (#205)
kristerkari Feb 25, 2024
66ed82f
Bump lint-staged from 13.2.3 to 15.2.2 (#206)
dependabot[bot] Feb 25, 2024
39fd40b
Bump husky from 8.0.3 to 9.0.11 (#207)
dependabot[bot] Feb 26, 2024
5d624f2
Bump babel-jest from 29.6.2 to 29.7.0 (#208)
dependabot[bot] Feb 26, 2024
31c7a8a
Bump jest from 29.6.2 to 29.7.0 (#209)
dependabot[bot] Feb 26, 2024
acec581
Bump @babel/core from 7.23.9 to 7.24.0 (#210)
dependabot[bot] Mar 9, 2024
6501aae
Bump @babel/preset-env from 7.23.9 to 7.24.0 (#211)
dependabot[bot] Mar 9, 2024
1ea752d
Bump @babel/cli from 7.23.9 to 7.24.1 (#213)
dependabot[bot] Apr 18, 2024
396baff
Bump @babel/preset-env from 7.24.0 to 7.24.4 (#216)
dependabot[bot] Apr 18, 2024
a85d02a
Bump @babel/core from 7.24.0 to 7.24.4 (#215)
dependabot[bot] Apr 18, 2024
e652346
Bump braces from 3.0.2 to 3.0.3 (#229)
dependabot[bot] Jun 22, 2024
d349d06
Bump prettier from 3.2.5 to 3.3.2 (#231)
dependabot[bot] Jun 22, 2024
5e32c52
Bump @babel/preset-env from 7.24.4 to 7.24.7 (#226)
dependabot[bot] Jun 22, 2024
18cf8bc
Bump @babel/cli from 7.24.1 to 7.24.7 (#227)
dependabot[bot] Jun 22, 2024
24650fa
Bump @babel/core from 7.24.4 to 7.24.7 (#228)
dependabot[bot] Jun 22, 2024
28f0bec
Bump lint-staged from 15.2.2 to 15.2.7 (#230)
dependabot[bot] Jun 22, 2024
5115545
Add ignoreRule option (#232)
kristerkari Jun 22, 2024
100fd0b
Update packages
kristerkari Jun 22, 2024
886eefe
Prepare version 2.1.0
kristerkari Jun 22, 2024
8ea2ede
v2.1.0
kristerkari Jun 22, 2024
b1a9027
Bump @babel/cli from 7.24.7 to 7.24.8 (#233)
dependabot[bot] Aug 23, 2024
8fc7a33
Bump prettier from 3.3.2 to 3.3.3 (#234)
dependabot[bot] Aug 23, 2024
52d32f2
Bump @babel/preset-env from 7.24.7 to 7.25.3 (#241)
dependabot[bot] Aug 23, 2024
1ce9285
Bump husky from 9.0.11 to 9.1.4 (#242)
dependabot[bot] Aug 23, 2024
b39d2c8
Bump @babel/core from 7.24.7 to 7.25.2 (#243)
dependabot[bot] Aug 23, 2024
2693a4a
Bump micromatch from 4.0.7 to 4.0.8 (#244)
dependabot[bot] Aug 23, 2024
bdb1850
Bump husky from 9.1.4 to 9.1.5 (#246)
dependabot[bot] Aug 23, 2024
9e71e58
Bump np from 10.0.6 to 10.0.7 (#247)
dependabot[bot] Aug 23, 2024
cc87ca7
Bump @babel/preset-env from 7.25.3 to 7.25.4 (#245)
dependabot[bot] Aug 23, 2024
83cbe2f
Bump lint-staged from 15.2.7 to 15.2.9 (#248)
dependabot[bot] Aug 25, 2024
4610c96
Bump lint-staged from 15.2.9 to 15.2.10 (#250)
dependabot[bot] Sep 11, 2024
746b602
Bump @babel/cli from 7.24.8 to 7.25.6 (#249)
dependabot[bot] Sep 11, 2024
ce8d0c7
Bump husky from 9.1.5 to 9.1.6 (#251)
dependabot[bot] Oct 13, 2024
0f7fa7b
Bump @babel/core from 7.25.2 to 7.25.7 (#252)
dependabot[bot] Oct 13, 2024
0b25c08
Bump @babel/cli from 7.25.6 to 7.25.7 (#253)
dependabot[bot] Oct 13, 2024
14074fa
Bump @babel/preset-env from 7.25.4 to 7.25.8 (#255)
dependabot[bot] Oct 13, 2024
64d75fe
Merge remote-tracking branch 'upstream' into upgrade-to-upstream-2.1.0
cray0000 Oct 30, 2025
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
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
72 changes: 72 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '25 21 * * 2'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'javascript' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support

steps:
- name: Checkout repository
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality


# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun

# If the Autobuild fails above, remove it and uncomment the following three lines.
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.

# - run: |
# echo "Run, Build Application using script"
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tests
on: [push, pull_request]
env:
CI: true
NODE_COV: 20 # The Node.js version to run coverage on

jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
node: [18, 20]
os: [ubuntu-latest, windows-latest]

steps:
- name: Clone repository
uses: actions/checkout@v2

- name: Set Node.js version
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

- name: Install yarn dependencies
run: yarn install

- name: Run Jest tests
run: yarn test --runInBand
if: "!(startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV)"

- name: Run Jest tests with coverage
run: yarn test --runInBand --coverage
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV

- name: Run Coveralls
uses: coverallsapp/github-action@master
if: startsWith(matrix.os, 'ubuntu') && matrix.node == env.NODE_COV
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
path-to-lcov: "./.coverage/lcov.info"
26 changes: 0 additions & 26 deletions .travis.yml

This file was deleted.

10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
## v2.1.0

- Added: `ignoreRule` option
- Updated: `css-to-react-native` dependency to v3.2.0

## v2.0.0

- Breaking: updated `css-to-react-native` dependency to v3.0.0. This version removes the support for line-height with multiplier, adds support for `place-content` CSS property, and more.
- Breaking: updated `css` dependency to v3.0.0.

## v1.9.0

- Added: Typescript type definitions.
Expand Down
36 changes: 33 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# css-to-react-native-transform

[![NPM version](http://img.shields.io/npm/v/css-to-react-native-transform.svg)](https://www.npmjs.org/package/css-to-react-native-transform)
[![Build Status](https://travis-ci.org/kristerkari/css-to-react-native-transform.svg?branch=master)](https://travis-ci.org/kristerkari/css-to-react-native-transform)
[![Build status](https://ci.appveyor.com/api/projects/status/75s8ls2m47by8b1x/branch/master?svg=true)](https://ci.appveyor.com/project/kristerkari/css-to-react-native-transform/branch/master)
[![Build Status](https://github.com/kristerkari/css-to-react-native-transform/workflows/Tests/badge.svg)](https://github.com/kristerkari/css-to-react-native-transform/actions?workflow=Tests)
[![Coverage Status](https://coveralls.io/repos/github/kristerkari/css-to-react-native-transform/badge.svg?branch=master)](https://coveralls.io/github/kristerkari/css-to-react-native-transform?branch=master)
[![Downloads per month](https://img.shields.io/npm/dm/css-to-react-native-transform.svg)](http://npmcharts.com/compare/css-to-react-native-transform)
[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github)
[![Greenkeeper badge](https://badges.greenkeeper.io/kristerkari/css-to-react-native-transform.svg)](https://greenkeeper.io/)

A lightweight wrapper on top of
[css-to-react-native](https://github.com/styled-components/css-to-react-native)
Expand Down Expand Up @@ -71,6 +69,38 @@ transform(`
}
```

### `ignoreRule` option

```js
transform(
`
.foo {
color: red;
}
.bar {
font-size: 12px;
}
`,
{
ignoreRule: selector => {
if (selector === ".foo") {
return true;
}
},
},
);
```

↓ ↓ ↓ ↓ ↓ ↓

```js
{
bar: {
fontSize: 12;
}
}
```

### CSS Modules :export block

Parsing the [CSS Modules (ICSS) :export](https://github.com/css-modules/icss#export) is supported. The `:export` is often used to share variables from CSS or from a preprocessor like Sass/Less/Stylus to Javascript:
Expand Down
20 changes: 0 additions & 20 deletions appveyor.yml

This file was deleted.

10 changes: 7 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
export default function transform(css: string, options?: {
parseMediaQueries?: boolean;
}): { [selector: string]: unknown; };
export default function transform(
css: string,
options?: {
ignoreRule?: (selector: string) => boolean;
parseMediaQueries?: boolean;
},
): { [selector: string]: unknown };
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@startupjs/css-to-react-native-transform",
"description": "Convert CSS text to a React Native stylesheet object",
"version": "1.9.0-2",
"version": "2.1.0-0",
"publishConfig": {
"access": "public"
},
Expand All @@ -14,19 +14,19 @@
"build": "babel src --ignore *.spec.js --out-dir dist",
"test": "jest --coverage",
"prepublish": "npm run build",
"release": "npmpub"
"release": "np"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"babel-jest": "^24.9.0",
"@babel/cli": "^7.14.5",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"babel-jest": "^29.1.2",
"coveralls": "^3.0.6",
"husky": "^3.0.4",
"jest": "^24.9.0",
"lint-staged": "^9.2.4",
"npmpub": "^4.1.0",
"prettier": "^1.18.2"
"husky": "^9.0.11",
"jest": "^29.2.0",
"lint-staged": "^15.2.2",
"np": "^10.0.6",
"prettier": "^3.0.0"
},
"jest": {
"transform": {
Expand Down Expand Up @@ -60,9 +60,9 @@
"trailingComma": "all"
},
"dependencies": {
"css": "^2.2.4",
"css": "^3.0.0",
"css-mediaquery": "^0.1.2",
"css-to-react-native": "^2.3.2"
"css-to-react-native": "^3.2.0"
},
"repository": {
"type": "git",
Expand Down
18 changes: 15 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,7 @@ const transform = (css, options) => {
if (
rootRe.test(rule.selectors[s])
? false
: (
rule.selectors[s].indexOf(".") !== 0 ||
: rule.selectors[s].indexOf(".") !== 0 ||
(rule.selectors[s].indexOf(":") !== -1 &&
(options != null && options.parsePartSelectors
? !cssPartRe.test(rule.selectors[s])
Expand All @@ -114,7 +113,13 @@ const transform = (css, options) => {
rule.selectors[s].indexOf(">") !== -1 ||
rule.selectors[s].indexOf("+") !== -1 ||
rule.selectors[s].indexOf(" ") !== -1
)
) {
continue;
}

if (
typeof options?.ignoreRule === "function" &&
options.ignoreRule(rule.selectors[s]) === true
) {
continue;
}
Expand Down Expand Up @@ -163,6 +168,13 @@ const transform = (css, options) => {
for (const r in rule.rules) {
const ruleRule = rule.rules[r];
for (const s in ruleRule.selectors) {
if (
typeof options?.ignoreRule === "function" &&
options.ignoreRule(ruleRule.selectors[s]) === true
) {
continue;
}

result[media] = result[media] || {};
const selector = ruleRule.selectors[s].replace(/^\./, "");
const mediaStyles = (result[media][selector] =
Expand Down
Loading
Loading