Skip to content

Commit cc2bb19

Browse files
authored
remove deprecation notice (#56)
1 parent d021ec6 commit cc2bb19

6 files changed

Lines changed: 8 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 7.0.2 (01-Nov-25)
4+
5+
* Test with Ruby 3.5
6+
* Remove deprecation message, put into passive maintenance mode
7+
38
## 7.0.1 (11-May-25)
49

510
* Test with Ruby 3.4

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
![CI](https://github.com/bodrovis/angular_rails_csrf/actions/workflows/ci.yml/badge.svg)
55
![Downloads total](https://img.shields.io/gem/dt/angular_rails_csrf)
66

7-
**Deprecation notice (2025)**
7+
**This gem is in passive maintenance mode:**
88

99
James and then me (@bodrovis) have been supporting this gem since 2013. It has been downloaded more than 10 million times and we're glad you guys found it useful. However, after discussing privately we've decided to put angular_rails_csrf under passive maintenance starting from June 2025.
1010

@@ -14,10 +14,6 @@ In modern frontend–backend architectures (e.g., Angular, React, Vue + Rails AP
1414
- Serve frontend via Rails
1515
- Expect `XSRF-TOKEN` / `X-XSRF-TOKEN` pattern
1616

17-
If you're actively using this gem and want to see it maintained or enhanced, please [open an issue](https://github.com/bodrovis/angular_rails_csrf/issues) describing your use case.
18-
19-
Otherwise, this project may be archived in late 2025 or 2026. Thank you!
20-
2117
---
2218

2319
The AngularJS [ng.$http](http://docs.angularjs.org/api/ng.$http) service has built-in CSRF protection. By default, it looks for a cookie named `XSRF-TOKEN` and, if found, writes its value into an `X-XSRF-TOKEN` header, which the server compares with the CSRF token saved in the user's session.

angular_rails_csrf.gemspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Gem::Specification.new do |s|
2121
s.add_dependency 'railties', '>= 3', '< 9'
2222

2323
s.metadata = {
24-
'rubygems_mfa_required' => 'true',
25-
'deprecation_warning' => 'Passive maintenance; may be sunset in 2025-2026. See README.'
24+
'rubygems_mfa_required' => 'true'
2625
}
2726
end

lib/angular_rails_csrf.rb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
require 'angular_rails_csrf/railtie'
44

55
module AngularRailsCsrf
6-
def self.deprecator
7-
@deprecator ||= ActiveSupport::Deprecation.new('7.0', 'angular_rails_csrf')
8-
end
96
end

lib/angular_rails_csrf/railtie.rb

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,5 @@ class Railtie < ::Rails::Railtie
99
include AngularRailsCsrf::Concern
1010
end
1111
end
12-
13-
initializer 'angular-rails-csrf.deprecation_notice' do |_app|
14-
unless Rails.env.test? || ENV['ANGULAR_RAILS_CSRF_SILENCE']
15-
AngularRailsCsrf.deprecator.warn(
16-
'[angular_rails_csrf] This gem is under passive maintenance and may be sunset in the future. ' \
17-
'Open an issue if you rely on it and want it to live on: ' \
18-
'https://github.com/bodrovis/angular_rails_csrf/issues. ' \
19-
'Set ANGULAR_RAILS_CSRF_SILENCE to silence this warning.'
20-
)
21-
end
22-
end
2312
end
2413
end

lib/angular_rails_csrf/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module AngularRailsCsrf
4-
VERSION = '7.0.1'
4+
VERSION = '7.0.2'
55
end

0 commit comments

Comments
 (0)